capture

An issue ledger command for recording and querying repository issues in structured files. Each issue gets a stable ID and a status such as open, resolved, or wontfix.

In plain words
What is it for?
Use it to capture an issue, list recent issues, promote one, resolve one, or mark one as wontfix.
Why use it?
It keeps observations, questions, and small problems organized instead of scattered through notes or conversations. A status-only check can show recent issues without changing files.

Command

Install

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.

agentmods
npx agentmods add commands/intentdriven/abcd/capture
Clone the repo
git clone --depth 1 https://github.com/intentdriven/abcd
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,956 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00044 $0.01956
Opus 5 $0.00022 $0.00978
Sonnet 5 $0.00009 $0.00391
Haiku 4.5 $0.00004 $0.00196

Measured yesterday against content hash 1785172dd7d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

capture 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 yesterday.

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.

commands/capture.md · 152 lines

How it starts

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

/abcd:capture — issue ledger

The lightweight write side of the structured issue ledger under .abcd/work/issues/. Every issue gets a stable iss-N id, schema-checked frontmatter, and folder-as-status (open/, resolved/, wontfix/). Bare invocation performs zero writes.

Status (bare)

To render recent captures and counts:

"${CLAUDE_PLUGIN_ROOT}/abcd" capture --json

Summarise the JSON for the user: open_count / resolved_count / wontfix_count, and for each entry in recent_open its id, severity, and slug. No iss-*.md file is created, moved, or mutated by this invocation.

Which ledger? A half-formed observation, question, or nitpick goes to /abcd:capture "…"; a user-facing change you want to ship goes to /abcd:intent "…". For a big, unproven idea there is an optional third route: /abcd:ideate runs the admission gauntlet and records the verdict either way. It is a pointer, never a precondition — capture friction stays at one line.

Capture an issue

Append a structured issue from free-form text:

"${CLAUDE_PLUGIN_ROOT}/abcd" capture "<text>" --json

Provide provenance and taxonomy through flags when known (each falls back to a default): --severity (nitpick|minor|major|critical, default minor), --category (default observation), --source (default user-observation), --found-during (session/command context, default manual-capture), --found-at (optional repo-relative path), --slug (overrides the slug derived from the text), --blocked-by (comma-separated iss-N ids this issue depends on). Report the new id, status, and path from the JSON. Report redacted too whenever it is non-zero: it counts the spans rewritten before the text was written, and the user needs to know their wording was changed.

A single whitespace-free word is refused (exit 2, nothing written): a lone token reads as a mistyped sub-verb, never as issue text. A near-miss of a real sub-verb is refused the same way, with the correction named, so a two-word input containing a space is not automatically safe.

Read the full file on GitHub · 152 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. yesterday First seen · 152 lines · 44 tokens per session scan A 1785172dd7d9

Subscribe to this mod's changes

capture is a command published in the GitHub repository intentdriven/abcd (3 stars, last pushed 2d ago), licensed MIT. It adds 44 tokens to every session and 1,956 once invoked, about $0.0002 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.

Related

Other commands, from other repositories