Razorback

Your coding agent designs first, tests first, and stops at a pull request.

Razorback is a set of skills for Claude Code, Codex CLI / ChatGPT desktop app, OpenCode, and Antigravity. It matches the process to the task: clear work goes straight to a test-first build, a review, and a pull request for you to merge. Unclear or consequential work first gets a design you agree with, and a plan when the work needs a handoff or parallel workers. It can use Goldfish to keep decisions across sessions; Goldfish is optional.

Install razorback View on GitHub

Harnesses
Claude Code, Codex, OpenCode, Antigravity
Skills
35
License
MIT
Build step
None

What changes when your agent runs razorback

Razorback does not change your model. It gives the agent working rules and a path sized to the task, and it makes every subagent follow the same rules.

Area A bare agent With razorback
Exploring code Searches with grep and reads whole files until it finds what it needs. Reads the code a change touches before it edits. It finds a function's callers before it changes the function, and it confirms names and signatures from current source.
Subagents Subagents start without your working rules. Each plan task goes to a fresh implementer subagent. On Claude Code, a SubagentStart hook gives every subagent the evidence rules.
Small fixes No rule for how much process a fix gets. A fix of at most two source files and about 20 lines, with no contract change, takes the quick-fix tier: it is fixed on your current checkout and only the affected tests run. A list of such fixes is one batch: one branch, one branch gate, one pull request.
Long plan runs No rule for when to stop, and no saved state when the context compacts. After you approve the design or the plan, the run needs no per-task confirmation. It stops only for five kinds of real blocker. It writes a Goldfish checkpoint for a key decision, a surprising failure, or unfinished work.
Tests Test order and test scope are up to the agent. A failing test comes first on every task. Focused tests run in the inner loop, the full suite runs once at the branch gate, and nothing reruns on an unchanged tree. Slow suites such as browser tests run once at the branch gate against the whole batch, never after each task.
Review The agent that wrote the code says it is done. The lead reviews every task against the spec, then for code quality. No "done" or "passing" claim without fresh command output. A reviewer grades behavior the spec never named by what a user would expect, and lists what it set aside so the lead rules on it. An optional pre-merge review by codex or claude adds a general pass and a security pass.
Memory across sessions Each session starts from zero. Goldfish checkpoints and briefs keep decisions when Goldfish is installed. Say "resume" and the agent recalls them, reads the plan checkboxes and git log, and continues at the next open task.
Finishing The work ends wherever the agent stops. The run ends at a pull request, with a morning report of every decision it made on its own. Merging stays with you.

Six steps from request to pull request

You make the decisions at the start and the end. The agent does the work in between and tells you what it decided on its own.

  1. Brainstorm

    You
    Answer its questions and decide the choices it names. If it names the wrong path, correct it.
    Razorback
    Runs only when the request is unclear or makes a consequential choice. Names the path first: Spike, Bounded, or Architectural. It writes no code for a consequential choice you have not made. Architectural work gets a written spec in docs/plans/, and you approve the design one time, at that spec.
  2. Plan

    You
    Usually nothing. A plan that stays inside a spec you approved, or inside your request, starts without a second approval. The agent asks only when the plan makes a new consequential choice. Then reply "approved"; "looks ok" does not start the run.
    Razorback
    Writes a plan file only for a handoff, a multi-session effort, or parallel work. The plan states outcomes, the files each task owns, how each task is verified, and acceptance checkboxes; it does not prewrite the code. One coherent task skips this step.
  3. Test

    You
    Nothing. If you do not want TDD, say so; your instructions override the skill defaults.
    Razorback
    Starts every task with a failing test, watches it fail, and then writes the minimal code that makes it pass.
  4. Execute

    You
    Nothing until the end, unless the run hits a real blocker.
    Razorback
    Does one coherent task itself. Gives independent tasks, or tasks that benefit from a separate context, to fresh implementer subagents in parallel. It does not pause between tasks.
  5. Review

    You
    Choose the pre-merge reviewer in your approval reply: codex, claude, or none. None is the default.
    Razorback
    The lead reviews each task inline, spec first, then code quality. A pre-merge reviewer makes exactly two calls, one general and one security. The lead checks each finding against the current code and fixes the real ones.
  6. Finish

    You
    Read the report, review the pull request, and merge it. If you did not allow push and PR up front, answer one question first.
    Razorback
    Runs the branch gate, including the secrets scan and dependency audit. It writes a morning report to .memories/ in one commit, pushes, and opens the pull request. It never merges.

