aidd-bugfix

aidd-bugfix is a command for Claude Code from magic5644/Graph-It-Live. It costs 67 tokens per session (1,000 once invoked), scanned A, original, MIT.

A workflow for fixing a confirmed, reproducible software bug. It traces the cause, applies a fix, adds a regression test, and sends the change through quality, review, security, and pull-request checks.

In plain words
What is it for?
Use it for bugs with known scope, including reproducing the failure, finding affected callers, changing shared code when needed, and verifying the result.
Why use it?
It keeps a known bug from being fixed only at the visible symptom and helps ensure it does not return later.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Read, Write, Agent, Bash(graph-it *), Bash(bash scripts/aidd-gate-check.sh), Bash(npx vitest run *), Bash(npm run build), Bash(npm run lint), Bash(npm run check.

Good fit Use it for bugs with known scope, including reproducing the failure, finding affected callers, changing shared code when needed, and verifying the result.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/magic5644/Graph-It-Live
agentmods
npx agentmods add commands/magic5644/graph-it-live/aidd-bugfix

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 aidd-bugfix

README.md
[![agentmods](https://agentmods.dev/badge/commands/magic5644/graph-it-live/aidd-bugfix/github.svg)](https://agentmods.dev/commands/magic5644/graph-it-live/aidd-bugfix)
Your own site
<a href="https://agentmods.dev/commands/magic5644/graph-it-live/aidd-bugfix"><img src="https://agentmods.dev/badge/commands/magic5644/graph-it-live/aidd-bugfix/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 aidd-bugfix

Your own site · 80×15
<a href="https://agentmods.dev/commands/magic5644/graph-it-live/aidd-bugfix"><img src="https://agentmods.dev/badge/commands/magic5644/graph-it-live/aidd-bugfix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 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,000 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.00067 $0.01000
Opus 5.5 $0.00027 $0.00400
Sonnet 5.5 $0.00013 $0.00200
Haiku 4.5 $0.00007 $0.00100

Measured 2d ago against content hash 6caca11012aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aidd-bugfix 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 2d 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/aidd-bugfix.md · 51 lines

How it starts

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

/aidd-bugfix — Bug loop

Bug: $ARGUMENTS

State: tier bugfix in scripts/aidd-state.mjs — resume with status <id>, record every step, round on BLOCK; exit 3 = stop and ask the human (.claude/rules/agent-workflow.md § State and Resume).

No design phase: the scope is already defined. Follow .claude/rules/agent-workflow.md, including loop bounds: every BLOCK below is one correction round; three rounds on this bug → stop and ask the human. A 1–2 file fix is made by the main conversation directly; the review steps still apply.

Sequence

  1. Diagnose (main conversation)
    • Not confirmed yet → run /aidd-bug-hunt first, unless the bug already came from it: then ask the human.
    • Reproduce: exact steps, error message, file:line.
    • Find every caller of the faulty function (graph-it path-in, graph-it trace); fix the root cause once in shared code.
    • Identify the layer (analyzer / extension / CLI / MCP / webview). Systemic → /aidd-feature (one tier change).
  2. Branch fix/<issue>-<slug> from up-to-date main. Record it: done <id> branch --artifact branch=<name> (the merge hook checks it).
  3. Fix + test by the developer of the layer: lucas (src/analyzer/), emma (src/webview/), marco (src/mcp/), kevin (src/extension/, src/cli/).
    • The test reproducing the bug ships with the fix.
    • Critical rules still apply (no vscode in analyzer/MCP, normalizePath, etc.).
    • Windows cases when the fix touches paths/Sets/Maps.
    • Black-box failure cases when the bug is user-facing.
  4. bash scripts/aidd-gate-check.sh and graph-it check-architecture. BLOCK → step 3 without an agent (one correction round).
  5. hugo-qa-engineer: the reproducing test exists and passes; touched file ≥ 80%. BLOCK → step 3 (one correction round).
  6. In parallel:
    • sophie-code-reviewer: diff only; vscode imports, normalizePath, callbacks, edge cases, user contract. theo-code-review-devil if doubtful.
    • nathan-security-analyst: diff only; untrusted input (MCP payload, CLI args, webview messages): Zod, limits, paths (CWE-22, null bytes, workspace escape); no project data or absolute paths in logs or errors. adrien-security-devil if a BLOCK is disputed.
    • BLOCK → step 3 with a fresh agent (one correction round).
  7. npm run build, lint, typecheck, local Sonar 0 issues; git push -u origin <branch> && gh pr create --milestone <current milestone> in one call; wait for CI green and SonarCloud 0 new issues (at most two fix pushes, then stop and report).
  8. Light GATE-6: the human confirms the bug is fixed; then gh pr merge --rebase --delete-branch.

Read the full file on GitHub · 51 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. 2d ago First seen · 51 lines · 67 tokens per session scan A 6caca11012aa

Subscribe to this mod's changes

aidd-bugfix is a command published in the GitHub repository magic5644/Graph-It-Live (63 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 1,000 once invoked, about $0.0003 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-11-28.

Related

aidd-bugfix compared with commands from other repositories

aidd-bugfix next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aidd-bugfixmagic5644/Graph-It-LiveCommand63yesterdayMITA67Claude Code
build-fixgalyarderlabs/galyarder-frameworkCommand3010d agoMITA20Claude Code
transferVit129/agy-plugin-ccCommand62d agoApache-2.0A25Claude Code
agyVit129/agy-plugin-ccCommand62d agoApache-2.0A13Claude Code
implement-fixakaszubski/autonomous-devCommand3510d agononeA11Claude Code
fix-bugkunalsuri/ai-fication-kitCommand31mo agoApache-2.0A27GitHub Copilot
agy-debugAIgen-Solutions-s-r-l/agy-claude-pluginCommand15mo agoMITA25Claude Code