Files
gabrielvidalandClaude Opus 5.5 e94deb8174 feat(parse): neutral tool names in the readers, the fold and the buckets (parser v45)
The readers put the neutral name in a tool_call's `tool` and the record's
own in `native` (readers/toolnames.py): Bash → shell, Read → read,
Agent/Task → agent, the five task tools → todo, CronCreate →
claude:CronCreate; a converter-written legacy file namespaces its own
tools under its entrypoint (agy:manage_task, opencode:execute), an
unstamped one's lowercase names are pi's. MCP names are untouched.

The fold, the cost buckets (bash → shell, task → todo; TaskOutput /
TaskStop now count as shell, TaskGet / TaskList as todo), taskevents, the
resource miner, the lifecycle / deploy / worktree detection, tree.py's
agent cards, spawned children, the scaffold and the bgtasks route key on
the neutral names only. The `todo` calls are told apart by their input
(tools.todo_op). A tool card carries `native` when it differs.

PARSER_VERSION 45 (a full re-index). docs/transcript-format.md gets the
"Tool names" table with the agy column filled from sidecar/agy_tools.py;
the v1 fixtures use the neutral names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:14:14 +01:00

21 lines
2.2 KiB
JSON

{"t": "session", "v": 1, "id": "33333333-aaaa-4bbb-8ccc-000000000003", "harness": "opencode", "cwd": "/home/synth/homelab", "branch": "main", "at": "2026-01-05T10:00:00.000Z"}
{"t": "prompt", "at": "2026-01-05T10:00:00.000Z", "origin": "user", "text": "Read the README and summarise it."}
{"t": "meta", "kind": "title", "data": "README summary"}
{"t": "call", "at": "2026-01-05T10:00:06.222Z", "id": "msg_oc_a1", "model": "gpt-6-sol", "effort": "high"}
{"t": "text", "at": "2026-01-05T10:00:06.222Z", "call": "msg_oc_a1", "text": "Reading it."}
{"t": "tool_call", "at": "2026-01-05T10:00:06.222Z", "call": "msg_oc_a1", "id": "oc_call_01", "tool": "opencode:read", "native": "read", "input": {"filePath": "/home/synth/homelab/README.md"}}
{"t": "tool_result", "at": "2026-01-05T10:00:07.259Z", "toolCall": "oc_call_01", "ok": true, "text": "# homelab\n\nSynthetic README."}
{"t": "usage", "at": "2026-01-05T10:00:07.259Z", "call": "msg_oc_a1", "input": 5200, "output": 310, "reasoning": 260}
{"t": "call", "at": "2026-01-05T10:00:15.555Z", "id": "msg_oc_a2", "model": "gpt-6-sol", "effort": "high"}
{"t": "text", "at": "2026-01-05T10:00:15.555Z", "call": "msg_oc_a2", "text": "It describes a synthetic homelab."}
{"t": "usage", "at": "2026-01-05T10:00:15.555Z", "call": "msg_oc_a2", "input": 300, "output": 45, "cacheRead": 5300, "reasoning": 20}
{"t": "turn_end", "at": "2026-01-05T10:00:15.555Z", "reason": "done"}
{"t": "prompt", "at": "2026-01-05T10:00:50.850Z", "origin": "user", "text": "Now with the local model, on the fast tier too."}
{"t": "call", "at": "2026-01-05T10:01:10.590Z", "id": "msg_oc_a3", "model": "evox2/ggml-org/qwen3.8-27b"}
{"t": "text", "at": "2026-01-05T10:01:10.590Z", "call": "msg_oc_a3", "text": "Même résumé, en local."}
{"t": "usage", "at": "2026-01-05T10:01:10.590Z", "call": "msg_oc_a3", "input": 1468, "output": 118, "cacheRead": 4400}
{"t": "call", "at": "2026-01-05T10:01:20.960Z", "id": "msg_oc_a4", "model": "gpt-5.5-fast", "effort": "low"}
{"t": "text", "at": "2026-01-05T10:01:20.960Z", "call": "msg_oc_a4", "text": "And on the fast tier."}
{"t": "usage", "at": "2026-01-05T10:01:20.960Z", "call": "msg_oc_a4", "input": 280000, "output": 60, "cacheRead": 1000}
{"t": "turn_end", "at": "2026-01-05T10:01:20.960Z", "reason": "done"}