packages/docs/plugin-registry/trajectory-logger.md
The Trajectory Logger plugin captures agent interaction trajectories, persisting them for debugging, analysis, and reinforcement-learning training workflows.
Package: @elizaos/plugin-trajectory-logger (core plugin — always loaded)
Every agent turn is logged as a trajectory record by default. These trajectories feed into Eliza's native optimization and training pipelines (MIPRO, GEPA, bootstrap-fewshot), providing the raw data needed for prompt optimization and RL-based improvement. Trajectories are also invaluable for debugging agent behavior after the fact. Logging can be disabled when not needed.
This plugin is a core plugin and is always loaded. No manual installation is required.
| Parameter | Type | Required | Description |
|---|---|---|---|
ELIZA_DISABLE_TRAJECTORY_LOGGING | boolean | No | Set to 1 to disable trajectory persistence |
Disable via environment variable:
export ELIZA_DISABLE_TRAJECTORY_LOGGING=1
Trajectory logging is also automatically disabled when NODE_ENV=test.