Skip to content

Run a fix from the terminal

To work in the dashboard, create a Session and use Conversation, Files and Source Control. This guide covers the separate headless route.

A loadout is the recipe for one run from your shell. Its configuration names the writer, checks, review and budgets. The three fix loadouts below run your repository’s checks on the final files and require a reviewer to approve the result. You review the diff before committing.

  • Install Axocoatl and confirm axocoatl --version works.
  • Use an existing Node.js, Python, Rust or Go repository with a working check command. Start with a clean Git checkout or a disposable copy. The run can edit its files.
  • Allow the initial downloads: rootless Podman, its VM on macOS, the repository’s toolchain image and dependencies, and any local models you choose. Onboarding asks before host setup changes; a run prepares its repository environment when started.
  • Choose a different model for the reviewer. Claude Code and Codex can write these runs; reviewers run through Ollama or OpenRouter. Hosted calls consume the relevant subscription allowance or credits. Set any provider-side spending limit before running.

In your first terminal, run the command for one writer. Keep the same tab selected when you reach the run command below. All four commands use --start none, so onboarding returns to the shell after setup. Its optional sample fix may briefly start a daemon; it stops that temporary daemon afterwards.

You need the host claude CLI and a Claude Pro or Max plan. Onboarding signs you in through the browser, builds the writer’s image, and sets up a local Ollama or OpenRouter reviewer.

Terminal window
axocoatl onboard --writer claude-code --start none

Answer setup prompts after reading the proposed change. If onboarding reports steps left, resolve those before continuing. Onboarding configures this OS user; it does not create a project or Workspace. See the setup reference for existing installations, platform-specific prompts and the optional sample fix.

2. Check setup and leave the daemon running

Section titled “2. Check setup and leave the daemon running”

Still in the first terminal, run:

Terminal window
axocoatl doctor

Resolve any failures. Then start the daemon:

Terminal window
axocoatl dev

Leave this terminal open. The daemon must keep running while the next terminal sends the task. If you already have a daemon or the Always-On Service running with this configuration, use it instead of starting a second one. After a configuration change, restart that existing daemon as onboarding describes.

Open a second terminal. Replace the repository path and task below with your own. Give the task a concrete result to check. Run the repository’s existing tests first so you know its starting state.

Terminal window
cd /absolute/path/to/your/repository
git status --short
AXO_TASK='Replace this with one specific change and its acceptance criteria'
AXO_EVIDENCE=$(mktemp -d "${TMPDIR:-/tmp}/axocoatl-first-fix.XXXXXX")
printf 'Run evidence: %s\n' "$AXO_EVIDENCE"

The evidence directory is outside your repository, so reports do not become part of the Agent’s change. Keep this second terminal open to retain these shell variables. Copy the evidence elsewhere if you need it after your system clears temporary files.

Run one of these commands, matching the writer you configured:

Terminal window
axocoatl run fix-claude-code --task "$AXO_TASK" \
--receipt "$AXO_EVIDENCE/receipt.json" \
--record "$AXO_EVIDENCE/run.axorecord.jsonl" \
--junit "$AXO_EVIDENCE/junit.xml"
AXO_EXIT=$?

These commands use the models onboarding saved. The run detects your repository’s toolchain and check command. If it finds no check, add --check "YOUR CHECK COMMAND" to the chosen command; for example, --check "npm test" in a Node repository whose tests use that script. See toolchains for custom setup.

4. Inspect the outcome and verify the receipt

Section titled “4. Inspect the outcome and verify the receipt”
Terminal window
printf 'Run exit code: %s\n' "$AXO_EXIT"
git diff --stat
git diff
git status --short

A successful fix ends with pass, exit 0: the required checks passed on the final result, the reviewer approved it, and any review findings sent back to the writer were answered. Other outcomes are useful evidence, not a passing fix:

ExitWhat to inspect
1Required checks failed; inspect their output and the diff.
2Needs attention; read the reason, such as an unfinished review or provider failure.
3, 4, 5A usage, daemon or infrastructure problem; follow the printed fix.
6, 7The run was interrupted, or the Workspace is busy.

When a receipt was written, verify its signature, covered files and record against this computer’s signing public key, and require a passing verdict:

Terminal window
axocoatl receipt verify "$AXO_EVIDENCE/receipt.json" \
--key "$(axocoatl receipt key)" --repo . \
--record "$AXO_EVIDENCE/run.axorecord.jsonl" --require-pass

The verifier exits 0 when those checks pass. A failed run’s receipt can have a valid signature; --require-pass keeps that from being mistaken for success. A run refused before admission has no receipt, and a signing failure is reported as receipt_unavailable. See receipts for incomplete file coverage and other limits. A valid receipt does not prove that the code or the tests are correct. Read the diff and check it against your task before committing; these commands do not commit or open a pull request.

Keep the daemon running for another task, or stop it with Ctrl+C in the first terminal after the run finishes. Always-On Service can manage it instead. To work interactively, use its sign-in link and create a Session. Ordinary workbench Sessions use a native Ollama or OpenRouter Agent; Claude Code and Codex write the headless runs above. For a passing result you want to share, read Keep as PR and the receipt-verifying GitHub Action.