Not every change needs the whole trail

The quick-fix tier

A small defect or tweak skips brainstorming when all of these hold:

  • the agent located the target in the current code;
  • at most two source files and about 20 changed lines, tests excluded;
  • no change to a public API, schema, persisted data, config contract, security behavior, or dependency;
  • no new modules or components;
  • one git revert undoes it.

It is fixed on your current checkout, with no worktree and only the affected tests. If a criterion fails or the fix grows, the agent returns to brainstorming triage.

Batch mode: a list of such items runs on one branch. Each item gets its own focused tests and commit. The full suite runs once at the end, and one pull request carries the batch. An item that fails a criterion leaves the batch; the rest still ship.

Three brainstorm paths

Spike
A feasibility question. The answer is the output, not kept code. There is no design doc.
Bounded
A change to a flow that already exists, with one or two consequential choices. A short design in chat; the agent waits for your answer only on choices you have not made. No spec file.
Architectural
A new project, subsystem, or interface change. Two or three approaches, an architecture check, a written spec you review, then a plan.

Clear, low-consequence work skips brainstorming. The agent judges by uncertainty and consequence, not by the size of the diff. A path upgrades when hidden complexity appears and downgrades when the task turns out simpler. It asks a question only when the answer changes what gets built and nothing already answers it; otherwise it states its call as a proposal you can correct.

Which skill runs the work

subagent-driven-development
Independent tasks, or tasks that benefit from a separate context, when delegation is available. Codex needs multi_agent = true.
executing-plans
A written plan the current agent runs: dependent tasks, no delegation, or your choice of a single agent. One coherent task needs no plan at all.
dispatching-parallel-agents
Ad-hoc parallel work outside a plan.
fixing-small-issues
The quick-fix tier, and Batch mode for a list of small items.

Where it stops

After you approve the plan, the run stops for only five reasons:

  1. Credentials, login, or the environment are broken and the plan gives no way to recover.
  2. A destructive action, such as deleting data, a force-push, or a production migration, that the plan did not authorize.
  3. The code contradicts a key assumption of the plan, so its approach no longer works.
  4. A safety-critical choice about security, data integrity, billing, or auth has two plausible readings and the plan does not decide.
  5. Test failures that repeated fix attempts cannot resolve.

The agent decides everything else, such as naming, style, small design choices, a better approach than the plan's that keeps its contracts, or a small bug next to the task, and logs it in the morning report. Its rule: "When in doubt, press on and flag."

The run ends at a pull request. Approval allows local commits only, so the approval question also asks if the agent may push and open the PR. If you did not answer, the agent asks once before it pushes. Merging is yours.

Best practices

Most skills start on their own. These habits get more out of them.

The skills

Razorback ships 35 skills. The agent picks most of them from their descriptions; you trigger the second-opinion skills by name.

Start here

  • using-razorback Loads at session start. Lists the skills, matches the process to the task by uncertainty, consequence, and coordination, and holds the evidence rules.

Design and planning

  • brainstorming Turns an unclear or consequential request into a design you agree with. Scales the ceremony to Spike, Bounded, or Architectural, and asks only about choices you have not made.
  • prototyping Builds throwaway code that answers one design question you settle by hand.
  • writing-plans Turns a spec into a task-by-task plan with file ownership, verification scopes, and acceptance checkboxes.
  • architecture-quality Checks module boundaries, interfaces, and coupling before a plan, for a refactor, or as a cleanup audit.
  • grounding-in-current-docs Checks the repo's usage, then the official docs, before coding against a library version the model may not know.

