{"_id":"@amxv/agentscript","_rev":"5-7adce9d930c6a4036ab920db929ecab4","name":"@amxv/agentscript","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@amxv/agentscript","version":"0.1.0","keywords":["claude-code","codex","jsonl","transcript","cli","agent"],"author":{"name":"amxv"},"license":"MIT","_id":"@amxv/agentscript@0.1.0","maintainers":[{"name":"amxv","email":"a@ashray.xyz"}],"homepage":"https://github.com/amxv/agentscript#readme","bugs":{"url":"https://github.com/amxv/agentscript/issues"},"bin":{"agentscript":"bin/agentscript.js"},"dist":{"shasum":"3ada437cf5cea15dd565968c819373a6464037a9","tarball":"https://registry.npmjs.org/@amxv/agentscript/-/agentscript-0.1.0.tgz","fileCount":20,"integrity":"sha512-xvMuO6elewIrwt3BlSiLraVcnP6xVicZQBPLjjf61b4PqrAuT3FS+KpjMdXg7FFxRNd6vkQJeJ49YHOL4GGLgg==","signatures":[{"sig":"MEQCICtQRB+UnD6cAgpwJixHM13dDJLqqKlUgiOI/FAMUWdaAiAHEaXZvX5459WfPSzs85ZjGadnQkefX6t88GFYPge+UQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":78436},"config":{"cliBinaryName":"agentscript"},"engines":{"node":">=18"},"gitHead":"f1c30e5cc01ac3dd343428df64d496c0c80cb4cb","scripts":{"lint":"npm run test","test":"node --check bin/agentscript.js && node --check scripts/postinstall.js","docs:dev":"astro dev","docs:build":"astro build","docs:check":"astro check","postinstall":"node scripts/postinstall.js","docs:preview":"astro preview"},"_npmUser":{"name":"amxv","email":"a@ashray.xyz"},"repository":{"url":"git+https://github.com/amxv/agentscript.git","type":"git"},"_npmVersion":"10.9.8","description":"Readable Claude Code and Codex JSONL transcript searcher, renderer, and slicer","directories":{},"_nodeVersion":"22.23.0","_hasShrinkwrap":false,"devDependencies":{"astro":"^7.0.3","zuedocs":"^0.1.6","typescript":"^5.9.2","@types/node":"^24.0.13","@astrojs/check":"^0.9.4"},"_npmOperationalInternal":{"tmp":"tmp/agentscript_0.1.0_1782942121324_0.9366594965870898","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@amxv/agentscript","version":"0.1.1","keywords":["claude-code","codex","jsonl","transcript","cli","agent"],"author":{"name":"amxv"},"license":"MIT","_id":"@amxv/agentscript@0.1.1","maintainers":[{"name":"amxv","email":"a@ashray.xyz"}],"homepage":"https://github.com/amxv/agentscript#readme","bugs":{"url":"https://github.com/amxv/agentscript/issues"},"bin":{"agentscript":"bin/agentscript.js"},"dist":{"shasum":"ed3ab6608e1362d159023be73eca3e6e4091a643","tarball":"https://registry.npmjs.org/@amxv/agentscript/-/agentscript-0.1.1.tgz","fileCount":24,"integrity":"sha512-uhu6TAlXdfnN6INDgZfegdpzsEMfuKRtzyNdlzozTlmwLoDbMAPgID1ThvKSs4Hr3j91q5QUvmS+GNNPxzExog==","signatures":[{"sig":"MEUCIQD7S30TYla2dqWxm+glyx327IfpVbN5mIPl4Rp/qZHv4AIgKmoVI+s/KlJypzIdY+RZnE7NQBnzPs5pEMOuzPuE+fA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118894},"config":{"cliBinaryName":"agentscript"},"engines":{"node":">=18"},"gitHead":"d5daceecaa74b6a49fd84941d1d7ed2d8849938e","scripts":{"lint":"npm run test","test":"node --check bin/agentscript.js && node --check scripts/postinstall.js","docs:dev":"astro dev","docs:build":"astro build","docs:check":"astro check","postinstall":"node scripts/postinstall.js","docs:preview":"astro preview"},"_npmUser":{"name":"amxv","email":"a@ashray.xyz"},"repository":{"url":"git+https://github.com/amxv/agentscript.git","type":"git"},"_npmVersion":"10.9.8","description":"Readable Claude Code and Codex JSONL transcript searcher, renderer, and slicer","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"astro":"^7.0.3","zuedocs":"0.1.24","typescript":"^5.9.2","@types/node":"^24.0.13","@astrojs/check":"^0.9.4"},"_npmOperationalInternal":{"tmp":"tmp/agentscript_0.1.1_1783825634596_0.5615996292253433","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@amxv/agentscript","version":"0.1.2","keywords":["claude-code","codex","jsonl","transcript","cli","agent"],"author":{"name":"amxv"},"license":"MIT","_id":"@amxv/agentscript@0.1.2","maintainers":[{"name":"amxv","email":"a@ashray.xyz"}],"homepage":"https://github.com/amxv/agentscript#readme","bugs":{"url":"https://github.com/amxv/agentscript/issues"},"bin":{"agentscript":"bin/agentscript.js"},"dist":{"shasum":"f420e2618b9bbdf5bbf99ee6c5bcec38a4593d53","tarball":"https://registry.npmjs.org/@amxv/agentscript/-/agentscript-0.1.2.tgz","fileCount":24,"integrity":"sha512-rm/IRibMc3VlMhVqYrkCc5PmKu1teXP5Ui4cA7/QideZnuQudAHVql17MzWc01qVwjeOoVIykyWorlwRte4/8g==","signatures":[{"sig":"MEQCIE4jRdIDfmsJMYSMgJe2C2p9WEvFKI25Rqo+w/AaK0LSAiAw598cssSqCObOfch05YpyGBCaInBkAVehVaDvmh6Xfg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":123083},"config":{"cliBinaryName":"agentscript"},"engines":{"node":">=18"},"gitHead":"5b27113bc36dc08b3a9cc49918823bb5960da632","scripts":{"lint":"npm run test","test":"node --check bin/agentscript.js && node --check scripts/postinstall.js","docs:dev":"astro dev","docs:build":"astro build","docs:check":"astro check","postinstall":"node scripts/postinstall.js","docs:preview":"astro preview"},"_npmUser":{"name":"amxv","email":"a@ashray.xyz"},"repository":{"url":"git+https://github.com/amxv/agentscript.git","type":"git"},"_npmVersion":"10.9.8","description":"Readable Claude Code and Codex JSONL transcript searcher, renderer, and slicer","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"astro":"^7.0.3","zuedocs":"0.1.24","typescript":"^5.9.2","@types/node":"^24.0.13","@astrojs/check":"^0.9.4"},"_npmOperationalInternal":{"tmp":"tmp/agentscript_0.1.2_1783826624863_0.9505115195711733","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@amxv/agentscript","version":"0.1.3","keywords":["claude-code","codex","jsonl","transcript","cli","agent"],"author":{"name":"amxv"},"license":"MIT","_id":"@amxv/agentscript@0.1.3","maintainers":[{"name":"amxv","email":"a@ashray.xyz"}],"homepage":"https://github.com/amxv/agentscript#readme","bugs":{"url":"https://github.com/amxv/agentscript/issues"},"bin":{"agentscript":"bin/agentscript.js"},"dist":{"shasum":"913369508acb311dc8dbdaaf64431f1347917bf7","tarball":"https://registry.npmjs.org/@amxv/agentscript/-/agentscript-0.1.3.tgz","fileCount":25,"integrity":"sha512-enVzBY0XgyhDtzA8YCqIntLrvOxZ8GzBALCspcylINYBQfhkXzG7vmJvtmqW4SeEGo3gVvWMfzco9nS5NMyU5g==","signatures":[{"sig":"MEYCIQClAA8lAAsMZluIuEh/b2uyyGythNKLwoxdvypwMuXW1gIhAPGkwmjIxSW5BLegJshjN4qEZz/ny8UyzvzAEc0rB5/t","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130974},"config":{"cliBinaryName":"agentscript"},"engines":{"node":">=18"},"gitHead":"88808afea06ba95d78cbede79b81d1763e82a515","scripts":{"lint":"npm run test","test":"node --check bin/agentscript.js && node --check scripts/postinstall.js","docs:dev":"astro dev","docs:build":"astro build","docs:check":"astro check","postinstall":"node scripts/postinstall.js","docs:preview":"astro preview"},"_npmUser":{"name":"amxv","email":"a@ashray.xyz"},"repository":{"url":"git+https://github.com/amxv/agentscript.git","type":"git"},"_npmVersion":"10.9.8","description":"Readable Claude Code and Codex JSONL transcript searcher, renderer, and slicer","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"astro":"^7.0.3","zuedocs":"0.1.25","typescript":"^5.9.2","@types/node":"^24.0.13","@astrojs/check":"^0.9.4"},"_npmOperationalInternal":{"tmp":"tmp/agentscript_0.1.3_1784888007076_0.44544217578138445","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@amxv/agentscript","version":"0.2.0","description":"Readable Claude Code and Codex JSONL transcript searcher, renderer, and slicer","license":"MIT","author":{"name":"amxv"},"repository":{"type":"git","url":"git+https://github.com/amxv/agentscript.git"},"homepage":"https://github.com/amxv/agentscript#readme","bugs":{"url":"https://github.com/amxv/agentscript/issues"},"bin":{"agentscript":"bin/agentscript.js"},"config":{"cliBinaryName":"agentscript"},"scripts":{"postinstall":"node scripts/postinstall.js","test":"node --check bin/agentscript.js && node --check scripts/postinstall.js","lint":"npm run test","docs:dev":"astro dev","docs:build":"astro build","docs:preview":"astro preview","docs:check":"astro check"},"engines":{"node":">=18"},"keywords":["claude-code","codex","jsonl","transcript","cli","agent"],"devDependencies":{"@astrojs/check":"^0.9.4","@types/node":"^24.0.13","astro":"^7.0.3","typescript":"^5.9.2","zuedocs":"0.1.25"},"_id":"@amxv/agentscript@0.2.0","gitHead":"4c174d0e97c21ad70bac893a54f330aa87289b34","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-+UuMri4bZCUN9dKZmFMDxPd9jkN4CUnCSrro5LmBFimnY2TIrqRXI/L+cW7Z/AcRYMfdmZMG6XM1seY/45RTMg==","shasum":"d953498147b1e987dbba87a31c2161f2ae5f842c","tarball":"https://registry.npmjs.org/@amxv/agentscript/-/agentscript-0.2.0.tgz","fileCount":27,"unpackedSize":165336,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICsOVO5jbDxhEP7EOsWMLTswYGYCj0GamvNrMzzLW1qBAiBPNQxBA+kXV2tFTl3A0KkBxO8FqYKtdUl19//7c7UOaQ=="}]},"_npmUser":{"name":"amxv","email":"a@ashray.xyz"},"directories":{},"maintainers":[{"name":"amxv","email":"a@ashray.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agentscript_0.2.0_1785725385057_0.7177102973068246"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T21:42:01.122Z","modified":"2026-08-03T02:49:45.415Z","0.1.0":"2026-07-01T21:42:01.459Z","0.1.1":"2026-07-12T03:07:14.746Z","0.1.2":"2026-07-12T03:23:45.048Z","0.1.3":"2026-07-24T10:13:27.210Z","0.2.0":"2026-08-03T02:49:45.249Z"},"bugs":{"url":"https://github.com/amxv/agentscript/issues"},"author":{"name":"amxv"},"license":"MIT","homepage":"https://github.com/amxv/agentscript#readme","keywords":["claude-code","codex","jsonl","transcript","cli","agent"],"repository":{"type":"git","url":"git+https://github.com/amxv/agentscript.git"},"description":"Readable Claude Code and Codex JSONL transcript searcher, renderer, and slicer","maintainers":[{"name":"amxv","email":"a@ashray.xyz"}],"readme":"# agentscript\n\n`agentscript` is a terminal-first transcript reader for Claude Code and Codex JSONL sessions.\n\nIt turns local agent transcripts into readable, indexed blocks so you can search, inspect, hide noisy parts, slice exact context ranges, extract file and command activity, and export handoff-ready Markdown or HTML.\n\n## Install\n\n```bash\nnpm i -g @amxv/agentscript\nagentscript --help\n```\n\nFor local development:\n\n```bash\nmake build\n./dist/agentscript --help\n```\n\n## Open transcripts\n\nOpen a transcript by path:\n\n```bash\nagentscript open ~/.claude/projects/<project>/<session>.jsonl\nagentscript open ~/.codex/sessions/<year>/<month>/<day>/<session>.jsonl\n```\n\nOpen a Codex transcript by session ID:\n\n```bash\nagentscript codex 019f91bc-123f-7692-8a78-21e54d6677e6\n```\n\nOpen a recent transcript:\n\n```bash\nagentscript open --latest 1\nagentscript list --latest 20\n```\n\nRun `agentscript open` with no path to launch the latest-transcript picker. Discovery uses `$CLAUDE_CONFIG_DIR/projects` and `$CODEX_HOME/sessions` when those directories exist. Otherwise, it falls back to:\n\n```bash\n~/.claude/projects\n~/.codex/sessions\n```\n\n## Stable block indexes and turns\n\nEvery renderable block gets a stable index:\n\n```text\n#000 user\n#001 thinking\n#002 assistant\n#003 command Bash\n#004 command_result Bash\n#005 tool_call Edit\n#006 tool_result Edit\n```\n\nHidden blocks keep their original indexes, so slices remain stable even when you hide thinking or tool output.\n\nShow user-turn numbers too:\n\n```bash\nagentscript open transcript.jsonl --turns\n```\n\nSlice by turn:\n\n```bash\nagentscript open transcript.jsonl --turn-slice 2:4\n```\n\n## Filtering, profiles, and folding\n\n```bash\nagentscript open transcript.jsonl --hide-thinking\nagentscript open transcript.jsonl --show-internal-goal\nagentscript open transcript.jsonl --show-internal\nagentscript open transcript.jsonl --messages-only\nagentscript open transcript.jsonl --hide-tool-results\nagentscript open transcript.jsonl --hide-commands\nagentscript open transcript.jsonl --kind user,assistant,command\nagentscript open transcript.jsonl --hide-kind thinking,tool_result\nagentscript open transcript.jsonl --tools Bash,Edit\nagentscript open transcript.jsonl --hide-tool Bash\n```\n\nUse built-in profiles:\n\n```bash\nagentscript open transcript.jsonl --profile compact\nagentscript open transcript.jsonl --profile handoff\nagentscript open transcript.jsonl --profile debug\nagentscript open transcript.jsonl --profile commands\n```\n\nCollapse long blocks:\n\n```bash\nagentscript open transcript.jsonl --max-lines 40\n```\n\nCollapsed output includes an exact expand command:\n\n```bash\nagentscript open \"transcript.jsonl\" --around 120 --expand 120\n```\n\nExpand all collapsed blocks:\n\n```bash\nagentscript open transcript.jsonl --max-lines 40 --expand all\n```\n\n## Compaction and usage inspection\n\nInspect Claude and Codex lifecycle records without provider-specific `jq`:\n\n```bash\nagentscript compactions transcript.jsonl --format json\nagentscript compactions transcript.jsonl\n```\n\nJSON output includes ordered boundaries, provider-native metadata, raw line references, nearest usage snapshots, and normalized token fields. Claude `postTokens` is labeled as payload-only; `first_full_usage_after` exposes the later assistant usage that may include reattached system, tool, and cache context.\n\n## Slicing\n\nPreserve the first 100 blocks of context:\n\n```bash\nagentscript slice transcript.jsonl 0:100 --format md --out context.md\n```\n\nRender from block 100 to the end:\n\n```bash\nagentscript slice transcript.jsonl 100:\n```\n\nShow context around a block:\n\n```bash\nagentscript open transcript.jsonl --around 100 --before 25 --after 50\n```\n\nSplit a transcript into rendered files:\n\n```bash\nagentscript split transcript.jsonl --at 100 --out-dir parts --format md\nagentscript split transcript.jsonl --every 80 --out-dir parts --format html\n```\n\n## Search\n\nBasic search:\n\n```bash\nagentscript search \"publish-pr\"\nagentscript search \"r2 cors\" --provider claude --latest 20\n```\n\nAdvanced search:\n\n```bash\nagentscript search push rejected --all --near 20\nagentscript search \"git (push|pull)\" --regex --tool Bash\nagentscript search permission --search-kind command_result\nagentscript search YOLO --case-sensitive\n```\n\nEach result includes the matching block index and an `agentscript open ... --around <index>` command.\n\n## Command, file, and activity views\n\nShow shell commands:\n\n```bash\nagentscript commands transcript.jsonl\nagentscript commands transcript.jsonl --failed --with-output\nagentscript commands transcript.jsonl --grep \"go test\"\n```\n\nShow files referenced or changed:\n\n```bash\nagentscript files transcript.jsonl\nagentscript changes transcript.jsonl\n```\n\nSummarize Git, PR, push, validation, and failure activity:\n\n```bash\nagentscript activity transcript.jsonl\nagentscript activity transcript.jsonl --format json\n```\n\n`git` and `pr` are aliases for `activity`.\n\n## Export\n\n```bash\nagentscript export transcript.jsonl --format html --out transcript.html\nagentscript export transcript.jsonl --format md --md-style llm-context --slice 0:100 --out context.md\nagentscript export transcript.jsonl --format json --out normalized.json\n```\n\nMarkdown styles:\n\n```bash\n--md-style compact\n--md-style llm-context\n--md-style audit\n```\n\n## Config\n\nShow the active config and built-in profiles:\n\n```bash\nagentscript config show\nagentscript config path\n```\n\nCreate a starter config:\n\n```bash\nagentscript config init\n```\n\nThe config supports custom profiles with different block sets, hidden kinds, tool filters, max line folding, output format, and Markdown style.\n\n## Development\n\n```bash\nmake fmt\nmake test\nmake build\n```\n\n`tmp/claude-replay` is intentionally ignored and can be used as a local reference clone while working on parser behavior.\n","readmeFilename":"README.md"}