Claude Code + Codex
Your agent did the work. Keep the part that matters.
Turn agent logs intousable memory.
agentscript reads Claude Code and Codex transcripts as one stream of stable, searchable blocks—then slices away the noise and exports exactly the context your next agent needs.
npm i -g @amxv/agentscriptRedesign the landing page and push it to main.
I’ll inspect the product, build a focused visual system, and verify the result.
git status --short && bun run docs:buildThe transcript became a handoff. The missing indexes are the point.
Filters never renumber
Go, standard library only
Text, Markdown, HTML, JSON
RAW JSONL IS A RECORD, NOT A HANDOFF
An hour of work should not cost another agent an hour of context.
Agent transcripts are full of valuable decisions buried beneath thinking blocks, tool plumbing, repeated results, and provider-specific schemas. Passing the raw file forward wastes the very context window you are trying to preserve.
agentscript normalizes the session once, gives every meaningful block a permanent address, and lets you subtract everything the next reader does not need.
FIND → OPEN → CARRY FORWARD
Context extraction with receipts.
agentscript search "publish-pr" --provider codexFind the exact moment across recent sessions.
agentscript open session.jsonl --around 342Jump back in with the surrounding decisions intact.
agentscript export session.jsonl --profile handoff --out context.mdCarry signal forward without carrying the entire log.
AN INDEX IS AN ADDRESS, NOT A COUNTER
#003 stays #003, even when everything around it disappears.
Hide thinking. Filter to Bash. Render messages only. The visible sequence can change, but every block keeps the address it received at parse time. Search results, slices, and handoffs stay valid.
#003USER#003#004THINKING—#005TOOL CALL—#006TOOL RESULT—#007ASSISTANT#007#008COMMAND#008#009COMMAND RESULT—#012ASSISTANT#012SMALL TOOL. COMPLETE MAP.
From first transcript to exact handoff.
Quickstart
Install agentscript, open a transcript, search sessions, slice context, and export output.
Command reference
The complete command map for agentscript.
Transcript model
How block indexes, turn indexes, filtering, folding, and slicing work.
Development
Local development commands and repository notes.
Release and npm publishing
How native binaries, GitHub releases, and npm publishing fit together.
Stop pasting the whole session.
Give the next agent the decisions, the commands, and nothing it has to rediscover.