capture

capture is a command for Claude Code from lugassawan/swe-workbench. It costs 22 tokens per session (2,828 once invoked), scanned A, original, MIT.

A command that turns an idea, improvement, or bug into a clearly described GitHub issue, a tracked task in a code repository.

In plain words
What is it for?
Use it to capture work in a repository, either with a quick clarification or a detailed question-by-question discussion.
Why use it?
It helps convert a vague request into an issue that gives contributors enough context to act on it.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Part of the swe-workbench plugin — 61 skills, 25 commands, 23 agents, 4 hooks shipped together

Good fit Use it to capture work in a repository, either with a quick clarification or a detailed question-by-question discussion.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/lugassawan/swe-workbench/capture
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.

Clone the repo
git clone --depth 1 https://github.com/lugassawan/swe-workbench

Made for: Claude Code.

Or install swe-workbench, the plugin that ships this one along with the rest of its 61 skills, 25 commands, 23 agents, 4 hooks.

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 capture

README.md
[![agentmods](https://agentmods.dev/badge/commands/lugassawan/swe-workbench/capture/github.svg)](https://agentmods.dev/commands/lugassawan/swe-workbench/capture)
Your own site
<a href="https://agentmods.dev/commands/lugassawan/swe-workbench/capture"><img src="https://agentmods.dev/badge/commands/lugassawan/swe-workbench/capture/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 capture

Your own site · 80×15
<a href="https://agentmods.dev/commands/lugassawan/swe-workbench/capture"><img src="https://agentmods.dev/badge/commands/lugassawan/swe-workbench/capture.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 2,828 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.02828
Opus 5.5 $0.00009 $0.01131
Sonnet 5.5 $0.00004 $0.00566
Haiku 4.5 $0.00002 $0.00283

Measured 18d ago against content hash 59b927e682db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 18d 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.

commands/capture.md · 79 lines

How it starts

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

The user wants to capture: $ARGUMENTS

Interrogation mode. Before producing anything, resolve the mode:

  • Explicit signal in the invocation is honored without asking. grill-me = --grill, "grill me", or "grill-me mode". standard = --standard, "standard", or "quick". Strip the signal from $ARGUMENTS and record the resolved mode.
  • No explicit signal: ask via AskUserQuestion — one question, header "Mode", options Standard (recommended, listed first) and Grill me. Standard description: "Lightweight clarify — a restatement and at most one question, then proceed." Grill-me description: "Relentlessly walk the decision tree one question at a time, each with a recommended answer, self-answering from the codebase where possible." Use the user's choice.

Standard mode: proceed with the command's existing lightweight clarify (a restatement and at most one clarifying question) — do not ask the mode question again.

Grill-me mode: activate swe-workbench:workflow-grill and run its interrogation loop to completion (exit on shared understanding or when the user says "proceed"). Then thread the emitted ## Resolved decisions block into the command's normal artifact/delegation step below — the same way a ticket-context summary is prepended — and continue as in standard mode.

Delegate to the swe-workbench:product-manager subagent. Its response must deliver all of the following before any issue is filed:

  1. Auth + repo detection. Run gh auth status, then gh repo view --json nameWithOwner,visibility. Surface the detected nameWithOwner in the preview as Filing into: <owner>/<repo>. Record the visibility: the redactor (step 6) runs on every draft unless visibility is affirmatively PRIVATE or INTERNAL, so a PUBLIC repo, a missing field and any other or unknown value all redact. If gh rejects the visibility field (an older gh), retry with --json nameWithOwner and treat the visibility as unknown. If either command otherwise fails, bail with a clear single-line message ("Repo detection failed: . Run gh repo view to diagnose.") and stop.

  2. Restatement. One sentence in the user's domain language confirming the thought. If the thought is ambiguous, ask exactly one clarifying question before continuing.

  3. Product framing — four lenses applied with brevity:

    • Problem. User pain or constraint, stated as the user's pain — not the feature.
    • Value. Who benefits and how. One "so-what" sentence.
    • Acceptance criteria. 2–4 bullets (Given/When/Then or simple bullets).
    • Impact / Effort (RICE-lite). Impact: S/M/L and Effort: S/M/L, one sentence each.
  4. Template discovery. List .github/ISSUE_TEMPLATE/ filtered to *.md, skipping config.yml. Read each template's frontmatter and first ~20 body lines. Classify the thought into the closest-fit template with a one-sentence reason, or note "No issue templates found; using default body shape" when none exist.

  5. Label discovery. Run gh label list --json name -q '.[].name' to get the repo's available labels. If the command fails or returns empty output, treat the label list as empty and proceed directly to step d (no match → omit --label). Otherwise select a label using this chain:

    a. Template frontmatter: if the chosen template has a labels: field and that value exists verbatim in the repo's label list, use it. b. Fallback — substring match (case-insensitive): if the frontmatter label is not present verbatim, pick the first repo label whose name case-insensitively contains (or is contained by) the template's value. c. No template chosen: map by commit-tag — [feat] → enhancement, [bug] → bug, [chore] → documentation — then apply the same chain against the repo's label list. If no commit-tag is recognisable in the user's input, proceed directly to step d. d. No match found: omit --label; record this so the preview can warn the user ("No matching label found; filing without label").

Read the full file on GitHub · 79 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. 18d ago Changed · +17 lines 59b927e682db
  2. 1mo ago Changed · +2 lines fad26e579626
  3. 2mo ago First seen · 60 lines · 22 tokens per session scan A fe4595084792

Subscribe to this mod's changes

capture is a command published in the GitHub repository lugassawan/swe-workbench (3 stars, last pushed 2d ago), licensed MIT. It adds 22 tokens to every session and 2,828 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-08-31.

Related

capture compared with commands from other repositories

capture next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
capturelugassawan/swe-workbenchCommand32d agoMITA22Claude Code
lsp-setupzircote/lsp-toolsCommand184d agoMITB20Claude Code
debugTheBeardedBearSAS/claude-craftCommand1073d agoMITA9Claude Code
estimatecdeust/ai-architect-mcp-codebaseCommand73d agoMITA0Claude Code
build-fixgalyarderlabs/galyarder-frameworkCommand2926d agoMITA20Claude Code
doctorModellix/modellix-pluginCommand19d agoMITA16Claude Code
bugKripu77/software-factoryCommand61mo agoMITA27Claude Code