SlashForge
Commands

/slashforge-fix

Patch a bug straight from a /slashforge-investigate finding — test-first, scoped to the implicated files, with no full feature-planning phase.


On this page
/slashforge-fix
/slashforge-fix --issue <url>
Note

Using Cursor or Codex? Pick your agent in the header and every command on this page changes with it. See Hosts for what else differs.

The bridge from read-only investigation to a shipped patch. It reads the structured finding /slashforge-investigate left behind, writes a regression test, then fixes the root cause — without paying for the full feature-planning phases of /slashforge-code.

Use it when the bug is already understood. For a change big enough to need planning, use /slashforge-code instead.

The investigate → fix loop

/slashforge-investigate writes two artifacts: the HTML report for a human, and a machine-readable contract at .slashforge/latest_investigation.json for this command. The contract carries the run_id, the reproduction_steps, the root_cause, the implicated_files, and a suggested_approach.

/slashforge-fix with no argument reads that contract — so the usual flow is just:

/slashforge-investigate the auth middleware drops the session on refresh
# …investigation completes…
/slashforge-fix

.slashforge/ holds machine-local run state — gitignore it. Only the most recent investigation is kept, which is exactly what /slashforge-fix reads.

What it changes about the standard flow

/slashforge-fix inherits the ten-phase workflow but mutates the front of it:

Everything after that — review (with the security audit), push, PR, PR feedback, and post-merge cleanup — runs exactly as /slashforge-code.

Gates

The same four user gates as /slashforge-code still apply: plan confirmation, branch decision, PR target + reviewers, and branch cleanup. The investigation’s suggested approach is a proposal, not an approved plan — Phase 3 still asks you to confirm.

Argument

/slashforge-fix normally takes no argument and reads the latest investigation. If there is no .slashforge/latest_investigation.json, it stops and asks you to run /slashforge-investigate first rather than guessing.