Skip to content

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 04:47
· 8 commits to main since this release

Pricing refresh against the live pricing page on 2026-11-12: Claude Fable 5.2 and Claude Mythos 5.2 are added. This release also ships Codex session support, the Sessions list and the session page.

Upgrade if you run Fable 5.2 or Mythos 5.2. v2.0.0 and earlier price every Fable 5.2 and Mythos 5.2 turn at $0. Coming from v1.9.2? Read 2.0.0 below first: it removed the report and diff outputs.

Added

  • Codex sessions. claudit serve reads Codex CLI rollouts ($CODEX_HOME/sessions, else ~/.codex/sessions; --codex-root overrides, an empty value turns it off) beside Claude Code's logs. Each model response is one turn with provider codex; exec / exec_command shell calls are reported as Bash calls, bucketed by their shell command (an exec whose command cannot be read statically keeps the name exec), and a non-zero exit code marks the call failed. A subagent rollout is flagged sidechain and nests under its parent thread's session in the Agents view. Compressed rollout-*.jsonl.zst archives are not read yet.
  • GPT-6 prices. The bundled table prices codex/gpt-6-astra, codex/gpt-6-sol, codex/gpt-6.1-sol and codex/gpt-5.5 at OpenAI's Standard rates (fetched 2026-10-31), with the long-context rates for a turn whose prompt exceeds 272K input tokens. codex-auto-review is priced at $0 because OpenAI's Codex FAQ (https://help.openai.com/en/articles/11369540-openai-codex-faq) states auto-review checks are free, so it no longer appears in the unpriced-model warning.
  • Provider filter. A Provider control under the date range (All · Claude Code · Codex) narrows every view to one agent tool. Like the date range, it lives in the URL (?provider=claude-code or ?provider=codex; All drops the key), so a reload or a shared link keeps it; any other value is a 400. Tab reaches it and the arrow keys switch it. /_claudit/api/cost and /_claudit/api/tools gain a sessions count, and each Agents session a provider field.
  • Per-provider totals on the Overview. With All selected, one tile per provider shows its sessions, turns, dollars and share of the window's dollars. Every provider's dollars, on each tile and on the headline Total cost, are labelled API-equivalent, with one tooltip for all of them: the tokens priced at API list rates, while the subscription bills differently. /_claudit/api/overview gains providers.
  • Codex in the Agents view. Codex sessions carry a Codex badge in the Feed, Tree, Timeline and Conversation; the Conversation shows Codex's assistant replies, and every reply now lists its tool calls with their input, an output snippet and a failed mark.
  • Session index and paged story endpoints. GET /_claudit/api/sessions answers one light row per session in the filter window (no steps or tool snippets): its prompt-family key (the first line of its first real prompt with wrapper blocks stripped and bead ids, file paths, hashes and numbers blanked to _), the blanked remainder, title, outcome, model, cost, turns, commands, unresolved failures and whether it was active in the last minute. GET /_claudit/api/sessions/story?session=<id>&prompt=<i>&offset=<n> pages one session's story by user prompt, 200 turns at a time, with the sub-agents started in that span, each Codex command's exit code split off its output, and counts of the turns the window or replay dedup hid. An unknown session, prompt or offset is a 404. web/api.js gains fetchSessions() and fetchSessionStory().
  • Session story ("What happened"). web/session-story.js exports paintStory(host, sessionId, turnUuid): one user prompt at a time, the prompt and each agent message verbatim, each message's commands under a counted header (7 commands · 2 unresolved · 1m 12s, the model cost of those turns beside it), one row per call with its clock time, ✓ / ✕ / …, the command on one line and its duration, idle gaps over five minutes as rows, sub-agents nested under the step that spawned them (or placed by start time as "parent step unknown", overlapping ones under one "N agents in parallel" header), wrapper blocks folded into a disclosure, and the date-filter and replay counts disclosed at the top. A step row expands on click or Enter to the turn's thinking and the call's exact input and output, with Show full fetching the untruncated text and a Codex exit-code chip. Previous / Next prompt, a jump list of every prompt, a row that loads the next 200 turns, an in-page search and a turn deep link that opens the page carrying the turn. The story endpoint accepts ?turn=<uuid> in place of ?prompt/?offset to answer that page, and each page carries every prompt and agent message whole (read back from the session log past the 2,000-rune parse snippet, Claude Code and Codex alike), each call on its own row with input_key (the whole input's identity, which decides whether a failed command later succeeded) and input_full when input is cut. Overlapping sub-agents spawned by successive turns share one parallel header, each linking back to the call that spawned it. /_claudit/api/agents/full finds a Codex sub-agent thread's turns and calls under its root session id, reads Codex turn text, and reads .jsonl.zst rollouts. The Sessions route mounts it (pending).
  • Sessions list. The Agents nav entry opens a list of every session in the window grouped by prompt family: each header shows the family key (blanked tokens drawn as …) and its count, groups ordered by their newest session, and each row the blanked remainder (or the title), the agent's last line verbatim, a provider chip, cost, duration and N failed for unresolved failures. A search over key, remainder, title, outcome and project; All / Active in the last minute / Had unresolved failures chips with counts; Newest / Cost / Duration sorts within each family; an "Active in the last minute" row pinned on top with each session's elapsed time; groups over 20 rows behind "Show N more". Arrow keys walk the rows, Enter or a click opens the session. The list refreshes in place on new data, keeping search, filter, sort, focus and scroll. #agents/<session-id>[/<turn-uuid>] opens a session page with the story, and Overview hotspot examples link there.
  • Session header. A session page opens with its title, project, provider chip, model, short id and last-activity time, then four tiles: Cost (the sum of every turn, marked API-equivalent), Duration (with N turns · M commands across the main agent and its sub-agents), Tokens (with the share re-read from cache) and Failed (unresolved failures: an errored call no later call with the same whole input (input_key) fixed in the same agent, naming up to two). Below them a strip draws one bar per model turn in time order, sized by what the turn added to context (Cost) or its duration (Time), failed turns in the danger color; past 120 turns consecutive turns share a bar. Hovering or focusing a bar names the turn, its time, its sub-agent and first command; a click or Enter opens the story at that turn, a sub-agent's turn opening its sub-agent there. Up to three Worth a look notes come from the five per-session detectors, dropping a retry storm or error cascade the same command later fixed and putting first a note on the turn the session ended on; a session with no tool calls has none. "Copy explain-this-session prompt" copies a fixed-template prompt for the agent that ran the session: its log paths, each unresolved failure (time, command, first output line) and the three costliest turns. The story endpoint gains context_cost_usd on every step, ?turn= of a sub-agent's turn answering the page its sub-agent started on, source_files on every page and ?whole=1, which answers every turn of the session in one payload with its title, project, provider, model and span.
  • Prices per provider. prices.yaml accepts a providers: map (provider name → models:), so a provider other than Claude Code can carry its own prices; a user entry replaces or adds one (provider, model) pair. Files in today's bare models: form keep working and price Claude Code.
  • Pricing: Claude Fable 5.2 and Claude Mythos 5.2. claude-fable-5-2, claude-fable-5-2[1m], claude-mythos-5-2 and claude-mythos-5-2[1m] are added at $8 input / $40 output, with 5m/1h cache writes of $10 / $16 and cache hits at $0.20/MTok, 0.025x input (the Fable 5.1 ratio). Fast mode prices them at $16 input / $80 output, with cache hits $0.40 and writes $20 / $32 at the same ratios off the fast input rate. Earlier builds had no entry for these ids, so every Fable 5.2 and Mythos 5.2 turn landed in unknown_models and added $0 to reported spend.

