agent-wiki-compare-out…
Compare successful and failed normalized agent trajectories to derive evidence-backed agent-wiki guidelines. Use when Codex has multiple runs for the same or…
Save the current conversation as a trajectory JSON file in OpenAI chat completion format for analysis and fine-tuning
$ npx -y skills add AgentToolkit/altk-evolve --skill evolve-lite-save-trajectory --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/evolve-lite-save-trajectoryContext preview
The summary Claude sees to decide when to auto-load this skill.
Save the current conversation as a trajectory JSON file in OpenAI chat completion format for analysis and fine-tuning
name: evolve-lite:save-trajectory description: Save the current conversation as a trajectory JSON file in OpenAI chat completion format for analysis and fine-tuning
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.
Review all messages in the current conversation from start to finish. For each message, identify its type:
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"}Strip `<system-reminder>...</system-reminder>` tags and their contents from all message content. Use a non-greedy multiline match (e.g., `re.sub(r'<system-reminder>[\s\S]*?</system-reminder>', '', text).strip()`). If after stripping, a message has empty content and no tool calls, omit it.
Wrap the messages array in a trajectory envelope:
{
"model": "<model-id-from-session>",
"timestamp": "2025-01-15T10:30:00Z",
"session_id": "<session-id-from-session>",
"messages": [...]
}Write the trajectory JSON to a temporary file using the **Write** tool, then pass the file path to the helper script:
1. Write the JSON to `.evolve/tmp/trajectory_input.json` using the Write tool (create the directory if needed) 2. Run the helper script with the file path as an argument:
tmp=.evolve/tmp/trajectory_input.json; mkdir -p .evolve/tmp; trap 'rm -f "$tmp"' EXIT; python3 .bob/skills/evolve-lite-save-trajectory/scripts/save_trajectory.py "$tmp"
**Important**: Do NOT use inline Python scripts, heredocs, or stdin piping to pass the trajectory JSON. Always use the Write tool to create a temp file first. This avoids escaping issues with backslashes, quotes, and newlines in conversation content.
The script will:
After saving, you should see output like:
Trajectory saved: /path/to/project/.evolve/trajectories/trajectory_2025-01-15T10-30-00.json Messages: 12
Coding agents repeat the same mistakes because they start fresh every session. Evolve gives agents memory — they learn from what worked and what didn't, so each session is better than the last.
Repo: AgentToolkit/altk-evolve
Compare successful and failed normalized agent trajectories to derive evidence-backed agent-wiki guidelines. Use when Codex has multiple runs for the same or…
Read all atomic guidelines in wiki-twobatch/guidelines/ and propose themed clusters that group near-duplicates. Writes cluster pages and updates _config.yaml;…
Consult an agent-wiki for guidelines relevant to the task at hand. The wiki itself documents how to retrieve from it (AGENTS.md). Use this skill once you know…
Read a normalized Claude Code trajectory JSON and extract reusable guidelines into wiki-twobatch/guidelines/. Use when mining saved trajectories for reusable…
Ingest one or more agent trajectories (raw bob/claude traces or normalized JSON) into an agent-wiki end-to-end — convert, summarize, extract guidelines,…
Read a normalized Claude Code trajectory JSON and write an episodic summary page to wiki-twobatch/summaries/. Use when summarizing one or more saved…