Phistory automatically archives versioned system prompt snapshots from agent CLIs like Claude Code, Codex, OpenClaw, Hermes, Kimi, opencode, and Pi.
It installs a specific CLI release, runs it once through claude-tap, captures the prompt-bearing HTTP request, and writes a comparison-friendly Markdown snapshot.
Phistory uses the PyPI release claude-tap >= 0.1.102, where capture-only prompt snapshot export is available upstream.
GitHub Actions checks supported CLI releases every hour and commits new prompt snapshots when they appear.
uv run phistory capture --latest --agents claude-code,codex,openclaw,hermes,kimi,opencode,pi
uv run phistory backfill claude-code --from 2.1.113 --to latest
uv run phistory render-index
uv run phistory render-siteindex.html is a static prompt viewer with version navigation and Monaco-powered diffs. GitHub Pages deploys it directly from this repository.
Use the viewer for human comparison. Use captures/index.json and docs/captures.md when you need an index of every archived snapshot.
- Claude Code (
@anthropic-ai/claude-code) - Codex CLI (
@openai/codex) - OpenClaw (
openclaw) - Hermes Agent (
hermes-agent) - Kimi CLI (
MoonshotAI/kimi-cli) - opencode (
opencode-ai) - Pi (
@earendil-works/pi-coding-agent)
Each capture is stored under captures/<agent>/<version>/:
prompt.md: normalized prompt snapshot for reading and diffingtrace.jsonl: raw captured HTTP trace, kept unnormalized as evidencemeta.json: package, version, command, and capture metadata
The generated indexes are:
captures/index.json: compact machine-readable capture indexdocs/captures.md: full human-readable capture table
- Use
README.mdfor the project overview and current capture status. - Use
captures/index.jsonto discover available agents, versions, prompt paths, and trace paths. - Use
captures/<agent>/<version>/prompt.mdwhen you need a normalized prompt snapshot. - Use
captures/<agent>/<version>/trace.jsonlonly when you need raw HTTP capture evidence. - Treat
index.htmlas a human-facing viewer; it is not the canonical machine-readable index.
Last capture update: 2026-06-11 11:14 UTC
| Agent | Latest | Captures | Last Captured |
|---|---|---|---|
| Claude Code | 2.1.173 - 2026-06-11 | 338 | 2026-06-11 11:14 UTC |
| Codex CLI | 0.139.0 - 2026-06-09 | 54 | 2026-06-09 21:10 UTC |
| Hermes Agent | v2026.6.5 - 2026-06-06 | 15 | 2026-06-06 05:06 UTC |
| Kimi CLI | 1.47.0 - 2026-06-05 | 19 | 2026-06-05 13:28 UTC |
| OpenClaw | 2026.6.5 - 2026-06-09 | 62 | 2026-06-09 18:22 UTC |
| opencode | 1.17.3 - 2026-06-10 | 69 | 2026-06-10 18:11 UTC |
| Pi | 0.79.1 - 2026-06-09 | 15 | 2026-06-09 22:50 UTC |
