post-mortem
Find agent transcripts from a completed Nomic game
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Menü
Find agent transcripts from a completed Nomic game
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Basierend auf der SOC-Berufsklassifikation
| name | post-mortem |
| description | Find agent transcripts from a completed Nomic game |
| disable-model-invocation | true |
Find the clerk and player agent transcripts from a completed Nomic game, copy them to the project, and verify they look correct.
Agent transcripts are JSONL files stored in the Claude Code project directory:
~/.claude/projects/<project-path>/
where <project-path> is the working directory with / replaced by - and
leading -. For example:
/mnt/nw/home/c.dumas/claude-playground/nomic-game-1
→ ~/.claude/projects/-mnt-nw-home-c-dumas-claude-playground-nomic-game-1/
List all .jsonl files there. These are agent transcripts — each is a separate
agent session (clerk, players, or auxiliary sub-agents).
For each JSONL file, read the first line (JSON) to determine the agent type:
{"type": "agent-setting", "agentSetting": "clerk"} → Clerk{"type": "agent-setting", "agentSetting": "player"} → Player{"type": "user"} with large line counts are likely the main orchestrator or player sessions{"type": "progress"} are auxiliary sub-agents (check-bash, explore, etc.)To identify which player is which, use the read_agent_transcript MCP tool
(from transcript-reader) with limit=5 on each candidate — the initial prompt
contains the player name and model.
Copy the identified transcripts into a transcripts/ folder in the project
with descriptive names:
transcripts/
├── clerk.jsonl
├── player-<name>-<model>.jsonl
├── player-<name>-<model>.jsonl
└── player-<name>-<model>.jsonl
For each copied transcript, check:
read_agent_transcript with defaults and note the
total event count reported in the [events X-Y of Z] header.read_agent_transcript with offset=-5 to read
the final events. Confirm they look like a reasonable end of game (e.g.
game-over announcement, final scores, post-mortem discussion) rather than a
mid-conversation cutoff.Report a summary table to the user:
| Role | Name (Model) | Events | Last message summary |
|---|---|---|---|
| Clerk | ... | ... | ... |
| Player | ... | ... | ... |
| ... | ... | ... | ... |
For each JSONL transcript, generate a human-readable .txt version using
read_agent_transcript with output_file set to the same path but with a
.txt extension. Use default settings (truncated tool outputs). Run all four
calls in parallel.
transcripts/
├── clerk.jsonl
├── clerk.txt ← generated
├── player-<name>-<model>.jsonl
├── player-<name>-<model>.txt ← generated
├── ...
Do NOT read the generated files — they will be large.
This branch represents a finished game. Update the README to:
Publish this game to the web replay viewer at https://butanium.github.io/nomic-viewer/
The viewer repo is at /mnt/nw/home/c.dumas/claude-playground/nomic-games/nomic-viewer.
Parse and publish — run from the viewer repo:
cd /mnt/nw/home/c.dumas/claude-playground/nomic-games/nomic-viewer
python parse_transcripts.py <game-dir> svelte-app/public/data/<game-id>.json
where <game-dir> is the current project root and <game-id> is e.g. game-8.
This parses the transcripts AND auto-regenerates games.json.
Commit and push to the viewer repo:
git add svelte-app/public/data/
git commit -m "Add <game-id> to viewer"
git push
GitHub Actions will automatically build and deploy to Pages.