Execution

  • subagent-driven-development Runs independent plan tasks in fresh implementer subagents, with the lead reviewing each one.
  • executing-plans The default plan runner: the current agent runs an approved plan itself.
  • dispatching-parallel-agents Sends two or more independent problems, such as unrelated test failures, to parallel agents.
  • fixing-small-issues The quick-fix tier: fix on the current checkout and run only the affected tests. Batch mode ships a list of small items on one branch with one gate and one pull request.
  • using-git-worktrees Lists existing worktrees and branches, then makes an isolated workspace for the task.

Quality and verification

  • test-driven-development Failing test first, watch it fail, then the minimal code to pass.
  • systematic-debugging Finds the root cause before any fix. After three failed fixes, it questions the architecture.
  • diagnosing-performance Measures first, names the cause with a number, and changes one thing at a time.
  • refactoring-test-suites Makes a slow, bloated suite fast and small again, and proves each deleted test with a planted bug that a kept test catches.
  • verification-before-completion No "done", "fixed", or "passing" claim without fresh command output.
  • building-feedback-loops Runs the change for real, and builds and commits the run script, fake service, or fixture when none exists.
  • requesting-code-review The checklist the lead applies to each task, plus standalone review for ad-hoc work.
  • receiving-code-review Checks each review item against the code before acting, and pushes back with reasons.
  • security-review Secrets scan and dependency audit at the branch gate, the external-model policy check, and outbound redaction.
  • logging-and-auditing Sets what the app records about who did what, keeps sensitive values out of the logs, and adds tests that prove both.
  • hostile-user-testing Runs the app and attacks it as a user who wants to break it. Each confirmed break stays in the repo as a test.

Review and ship

  • pre-merge-review Optional review by codex or claude after the branch is green: one general pass and one security pass.
  • running-review-councils On request: several reviewers, one topic each, over a diff or a subsystem. Writes one findings file for a later fix session.
  • managing-review-campaigns Caps repeated or multi-reviewer reviews with a fixed setup, a round limit, and a call budget.
  • finishing-a-development-branch Runs the branch gate, writes the morning report, pushes, and opens a pull request. Stops before merge.
  • harvesting-debt Lists every razorback: shortcut marker with its ceiling, upgrade trigger, and owner.

Second opinions

  • codex-cli Review, second opinion, or delegation through codex exec. The default for "a different model".
  • claude-cli The same through claude -p: a fresh session of the same model family.
  • grok-cli The same through grok -p.
  • agy-cli The same through agy, for Google Antigravity and Gemini.
  • cursor-agent Uses Cursor Agent or Composer as a bounded worker; runs only when you name Cursor.
  • cross-model-convergence Two models check each other in a capped find, verify, fix loop. Includes the pre-build Doubt Pass.

Extending

  • report-issue Files a razorback issue with an environment bundle, after redaction and your approval of the exact text.
  • writing-skills Test-driven skill writing: watch subagents fail without the skill, write it, watch them pass.

Setup

Before you start

Razorback works with native tools alone. One optional MCP server adds to it:

  • Goldfish for decision and handoff checkpoints, briefs, and recall. It needs Bun 1.0 or newer.

Razorback itself is pure content: no build step and no runtime dependencies.

Claude Code

  1. Install Goldfish

    Send these as two separate prompts:

    /plugin marketplace add anortham/goldfish
    /plugin install goldfish@goldfish
  2. Install razorback

    /plugin marketplace add anortham/razorback
    /plugin install razorback@razorback

    For one project only, add --scope project to the install line. Restart, and the SessionStart hook loads razorback into every new session.

    To work on razorback itself, load a local clone:

    git clone https://github.com/anortham/razorback.git
    claude --plugin-dir /path/to/razorback
  3. Update

    Turn on automatic updates:

    /plugin marketplace update razorback --auto

    Or update once by hand:

    /plugin marketplace update razorback
    /plugin install razorback@razorback

