Commands
Explore Sheriff commands for Claude Code and Codex, including run, audit, sync, resume, and reset, with syntax and examples for your test workflows.
Run these commands inside your AI tool. Each entry shows the Claude Code command, then the Codex command.
Codex menu and direct skills
Submit $sheriff alone to see Run, Audit, Sync, and Status. Reply with a number or action name; no workflow starts until you choose. A direct skill such as $sheriff-audit bypasses the menu and preserves any flags.
The six action skills cover run, audit, sync, status, configure, and help. The older $sheriff run style remains supported for all operations. Reset and update continue to use $sheriff reset and $sheriff update; there are no separate reset or update skills.
run
/sheriff:run$sheriff-runRun or resume discovery, planning, test generation, and reporting. Choose audit mode when prompted, or pass --audit or --no-audit.
sync
/sheriff:sync$sheriff-syncAudit current staged, unstaged, and untracked source changes, then update affected tests. A clean worktree has no sync work. Choose one selector to change the scope: --files, --staged, --since-commit, or --since-branch.
audit
/sheriff:audit$sheriff-auditReview source for bugs, security issues, and dead code. Report findings by default; apply authorized fixes and synchronize tests for the corrected behavior.
status
/sheriff:status$sheriff-statusSee the current test inventory, known gaps, and phase progress.
configure
/sheriff:configure$sheriff-configureChoose test types, runners, scope, and failure behavior. Model and delegation preferences apply where the host supports them.
reset
/sheriff:reset$sheriff resetUse --discovery-only to archive the current plan and evidence while preserving configuration and tests. With no flag or --full, delete all .sheriff/ state, including configuration and archives. Source and tests outside that directory remain.
update
/sheriff:update$sheriff updateUpdate this tool’s Sheriff installation, retaining its install scope.
help
/sheriff:help$sheriff-helpShow the available commands inside your AI tool.
For all flags and examples, see the full command documentation on GitHub.
Resume and reset
Resume interrupted Sheriff workflows, retry a phase, or reset a plan. Recover your testing progress in Claude Code and Codex without starting over.
Configuration
Configure Sheriff test scope, test runners, and failure behavior. Control how Claude Code and Codex discover gaps, run tests, and handle source defects.