Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/redhuntlabs/wizard/capture-this-chatgit clone --depth 1 https://github.com/redhuntlabs/wizardWrote 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.
[](https://agentmods.dev/commands/redhuntlabs/wizard/capture-this-chat)<a href="https://agentmods.dev/commands/redhuntlabs/wizard/capture-this-chat"><img src="https://agentmods.dev/badge/commands/redhuntlabs/wizard/capture-this-chat.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00013 | $0.00458 |
| Opus 5 | $0.00006 | $0.00229 |
| Sonnet 5 | $0.00003 | $0.00092 |
| Haiku 4.5 | $0.00001 | $0.00046 |
Grade A, and why
capture-this-chat 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 4d 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.
What it actually says
/capture-this-chat
Captures the current chat session and routes it through inferring-a-spell-from-examples. The inference skill produces a draft SKILL.md you can approve, refine, or replace with the regular interview.
How it works
- Detect host tool. Run
scripts/chat-context/detect-tool.jsto identify which AI tool you're in (Claude Code, Cursor, OpenCode, Codex, Gemini, or Copilot CLI). - Capture transcript. Invoke the matching wrapper at
scripts/chat-context/<tool>.jsto get the last 50 turns (or--last Nif specified) as a normalized markdown transcript. - Show consent. Display:
"Captured N turns from this session. View · Continue · Cancel."Wait for user choice. - Hand off to inference. Pass the transcript blob to
inferring-a-spell-from-examples. The skill produces a strawman. - Resume the meta-builder. When the user approves the strawman, hand off to
building-a-spellStage 2 (kind-route → try-it → save).
Usage
/capture-this-chat
/capture-this-chat --last 20
/capture-this-chat --last all
/capture-this-chat --tool=cursor # override detection
Fallback when capture fails
If the host tool can't be detected, or the wrapper fails:
Couldn't capture chat from <Tool> automatically.
Reason: <reason>
Two ways to continue:
1. Save your chat to a file and run:
/build-spell --from-transcript <path>
2. Run the regular interview:
/build-spell
See docs/capturing-chats.md for setup help.
Privacy
- All capture is local. No network call.
- Tool calls in the transcript are summarized (not raw JSON) before inference reads them.
- The transcript is shown to you before inference runs (consent moment).
- Nothing is written to disk except the final saved skill at Stage 4.
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.
- 4d ago First seen · 50 lines · 13 tokens per session scan A 7c1969effc10
capture-this-chat is a command published in the GitHub repository redhuntlabs/wizard (9 stars, last pushed 4mo ago), licensed MIT. It adds 13 tokens to every session and 458 once invoked, about $0.0001 per session on Opus 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-08-31.
Other commands, from other repositories
generate-skill
从 GitHub URL 自动生成技能并发布。使用方法:/generate-skill.
fest-commit
Commit changes with festival traceability metadata.
camp-init
Create a new camp with the standard directory structure. A camp was previously called a campaign; camp init is the same command either way.
fest-show
Show festival progression (in-progress tasks, roadmap, and dependency view).
fest-list
List all festivals with their status and completion percentage.
generate-rfcs
Break the PRD into sequential implementation RFCs.