Codex CLI & ChatGPT desktop app

The ChatGPT desktop app was rebranded from Codex. Both use these steps.

  1. Install Goldfish

    codex plugin marketplace add anortham/goldfish
    codex plugin add goldfish@goldfish

    Then trust Goldfish's SessionStart hook in /hooks.

  2. Install razorback

    Tell Codex:

    Fetch and follow instructions from https://raw.githubusercontent.com/anortham/razorback/refs/heads/main/.codex/INSTALL.md

    This installs the razorback plugin from the repo-scoped marketplace entry. Delegated execution needs multi-agent support, so add this to ~/.codex/config.toml:

    [features]
    multi_agent = true

    Restart Codex, then check it:

    codex features list | grep '^multi_agent'
  3. Update

    codex plugin marketplace upgrade
    codex plugin remove razorback@razorback
    codex plugin add razorback@razorback
  4. Fallback: local clone

    If you do not use the plugin, clone razorback and link its skills:

    git clone https://github.com/anortham/razorback.git ~/.codex/razorback
    mkdir -p ~/.agents/skills
    ln -s ~/.codex/razorback/skills ~/.agents/skills/razorback

    On Windows, in PowerShell:

    New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.agents\skills"
    cmd /c mklink /J "$env:USERPROFILE\.agents\skills\razorback" "$env:USERPROFILE\.codex\razorback\skills"

OpenCode

  1. Add Goldfish

    {
      "$schema": "https://opencode.ai/config.json",
      "mcp": {
        "goldfish": {
          "type": "local",
          "command": ["bun", "run", "/absolute/path/to/goldfish/src/server.ts"],
          "enabled": true
        }
      }
    }
  2. Install razorback

    Tell OpenCode:

    Fetch and follow instructions from https://raw.githubusercontent.com/anortham/razorback/refs/heads/main/.opencode/INSTALL.md

    Or add razorback to the plugin array in opencode.json, globally in ~/.config/opencode/opencode.json or in your project:

    {
      "plugin": ["razorback@git+https://github.com/anortham/razorback.git"]
    }

    Restart OpenCode, then ask "Tell me about razorback." to check it loaded.

  3. Update

    To pin a version, add #<version> to the plugin spec. To update, change the tag and restart. If OpenCode keeps an old copy, clear its cache and restart:

    rm -rf ~/.config/opencode/node_modules/razorback

Antigravity

  1. Add Goldfish

    agy mcp add goldfish bun run /absolute/path/to/goldfish/src/server.ts
  2. Install razorback

    Clone razorback and import it as a plugin:

    git clone https://github.com/anortham/razorback.git
    agy plugin import /path/to/razorback

    Or link the skills globally, for the CLI and the IDE:

    git clone https://github.com/anortham/razorback.git ~/source/razorback
    mkdir -p ~/.gemini/config/skills
    ln -s ~/source/razorback/skills/* ~/.gemini/config/skills/

    Or link them into one project only:

    mkdir -p .agents/skills
    ln -s /path/to/razorback/skills/* .agents/skills/
  3. Update

    Pull the latest changes. If you used agy plugin import, import again:

    cd /path/to/razorback && git pull
    agy plugin import .

Copilot CLI gets the rules only

No skills, no agents, and no delegated execution. Copilot reads .github/copilot-instructions.md, so copy razorback's rules into your repo. If the file already exists, merge the rules into it.

curl -fsSL https://raw.githubusercontent.com/anortham/razorback/refs/heads/main/.github/copilot-instructions.md \
  -o .github/copilot-instructions.md

Cline, Kiro, Windsurf, and Cursor rules can use the same rules. The README lists the file for each host.

Cursor is frozen

Cursor support works as it is and gets no new work. Razorback is not in Cursor's marketplace, so load a local clone.

git clone https://github.com/anortham/razorback.git ~/path/to/razorback
# Then in Cursor: add ~/path/to/razorback to your plugin paths