evolve-lite:save-trajectory

evolve-lite:save-trajectory is a skill for Claude Code, Codex from AgentToolkit/altk-evolve. It costs 29 tokens per session (1,378 once invoked), scanned A, original, Apache-2.0.

A tool that saves the current conversation as a JSON trajectory file in OpenAI chat-completion format.

In plain words
What is it for?
Use it to record a session under .evolve/trajectories/ for trajectory analysis or dataset preparation.
Why use it?
It preserves the conversation's messages and tool calls for later review, analysis, or fine-tuning work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to record a session under .evolve/trajectories/ for trajectory analysis or dataset preparation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agenttoolkit/altk-evolve/evolve-lite-save-trajectory
Install

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.

Any agent
npx skills add AgentToolkit/altk-evolve --skill evolve-lite-save-trajectory
Clone the repo
git clone --depth 1 https://github.com/AgentToolkit/altk-evolve

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for evolve-lite:save-trajectory

README.md
[![agentmods](https://agentmods.dev/badge/skills/agenttoolkit/altk-evolve/evolve-lite-save-trajectory/github.svg)](https://agentmods.dev/skills/agenttoolkit/altk-evolve/evolve-lite-save-trajectory)
Your own site
<a href="https://agentmods.dev/skills/agenttoolkit/altk-evolve/evolve-lite-save-trajectory"><img src="https://agentmods.dev/badge/skills/agenttoolkit/altk-evolve/evolve-lite-save-trajectory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for evolve-lite:save-trajectory

Your own site · 80×15
<a href="https://agentmods.dev/skills/agenttoolkit/altk-evolve/evolve-lite-save-trajectory"><img src="https://agentmods.dev/badge/skills/agenttoolkit/altk-evolve/evolve-lite-save-trajectory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,378 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01378
Opus 5.5 $0.00012 $0.00551
Sonnet 5.5 $0.00006 $0.00276
Haiku 4.5 $0.00003 $0.00138

Measured 16d ago against content hash 997c2670dfd1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

evolve-lite: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 16d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/on_stop.py, scripts/save_trajectory.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

platform-integrations/bob/evolve-lite/skills/evolve-lite-save-trajectory/SKILL.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 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_calls array, 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 content and thinking fields.

Read the full file on GitHub · 145 lines

Files

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.

Changes

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.

  1. 16d ago Changed 997c2670dfd1
  2. 2mo ago First seen · 145 lines · 29 tokens per session scan A 7a63bca30ecb

Subscribe to this mod's changes

evolve-lite:save-trajectory is a skill published in the GitHub repository AgentToolkit/altk-evolve (135 stars, last pushed 2d ago), licensed Apache-2.0. It adds 29 tokens to every session and 1,378 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

evolve-lite:save-trajectory compared with skills from other repositories

evolve-lite:save-trajectory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
evolve-lite:save-trajectoryAgentToolkit/altk-evolveSkill1352d agoApache-2.0A29Claude Code, Codex
memory-to-skillzilliztech/memsearchSkill2.8kyesterdayMITA82Claude Code, Codex
media-genManceRayder42/jarvis-osSkill52d agoMITA216Claude Code
research-notebookManceRayder42/jarvis-osSkill52d agoMITA130Claude Code
learnManceRayder42/jarvis-osSkill52d agoMITA121Claude Code
knowledge-packManceRayder42/jarvis-osSkill52d agoMITA72Claude Code
wiki-articleManceRayder42/jarvis-osSkill52d agoMITA70Claude Code