post-mortem
Find agent transcripts from a completed Nomic game
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Find agent transcripts from a completed Nomic game
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| 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.