trajectory-logging

Log agent actions as structured JSON using the ATIF schema.

1|1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/Cheggin/request-for-startups --skill trajectory-logging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trajectory-logging
Source: https://github.com/Cheggin/request-for-startups/tree/main/skills/trajectory-logging
Command: npx skills add https://github.com/Cheggin/request-for-startups --skill trajectory-logging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Log every agent action as structured JSON using the ATIF (Agent Trajectory and Interaction Format) schema. Use a ring buffer to prevent disk exhaustion and enable post-hoc debugging, eval dataset construction, and regression detection.

Core Features & Use Cases

  • Structured trajectory entries: capture tool name, parameters, results, rationale, timestamp, agent ID, and session ID.
  • Ring-buffer storage: capped at 50K entries per file to bound disk usage.
  • Session metadata and lifecycle: record start/end times plus summary statistics for each session.
  • Eval-framework export: provide an export tool to convert trajectories for eval-framework compatibility.
  • Regression detection and search: compare runs for the same task and search across trajectories for patterns or errors.

Quick Start

Enable trajectory logging by enabling the PostToolUse hook, then run a sample session to generate a trajectory file at .harness/trajectories/{agent-id}-{session-id}.jsonl.

Frequently Asked Questions about trajectory-logging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I log agent actions for debugging?

Agent action logging captures every tool name, parameter, result, and rationale as structured JSON using the ATIF schema. This enables post-hoc debugging and eval dataset construction without missing intermediate execution steps.

How do I prevent disk exhaustion when capturing agent trajectories?

Prevent disk exhaustion during trajectory logging by using a ring buffer capped at 50K entries per file. This bounds disk usage while retaining recent agent actions for regression detection and debugging.

Can I export agent trajectories to build an eval dataset?

Yes, you can export agent trajectories to build an eval dataset using the provided eval-framework export tool. It converts structured JSONL trajectory logs into a compatible format for evaluation framework integration.

What is the best way to detect regressions across agent runs for the same task?

Detect regressions across agent runs for the same task by comparing structured trajectory logs. The regression detection utility analyzes JSONL entries across sessions to identify behavioral changes or errors.

How do I search across agent trajectories to find errors or patterns?

Search across agent trajectories to find errors or patterns using the trajectory search utility. It indexes structured JSON logs containing tool names, parameters, and results to locate specific execution behaviors.

Does trajectory logging require any dependencies to capture agent sessions?

No, trajectory logging requires no external dependencies to capture agent sessions. Enable the PostToolUse hook to generate JSONL files recording session metadata, lifecycle events, and summary statistics.