Usage
Choose the right Roark command for a task.
Last updated
#Choose a command
| Goal | Command |
|---|---|
| Scaffold repository config | roark init |
| Run one issue locally | roark do 123 --repo owner/repo |
| Preview eligible autorun issues | roark auto --repo owner/repo --dry-run |
| Claim and run eligible issues | roark auto --repo owner/repo --limit 1 |
| Target one issue through autorun | roark auto 123 --repo owner/repo |
| Continue a failed attempt | roark continue 123 --repo owner/repo |
| Review an existing PR without changing it | roark review-pr 456 --repo owner/repo |
| Address existing PR feedback | roark revise-pr 456 --repo owner/repo |
| Inspect run status | roark status 123 --repo owner/repo |
| Manage workspaces | roark workspace list |
| Create follow-up issues from findings | roark create-issues 123 --repo owner/repo --yes |
#Run one issue locally
do runs one issue without label-based discovery:
roark do 123 --repo owner/repoStart here when trying Roark in a new repository.
#Discover issues with autorun
auto without an issue discovers eligible issues by label:
roark auto --repo owner/repo --limit 1Start with --limit 1. Use cron, launchd, GitHub Actions, or another scheduler for repeated runs.
#Target an issue with autorun
Pass an issue number to skip discovery while keeping autorun's publishing and label behavior:
roark auto 123 --repo owner/repo#Dry run
Use --dry-run before scheduled runs or label changes:
roark auto --repo owner/repo --limit 3 --dry-runDry run reports what would be selected. It does not claim issues, create branches, or run agents.
#Status
status reads the saved run artifacts:
roark status 123 --repo owner/repo
roark status --all --repo owner/repo#Continue
Use continue after readiness or verification fails:
roark continue 123 --repo owner/repo --attempt 1Run continue from the same control checkout. It needs the local artifacts and managed workspace from the original attempt.
#Review and revise PRs
review-pr checks the full diff of an open or draft PR. It posts separate correctness and maintainability reviews without editing, committing, or pushing:
roark review-pr 456 --repo owner/repoUse --no-comment to keep the reviews local. Verification uses --verify, then .roark/config.json, then the built-in bun run typecheck default.
revise-pr applies existing PR feedback:
roark revise-pr 456 --repo owner/repoRoark classifies feedback, applies only must-fix-current items, verifies, pushes one revision commit, and posts one summary comment.
review-pr only produces feedback. revise-pr is the command that changes code.
#Workspace commands
List managed workspaces:
roark workspace listList and interactively select one or more workspaces to remove:
roark removeRemove issue workspace 123 directly:
roark remove 123Dirty workspaces require --force:
roark remove 123 --forceUse roark remove --pr 456 for a PR workspace.
Prune old clean workspaces:
roark workspace prune --older-than 30dUse Managed workspaces before deleting workspaces that may contain recoverable work.
#Issue curation
curate-issues turns reviewer findings into an issue creation plan:
roark curate-issues 123 --repo owner/repoUse create-issues to publish the approved plan:
roark create-issues 123 --repo owner/repo --yesSee Issue curation.
#Long-running commands
Output shows the target, current phase, elapsed time, verification status, and artifact path. Add --verbose for completed agent responses and detailed tool statistics.
In an interactive terminal, Roark updates the window title with the current phase. Disable it with --no-title. Redirected output omits title and ANSI sequences; warnings still go to stderr.
#Common options
| Option | Use |
|---|---|
--repo owner/repo |
Select GitHub repository |
--cwd path |
Use a specific control checkout |
--out path |
Use a custom runs directory |
--verify "cmd" |
Override verification command |
--model provider/id |
Override Pi model |
--thinking level |
Override thinking level |
--attempt n |
Select an attempt |
--force |
Regenerate phase artifacts |
--yes |
Approve supported prompts or mutations |
--verbose |
Show completed agent responses and detailed tool statistics |
--no-title |
Disable interactive terminal-title updates |
See CLI reference for the full command and option reference.