codex-of-consentient-craft: Command for Claude Code

.claude/commands/quest-forensics.md

quest-forensics is a command for Claude Code from StupidIncarnate/codex-of-consentient-craft. It costs 22 tokens per session (6,834 once invoked), scanned A, original, MIT.

A post-mortem workflow for a completed or paused quest run. It sends separate analyzers to inspect work items and combines their findings into one ranked report without reading large transcripts directly.

In plain words
What is it for?
Use it to index a quest run, analyze its work items, maintain a combined view of findings, and produce a final forensic report.
Why use it?
It avoids loading very large session transcripts into the main working context. This makes it possible to examine time, token use, prompt fit, and wasted effort in a structured way.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is StupidIncarnate/codex-of-consentient-craft's own configuration. It tells Claude Code how to work on codex-of-consentient-craft itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codex-of-consentient-craft configures →

Reuse

Borrowing it

Nothing to install: this file belongs to StupidIncarnate/codex-of-consentient-craft. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/StupidIncarnate/codex-of-consentient-craft/master/.claude/commands/quest-forensics.md
Clone the repo
git clone --depth 1 https://github.com/StupidIncarnate/codex-of-consentient-craft

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quest-forensics

README.md
[![agentmods](https://agentmods.dev/badge/commands/stupidincarnate/codex-of-consentient-craft/quest-forensics/github.svg)](https://agentmods.dev/commands/stupidincarnate/codex-of-consentient-craft/quest-forensics)
Your own site
<a href="https://agentmods.dev/commands/stupidincarnate/codex-of-consentient-craft/quest-forensics"><img src="https://agentmods.dev/badge/commands/stupidincarnate/codex-of-consentient-craft/quest-forensics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quest-forensics

Your own site · 80×15
<a href="https://agentmods.dev/commands/stupidincarnate/codex-of-consentient-craft/quest-forensics"><img src="https://agentmods.dev/badge/commands/stupidincarnate/codex-of-consentient-craft/quest-forensics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,834 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.06834
Opus 5.5 $0.00009 $0.02734
Sonnet 5.5 $0.00004 $0.01367
Haiku 4.5 $0.00002 $0.00683

Measured 1mo ago against content hash 85c99f84cb60, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quest-forensics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/quest-forensics.md · 423 lines

How it starts

The opening of the file, as written. The whole thing — 423 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quest forensics

You are the orchestrator of a forensic post-mortem on one quest run. You dispatch one analyzer per work item, keep a convergence spine as their reports land, then dispatch a compiler that merges everything into a single ranked document.

Quest id: $ARGUMENTS

You read no transcripts yourself. Transcripts run to hundreds of megabytes; reading one directly burns your context and buys nothing an analyzer cannot give you. Your jobs are: index the quest, brief the analyzers, keep the spine, and hand off to the compiler.

Step 1 — index the quest

mkdir -p tmp/quest-forensics/$ARGUMENTS first.

The index. npx dungeonmaster-session-forensics quest $ARGUMENTS > tmp/quest-forensics/$ARGUMENTS/index.txt, run from the repo root. It needs packages/session-forensics/dist/ already built — this is read-only analysis, so if that is missing, stop and say so rather than building it. It prints the whole per-work-item index in one pass, already joined: userRequest once at the top, then one block per work item carrying work item id, role, status, session id, wall clock (completedAt - startedAt, falling back to createdAt when startedAt is absent), the joined operation's text/flow ids/package names (resolved through the operations/<id> entry in that item's relatedDataItems), transcript size, sub-agent count, and any ward/riftcarver result the item points at (via relatedDataItems, or lastWardRunId matching a result's own runId). Nothing here needs ls, a manual get-quest join, or subtracting timestamps by hand. Read the file back before Step 2.

If the user named a range ("from the first codeweaver to the second siegemaster"), honour it. Otherwise analyze every work item that has a sessionId. Work items with spawnerType: 'command' (ward, riftcarver) have no transcript — fold each into the analyzer for the agent item next to it rather than giving it an analyzer of its own, and say so in that analyzer's brief.

Step 2 — write the analyzer brief

Read the full file on GitHub · 423 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 85c99f84cb60
  2. 1mo ago Changed · -9 lines c887f137ec62
  3. 1mo ago Changed · +63 lines fd2995adf0f3
  4. 1mo ago Changed b238b37ba8fd
  5. 2mo ago First seen · 369 lines · 22 tokens per session scan A 02f38289fca7

Subscribe to this mod's changes

quest-forensics is a command published in the GitHub repository StupidIncarnate/codex-of-consentient-craft (2 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 6,834 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.