Changed

  • claudit describes itself as auditing Claude Code and Codex sessions. The --help banner, the README tagline and intro (which now name both log roots, ~/.claude/projects/ and ~/.codex/sessions, and the --codex-root flag), the AGENTS.md brief (which also drops the removed --json/--html outputs in favour of claudit serve and claudit watch) and the Agents view's guide paragraph no longer call it a Claude Code tool.

  • Codex shell calls fold into Bash. A Codex exec / exec_command call is named Bash at parse time, so grep is one Overview hotspot row (Bash: \grep`, its examples naming each call's provider), one Tools row and one Agents tool kind (exec, not other`) across Claude Code and Codex. The session's provider badge and each hotspot example's provider still say which agent ran the call.

  • Codex tool results carry context cost. Codex writes no prompt cache (a token is billed once as uncached input, then re-read at the cached-input rate), so its tool results used to cost $0 and never ranked as an Overview hotspot or a Tools-view context cost. A Codex tool result's context cost is now its share, by output size, of the next response's uncached input, priced at the model's input rate, plus every later response's cached re-read of it, ending at the rollout's end or at a compacted record (now read as a compaction boundary). Claude Code numbers are unchanged: its results still cost the cache write that carried them plus later cache reads.

  • Unpriced-model warnings name the provider. The Overview warning lists each gap as provider/model (e.g. claude-code/claude-future-9), and unknown_models rows gain a provider field.

  • Hotspot prompts fit the agent that produced the evidence. Copy prompt on an Overview hotspot now describes claudit as an audit of coding-agent session logs (Claude Code, Codex), names each example's provider (42,000 tokens · codex · session …), and offers only the fixes that provider's agent can make: Claude Code evidence keeps the CLAUDE.md line, the PreToolUse/PostToolUse hook and the CLI flag; Codex evidence gets an AGENTS.md line and a CLI flag or wrapper script, with no hook, since Codex has no tool-call hook; evidence from both names both instruction files and marks the hook Claude Code only. A repeated-cache-write prompt names the session's own instruction file. Each /_claudit/api/overview hotspot example gains a provider field (claude-code or codex).

  • The Tools view shows columns that add up. The by-tool table and each tool's (tool, pattern) drill-down now show Calls, Error %, Median and p95 duration, Context added and Context cost, sorted by context cost. Error % counts only calls whose result was recorded; duration runs from the end of the calling turn to the tool's result. Context cost is the cache write that put a tool's results into context plus every later turn that re-read them, so each call counts once; hover a cell for the tokens, re-read turns, and write/read split. The old Cost column, which credited each tool with the whole cost of every turn that called it and so summed to more than total spend, is gone with its explainer, its heat shading and the per-tool trend column. The drill-down lists every pattern, paged, instead of the top 50. /_claudit/api/tools rows change shape accordingly (tool, pattern, calls, error_count, error_rate, duration_median_ms, duration_p95_ms, context_tokens, context_cost_usd, …).

  • The Overview lists every tool pattern. Under the hotspot list, Show all tool patterns opens one table of every (tool, pattern) row from /_claudit/api/tools, each tool a parent row with its totals and its patterns beneath; Enter or a click on a tool folds its patterns away. It includes what the hotspots skip: rows whose results cost no context, and the Skill, SlashCommand and Agent tools. Every column header sorts parents and patterns together (descending first, default Context cost), Filter rows narrows by tool or pattern, and the Context cost and Error % cells keep their tooltips. Above 100 patterns the tools start folded. #overview/all opens and scrolls to the table; /_claudit/api/tools is fetched only when it opens.

