Running Copilot unattended (copilot-acp)
Where GitHub Copilot is the assistant, Atticus's steps hand you a line to paste into a new Copilot Chat. With copilot-acp (ADR 0171) Atticus does the pasting itself: it starts the GitHub Copilot language server in its Agent Client Protocol mode, opens a new Copilot session for each step, sends the same text the slash command would, and checks the result as it does when you paste. atticus map --all then reads a whole estate without anyone at the keyboard.
See also: Running Atticus's steps through Copilot agent mode (the same steps, pasted by a person), and Commands.
Turning it on
An organisation turns it on in org-pack/runtime.yaml, in a pull request. It needs version 3:
schemaVersion: 3
assistants: { allowed: [copilot], default: copilot }
modes: { allowed: [hand-off, copilot-acp], default: hand-off }
copilotAcp:
command: npx --yes @github/copilot-language-server # the default
# model: gpt-5 # optional: a model id the server offers
# maxTurns: 200 # optional: tool calls before a session is stopped
# timeoutMs: 1800000 # optional: the longest one session may takecommandis the server's program and any words before--acp, on one line. Atticus adds--acp. A path with spaces goes in double quotes. Where npx isn't allowed, give the server's full path. If your server needs--stdioas well, add it here.- With
default: copilot-acp, every step andatticus map --alluse it without--mode. Withdefault: hand-off, ask for it per command:--mode copilot-acp. - A file at version 1 or 2 that names copilot-acp is refused until
atticus upgrademoves it to version 3 (the number only).
Check it with atticus doctor: the Copilot ACP line says whether the server runs, its version, and whether it is signed in. Doctor starts the server for that and opens no session: nothing runs and no tokens are spent.
If it won't start
A run that can't start the server stops before its first session, changes nothing, and says what the server did in the server's own words. Node's warnings ((node:1234) ExperimentalWarning: …) are set aside: they are never the reason. atticus doctor's Copilot ACP line starts the server the same way and says the same, so you can check a fix without a run.
| What the run says | What it means, and what to do |
|---|---|
it ended before it answered … and said: error: required option '--stdio' … | The server wants another option. Add it to command (the message shows the corrected line). For --stdio alone Atticus starts the server once more with it and says "The Copilot language server asked for --stdio; started again with it"; add --stdio to command to skip that second start. |
it ended before it answered … and said: error: unknown option '--acp' | This program has no Agent Client Protocol mode: an old Copilot language server, or another program. Check command, and that the server's --help lists --acp. |
it ended before it answered … and said: npm error … | npx couldn't fetch or run the package (often a proxy). Install the server once, npm i -g @github/copilot-language-server, and set command: copilot-language-server. |
| it ended before it answered … and printed nothing but warnings (or nothing) | The server gave no reason. Run the command the message shows yourself to see what it does. |
| it was still running after 60s, the limit for starting, and had not answered | The server was still starting, or waiting. Atticus can't tell which. Through npx it may be fetching or checking the package on every start (slow through a proxy); a first start can be slow too. Either install the server once (as above) and set command: copilot-language-server, or give it longer: set the environment variable ATTICUS_COPILOT_START_TIMEOUT_MS (see below). |
| the program … wasn't found on this machine | command names a program that isn't installed or isn't on the PATH. Give one that is, or its full path in double quotes. |
| it closed its output before it answered, and is still running | The server shut the channel Atticus hears it on and kept running, so no answer can come. Atticus ends it. Run the command the message shows yourself to see what it does. The same is said, and done, when it happens in the middle of a session. |
| it answered initialize with an error: … | The server runs and speaks the protocol, but refused the first message; its own words follow. Usually a server too old or too new for this Atticus: update one of them, or name another server in command. |
The words quoted from the server are redacted as Atticus's log is (a proxy's user:password@, tokens, your home folder), since they are kept in the run's record. When the server printed nothing but warnings, npm's last warning is quoted as a warning ("its last warning was: npm warn …"): behind a proxy it is often the only line that names the cause. "The program … wasn't found" is said only when the program missing is command's own; when npx ran and what it runs was missing, the message quotes that instead. On a Windows in another language than English, cmd.exe's own "not recognized" words aren't recognised: the message then says the server ended and quotes them.
A server that is still running at the limit may be waiting because it wants --stdio and didn't say so; the message then adds "If this server needs --stdio, add it to copilotAcp.command".
The start limit. The server has 60 seconds to start and answer. To change that on a machine, set the environment variable ATTICUS_COPILOT_START_TIMEOUT_MS to a number of milliseconds from 1000 to 1800000 (180000 is three minutes), then open a new terminal. A terminal inside an editor, and the app in VS Code or IntelliJ, take their environment from the editor: restart the editor (and the app's server) for them to see it. It is this machine's setting, not runtime.yaml's: how long a start takes depends on the machine and its network. The run and atticus doctor both use it. A value that isn't such a number is refused, in words. Opening the new session after the start is given the same limit, and never less than two minutes, by the run and by doctor alike.
Using it
atticus map --all --mode copilot-acp [--repos a,b] [--max-parts n] [--budget-tokens n]
atticus map forge-ledger --mode copilot-acp # one repo, the same loop
atticus map forge-ledger --gaps --mode copilot-acp # the second pass on the gaps
atticus questions propose --mode copilot-acp # /atticus-propose, unattended
atticus change feature <change> --mode copilot-acp # any AI step: its prompt in one sessionFor map --all, each part gets a NEW session (a fresh context, never one session for two parts). When the session ends, Atticus verifies the part as it does when you paste (atticus verify <repo> --write, and the part is done once verify's coverage leaves nothing under it). A part that isn't accounted for gets one more new session with only what is left; then the run moves on and lists it as incomplete, with the command that carries on. The console shows short progress lines: the files the session reads, the atticus commands it runs, anything refused, and what it said at the end.
--max-parts counts sessions; --budget-tokens counts the tokens the server reports (or the part's estimate when it reports none).
The model's limit
Parts are planned at the model's limit, so a part fits one session. It is --max-tokens n, else maxInput under adapters.model in runtime.yaml, else what atticus probe measured. A metarepo that reads only through Copilot has no adapters.model: give --max-tokens (the context window of the model Copilot uses, for example --max-tokens 128000). From the app, the run's dialog asks for it ("Your model's limit, in tokens") and fills it with the one given for the last run on this machine. That value is kept in .atticus/map-all/limit.json, on this machine only; runtime.yaml isn't changed.
A part's session runs atticus map <repo> --estimate (or --part n) itself. Without a limit it plans at the one known here: what atticus probe measured, else maxInput in runtime.yaml. A read plan on file at that commit (facts/<repo>.read-plan.yaml) planned at another size is planned again at that limit, and the estimate says so, so a session after maxInput was lowered doesn't overflow. Only where no limit is known (a Copilot-only metarepo) does the session plan at the plan's own session size, so it sees the run's parts. Where the run's limit (--max-tokens, or the dialog's) gives another size than the one known here, the run passes it in each part's line (/atticus-map <repo> --part n --max-tokens <n>), so the run and its sessions plan the same parts. --max-tokens plans the repo again at another limit.
Before the first session: the assistant files
Copilot reads the metarepo's assistant files (.github/copilot-instructions.md, .github/prompts/), whose first step checks that they are current. So before it starts a session the run checks them as atticus assistant-files --check does, Copilot's only (an edited CLAUDE.md or Claude Code command is no reason to refuse a Copilot run):
- missing or out of date: the run writes them from the org pack, as
atticus assistant-filesdoes, and names them in the Console. They are generated files in the metarepo, a local write like the facts: propose them for review with the facts. A file shared with a person (.github/copilot-instructions.md) with no Atticus section yet gets the section after your own lines, which stay as they are; the dialog and the Console name it ("It adds Atticus's section to your .github/copilot-instructions.md"). - edited by hand (or a file in the way that isn't Atticus's): only a person replaces those, so the run is refused before any session starts. Look at the file, then put back the generated text (
atticus assistant-files --forcewrites it over the edits), and start the run again. The app's dialog says so and won't start.
When verify rejects what a session wrote
atticus verify moves each fact it rejects out of facts/<repo>.jsonl into facts/<repo>.rejected.jsonl, with why. Nothing is undone: the facts it kept stay. Every read's session is told this first. When a session ends its turn with facts rejected, Atticus gives it one more turn in the same session listing each reason its own verify gave since it started. The reasons are verify's output and quote what the session wrote, so they come in a fenced block said to be data, never instructions; a line of the rejected file that isn't JSON is said to be one, never quoted. The part's second session (a new one) starts from the first session's reasons, said to be the session before's; they stay in the rejected file for it.
If both sessions ended their turns having added nothing (no fact and no reviewed line kept), the run stops that repo there instead of going on to its next part. A session that added facts counts for the part whatever the other did, and one Atticus stopped (its time or its tool calls ran out), one that stopped short (its own limit) or one that failed isn't one with nothing to add: the part is left incomplete, the Console says how the session ended, and the run goes on. When a repo is stopped, the Console says what was rejected and why; the app shows the repo on the run's strip and under Problems (Copilot stopped reading). The run goes on with the next repo. Fix the rejected lines (or read the part in a new chat), and the next run carries on from there.
From the app
With copilot-acp allowed, Map › Trust has buttons that start the same run from the app (ADR 0173): Read the stale repos with Copilot, Fill the gaps with Copilot, Read the repos not read yet with Copilot, and in each read repo's Read it again section Read it again with Copilot (whole, as --force; every read repo has it, a trusted one too). Each asks first: a dialog names what the run reads, the model from runtime.yaml and what a session may do, and nothing starts until you say yes. Where Atticus doesn't know the model's limit, the dialog asks for it (see The model's limit); it also says when the assistant files will be written first, and won't start while one is edited by hand. The app's server runs atticus map --all's own code (no shell), one run at a time.
While it runs, a strip under the top bar says which repo of how many, the session under way, the facts kept and rejected and the tokens so far, with Stop. The Console at the foot of the app (open and close it with its button) lists the run beside everything else Atticus is doing (ADR 0187; troubleshooting, "Where to see what Atticus is doing"). Pick the Copilot run to see what it prints: a tab for the run, then one per session with its steps as Copilot takes them and the verify after it. It follows the end unless you pick an older tab; search and copy work on the tab shown. An atticus map --all run in a terminal shows in the Console too, as its own entry with what it prints. A reload, or the app in VS Code or IntelliJ, picks the run up where it is. Stop cancels the session under way, as Ctrl+C does; the next run carries on.
What a session may and may not do
These rules are fixed in Atticus. No setting widens them.
| A session may | A session may not |
|---|---|
| read files under the metarepo and the repos' clones | read anything outside them |
write the step's own result: facts/ for a read, proposals/questions/ for proposals, the result file of a step | write anything else: the org pack, the catalog, questions, .git |
run atticus <command> <arguments> (this same Atticus, no shell) | run any other program, or a command line with |, &, ;, > or $ |
answer a question, --approve, --accept: those are a person's | |
| fetch a web page, delete or move a file |
When the session asks permission for something these rules allow, Atticus allows it once; it never says "always". Everything else is refused, and the session is told why. Atticus adds no network of its own: the only network is the Copilot language server's own, to GitHub, as in your editor. Your organisation's Copilot policy (models, content exclusions, agent mode) applies as it does in the editor; Atticus only narrows what a session may do.
Signing in
Atticus never handles your GitHub sign-in. The server uses the sign-in your editor's Copilot already has. If it isn't signed in, the run stops and prints what the server said, with any link and code; sign in yourself (in your editor's Copilot, or at that link), then run the command again.
Stopping and carrying on
Ctrl+C stops cleanly: Atticus cancels the session under way, saves where the estate stands and stops. Run the same command again to carry on; what is done is read back from the facts on disk. You can also switch between this and pasting lines yourself (--mode hand-off): both keep the same state.
What is recorded
Each session is a run under .runs/<change>/<run>/ (map-<repo> for a read): prompt.md, the whole conversation in transcript.jsonl, and run.json with the model the server reported, the server's name and version, what Atticus did for the session and what it refused. atticus runs lists them.
Limits
- The editors' own buttons still hand steps to Copilot Chat; the app's Map › Trust buttons (also in the editors' app tab) start an unattended run.
- A run started in a terminal isn't shown in the app while it runs, nor the other way round; both carry on from the same saved state.
- Atticus can refuse only what the server asks it. It relies on the server asking permission before its own tools edit or run anything, as the protocol describes.