AgentRail Docs
CLI Reference

AFK

Run the unattended queue / worktree loop.

afk runs a queue of issues unattended, each isolated in its own git worktree and capped by a per-issue budget leash. It works grabbable issues in waves and stops when the queue is empty.

afk

afk [--concurrency 2] [--max-waves 20] [--base main] [--dry-run]

Run the AFK queue / worktree loop.

FlagDefaultDescription
--concurrency N2Number of issues worked in parallel.
--max-waves N20Maximum scheduling waves before the loop ends.
--base BRANCHmainBase branch worktrees are created from.
--dry-runShow what would be grabbed and run, without executing.

Start with a dry run to preview the plan:

agentrail afk --dry-run

Then let it run, tuning concurrency to taste:

agentrail afk --concurrency 2 --max-waves 20 --base main

See AFK Mode for how isolation, the budget leash, and the terminal states work.

On this page