Removed

  • The Tools view. Its by-tool table and drill-down subtab are folded into the Overview's Show all table, and the sidebar loses the Tools entry and its metric. Old #tools, #tools/by-tool and #tools/drill links land on #overview/all. /_claudit/api/tools is unchanged.
  • The Agents lenses, drawer and filter bar. The Sessions list, header and story replace the Feed, Tree, Timeline and Conversation lenses, the Insights lens's tabs, the detail drawer and the trace filter bar; their modules, tests and stylesheet rules are deleted. The five anomaly detectors and the graph-model helpers the session header reads stay, with their tests. Old #agents/feed, #agents/tree, #agents/timeline, #agents/conversation and #agents/insights links land on #agents, and a Tree link naming a session opens that session's page. GET /_claudit/api/agents (the whole-corpus agent graph) answers 404; /_claudit/api/agents/full still answers the story's Show full. Measured from the branch base: git diff --shortstat reads 77 files changed, 1328 insertions(+), 13330 deletions(-); wc -l web/*.js jstest/*.js falls from 22,629 to 12,358 lines (web/.js 13,264 → 6,973, jstest/.js 9,365 → 5,385), 10,271 lines of JS deleted.
  • claudit serve --sessions and ?sessions=. The cap applied only to the deleted Agents view; the Sessions list shows every session in the window. --sessions is now rejected as an unknown flag; a ?sessions= left in an old bookmark is ignored.

Fixed

  • Codex "Script completed" outputs show what the command printed. A Codex call whose output is a Script completed … Output: header over a JSON result chunk (perhaps behind a Warning: truncated output block) now carries that chunk's exit_code and output in the session story, Show full and the explain-this-session prompt, instead of the header with no exit code, however long the output. A body with several chunks, one per command the script ran or polled, carries the last non-zero exit_code (else the last one) and the chunks' outputs in order; a lone chunk for a command still running stays as is.
  • Worth a look no longer flags ordinary variance. A slow-tool note needs a call of at least 60 s that is also at least 2× the session's p95 or 3× the median of its own kind (detectSignals opts slowFloorMs, slowP95Multiple, slowMultiple); its reason names the threshold and the floor. Unresolved retry storms and error cascades rank before every cost-whale, slow-tool and idle-stall note, and only those two render on the warn background; the rest are neutral buttons with an accent hover. On the local corpus (1,502 sessions in the default window) sessions with a note fell from 1,060 to 456 and slow-tool notes from 2,238 to 554.
  • Codex spend is attributed per prompt. Spend → by prompt put every Codex dollar under "(no prompt)". Each Codex turn now counts under the user prompt before it in its rollout, keyed by the person's own words: the AGENTS.md instructions, environment context, goal reminders and guardian tool lists Codex injects into a user message are left out, so a codex exec run keys by its real ask rather than its injected preamble. A subagent rollout, which carries no prompt of its own, counts under its parent thread's prompt current when it started, or "(no prompt)" when the parent rollout is not on disk.
  • The Forecast tab no longer vanishes at month end. The month-end projection follows the local calendar month, the same local-midnight calendar the date filters use, so on the evening of the last day it still projects that month instead of rolling into a UTC month with no cost yet. Under daily bucketing the Forecast tab stays when no projection is possible yet and names the month and the two-days-of-cost requirement; it is hidden only for a historical or non-daily window. /_claudit/api/overview's forecast gains reason (not_daily, historical or too_few_days; empty with a projection).