Skip to content

Repo Config Reference

Per-repo configuration lives in .no-mistakes.yaml at the root of your repository.

.no-mistakes.yaml
agent: codex
commands:
lint: "golangci-lint run ./..."
test: "go test -race ./..."
format: "gofmt -w ."
ignore_patterns:
- "*.generated.go"
- "vendor/**"
auto_fix:
rebase: 3
review: 3
test: 3
document: 3
lint: 5
ci: 3

Fields

agent

Override the default agent for this repo and its setup-wizard suggestions.

Typestring
Valuesauto, claude, codex, rovodev, opencode
DefaultInherits from global config

auto resolves to the first supported agent found on PATH in this order: claude, codex, opencode, then acli with rovodev support.

commands.test

Explicit test command. Run via the platform shell - sh -c on POSIX, cmd.exe /c on Windows.

Typestring
DefaultEmpty (agent auto-detects)

When set, the test step runs this exact command and checks the exit code. When empty, the agent detects and runs relevant tests itself.

commands.lint

Explicit lint command. Run via the platform shell - sh -c on POSIX, cmd.exe /c on Windows.

Typestring
DefaultEmpty (agent auto-detects)

Same behavior as commands.test - explicit command uses exit code, empty means agent-detected.

commands.format

Formatter command run before the push step commits agent fixes.

Typestring
DefaultEmpty (no formatter)

ignore_patterns

Paths to exclude from review and documentation checks.

Typestring[]
DefaultEmpty (no ignores)

Pattern matching rules:

PatternRule
*.generated.goNo slash - matches by basename
vendor/**Ends with /** - matches entire subtree
some/path/file.goContains a slash - full path glob

auto_fix

Override auto-fix attempt limits for specific steps. Fields not set here inherit from global config.

Typeobject
FieldTypeDefault
auto_fix.rebaseintInherits from global (default 3)
auto_fix.reviewintInherits from global (default 0)
auto_fix.testintInherits from global (default 3)
auto_fix.documentintInherits from global (default 3)
auto_fix.lintintInherits from global (default 3)
auto_fix.ciintInherits from global (default 3)

Set to 0 to disable auto-fix for a step (always requires manual approval).

auto_fix.ci covers the CI step’s CI failure and merge-conflict auto-fix attempts.

Legacy alias: auto_fix.babysit.