Skip to content

How-to

Let autopilot work your backlog

Set up autopilot once, start a run, and stay in charge of reviews, pausing and stopping.

What you'll do

Set up autopilot, then start a run over the ready items in your roadmap backlog. Each item builds in its own worktree. Autopilot stops where you told it to, so you review and approve before anything ships. You can pause or stop the run at any time.

Steps

  1. Set autopilot up once on this machine. It asks which agent to use, how many items build at once, a cost cap, where to pause for your review and where to stop:

    aidlc autopilot setup
    

    To answer with flags instead, use --agent, --parallel, --cost-cap, --pause-after, --stop-at and --release. aidlc init --autopilot runs the same setup at the end of init.

  2. See what autopilot would pick first. This writes nothing:

    aidlc roadmap next --autopilot
    

    An item marked run: attended in its roadmap file is never picked. Use that for work you want to do yourself.

  3. Start a run. It starts in the background and returns at once:

    aidlc autopilot run --items 3
    

    Use --all instead of --items to keep going until nothing is ready. To change where this run stops, add --stop-at pr, --stop-at checked-merge, --stop-at merge or --stop-at release. To change the phases it pauses after, add --pause-after requirements,design.

    Under pr and checked-merge, once CI passes an agent that did not build the item checks its pull request against the item's acceptance criteria. It posts PASS or REJECT on the pull request, with evidence for each criterion, and adds the same text to pr-check.md in the instance's state folder. Under pr the verdict only informs: the item still waits for you to merge it. Under checked-merge a PASS merges it with no release. A first REJECT sends the findings back to the agent once; a second parks the item.

  4. Watch it. Add --watch to keep the view live; q leaves and the run keeps going:

    aidlc autopilot status --watch
    
  5. When an item waits for your review, aidlc autopilot status prints each decision it left open under it: the question, why it matters, the options with the recommended one marked, and the file to answer in. Write your choice after that question's [Answer]:, or read the artifact in the item's worktree. Then approve it. Only a person can run this command; an agent is refused:

    aidlc autopilot approve <instance>
    

    When an item waits at its pull request with open questions, the agent made calls it thinks are yours. In the item's worktree, walk through every call it logged, then merge:

    aidlc autopilot review <instance>
    

    Keep a call, reject it (then reopen the phase with aidlc amend <instance> --impact), or promote it into .aidlc/guidance/decisions.md, which every later item reads.

    With several items to review, walk all of them in one go:

    aidlc autopilot review --pending
    

    Or ask your agent to prepare the review. It writes a proposal file with a verdict for each call and a plain-words explanation for each one that needs you. Accept it in one step:

    aidlc autopilot review --from <file>
    

    The command checks the whole proposal before it writes anything. It keeps the routine calls at once, marked as accepted from the agent's proposal, and stops only on open questions and proposed rejects or promotes. What you answer there is marked as judged by you.

  6. To freeze the run, for example before you close the laptop, pause it. Resume it later:

    aidlc autopilot pause
    aidlc autopilot resume
    
  7. To end the run, stop it. Agents already running finish their work first:

    aidlc autopilot stop
    
  8. If you finished or abandoned an item by hand, tell autopilot to stop tracking it:

    aidlc autopilot forget <instance>
    

Check it worked

Run aidlc autopilot status. You should see the run and each item's step. When no run is active, it prints run: none active.

If the run's process died with items still in flight — a crash, a closed terminal, a restart — it prints run: ended without finishing with how many items it left and the run's log. Run aidlc autopilot run --items 1: the new run carries those items on before it ends, and they do not count toward the 1.