fix

A coding command that handles exactly one unchecked item from a project's todo checklist. It reads the project's intended behavior, fixes that one issue, regenerates the output, and compares it with the earlier version.

In plain words
What is it for?
It helps resolve one documented implementation problem at a time, follow the project specification, regenerate results, check that the issue is fixed, and record adjacent issues for later.
Why use it?
It limits each repair session to a clear, testable change. This prevents unrelated fixes from being bundled together and helps detect regressions caused by the change.

Command for Claude Code

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/aidemd-mcp/server/fix
Clone the repo
git clone --depth 1 https://github.com/aidemd-mcp/server

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 406 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.00000 $0.00406
Opus 5 $0.00000 $0.00203
Sonnet 5 $0.00000 $0.00081
Haiku 4.5 $0.00000 $0.00041

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

Security

Grade A, and why

fix 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.

.claude/commands/aide/fix.md · 21 lines

What it actually says

/aide:fix — Fix Phase

Agent: This command is executed by the aide-implementor agent.

Work one unchecked item from the todo.aide checklist. This is the implementor phase in fix mode — the same agent that runs /aide:build, invoked with a narrower scope and a stricter one-session-per-item protocol. See todo.aide spec for the file format.

Checklist

  • Read the intent spec (.aide or intent.aide) in the target module
  • Read todo.aide and pick the next unchecked item. Do not pick ahead, do not bundle. Read the item's Misalignment tag to understand where intent was lost
  • Fix exactly ONE issue. Do not fix adjacent issues discovered during the session — add them to the todo.aide checklist instead, unchecked, for future sessions
  • Base the fix on the spec, not on the one-line issue description. The description points at the problem; the spec is the source of truth for what correct looks like
  • Run the generation command (or equivalent) to produce fresh output after the fix
  • Compare the new output against the baseline from before the fix:
    • Is the targeted issue resolved?
    • Did anything else regress? The fix may have moved unrelated output further from the spec
  • Run tests and the type checker to catch structural regressions
  • Check the item off in todo.aide only if both the targeted fix landed and no regression was introduced. Otherwise revert, leave the item unchecked, and end the session
  • Commit the fix in its own commit — one checkbox, one commit, one diff
  • End the session. The next item starts in a fresh session with clean context — do not continue working additional items in the same session
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 · 21 lines · 0 tokens per session scan A 38834e0a64e5

Subscribe to this mod's changes

fix is a command published in the GitHub repository aidemd-mcp/server (3 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 406 tokens. 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.