Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/agenttoolkit/altk-evolve/save-trajectorynpx skills add AgentToolkit/altk-evolve --skill save-trajectorygit clone --depth 1 https://github.com/AgentToolkit/altk-evolveWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00025 | $0.01343 |
| Opus 5 | $0.00013 | $0.00672 |
| Sonnet 5 | $0.00005 | $0.00269 |
| Haiku 4.5 | $0.00003 | $0.00134 |
Grade A, and why
save-trajectory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
98% identical to evolve-lite:save-trajectory — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Save Trajectory
Overview
This skill saves the current session's conversation history as a JSON file in OpenAI chat completion format. The trajectory is saved to .evolve/trajectories/ in the project root. This enables trajectory analysis, fine-tuning data collection, and session review.
Workflow
Step 1: Walk Through Conversation Messages
Review all messages in the current conversation from start to finish. For each message, identify its type:
- User text messages
- Assistant text responses (may include thinking)
- Assistant tool calls
- Tool results
Step 2: Convert to OpenAI Chat Completion Format
Convert each message to the appropriate format:
User text message:
{"role": "user", "content": "the user's message text"}
Assistant text response (no thinking):
{"role": "assistant", "content": "the assistant's response text"}
Assistant text response (with thinking):
{"role": "assistant", "content": "the assistant's response text", "thinking": "the thinking/reasoning text"}
Assistant tool call (no visible text):
{
"role": "assistant",
"content": null,
"tool_calls": [
{
"id": "tool_call_id_here",
"type": "function",
"function": {
"name": "ToolName",
"arguments": "{\"param\": \"value\"}"
}
}
]
}
Assistant tool call with text:
{
"role": "assistant",
"content": "text before/after the tool call",
"tool_calls": [
{
"id": "tool_call_id_here",
"type": "function",
"function": {
"name": "ToolName",
"arguments": "{\"param\": \"value\"}"
}
}
]
}
Tool result:
{"role": "tool", "tool_call_id": "tool_call_id_here", "content": "the tool output text"}
Important Details
- Tool call arguments must be a JSON string, not a nested object. Use
json.dumps()on the arguments object. - Tool call IDs: Use the actual tool call ID from the conversation. If not available, generate a unique ID like
call_001,call_002, etc. - Multiple tool calls: If the assistant made multiple tool calls in one turn, include all of them in a single assistant message's
tool_callsarray, followed by separate tool result messages for each. - Thinking blocks: If the assistant had both thinking and text in the same turn, combine them into one message with both
contentandthinkingfields.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 146 lines · 25 tokens per session scan A 1e7c775e9c0e
save-trajectory is a skill published in the GitHub repository AgentToolkit/altk-evolve (105 stars, last pushed 8d ago), licensed Apache-2.0. It adds 25 tokens to every session and 1,343 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to evolve-lite:save-trajectory, differing in 5 lines, and is treated as a copy.
Other skills, from other repositories
agent-recall
Persistent compounding memory for AI agents. 5 default MCP tools: sessionstart, sessionend, remember, recall, check. Full surface (18 tools) available with --full flag. Two-verb model: inhale (sessionstart) and exhale (sessionend). Correction-first memory with decision trail tracking, watchfor warnings, palace rooms…
shelve
Offload a closed conversation topic (or a whole imported dialog) to the memory shelf as a Markdown episode with a validated digest. Use when a topic is finished, when context grows heavy, before compaction, or when the user asks to shelve/archive part of the conversation. M0 prompt-only version — the agent does the…
speckit-tasks
Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
speckit-clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
speckit-implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.
speckit-taskstoissues
Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.