Running Atticus's steps through Copilot agent mode
At an organisation where GitHub Copilot is the assistant people have in their editors, this is the path Atticus's steps take. Copilot's agent mode opens files, writes them and runs commands, which is what Atticus's steps want: the agent writes the facts file or the stage answer where Atticus expects it, runs the Atticus command that checks it, and fixes what the check hands back.
The @atticus chat participant still works and is unchanged. It carries prompts between Atticus's command line and the model and answers in the chat. Agent mode is the other way to take the same step, and it is the one to use where the step writes files.
See also: Choosing models at an organisation on Copilot, Installing Atticus for the command line itself, and Running Copilot unattended, where Atticus sends each step to a new Copilot session itself instead of you pasting it (copilot-acp, ADR 0171).
Setup
Install Atticus's command line so
atticusis on your PATH (npm install -g @maycombhq/atticus, or the offline bundle; see Installing Atticus). Every check in every step is one of its commands, so without it agent mode has nothing to check against.Put the agent files in the metarepo. They live in this repository at
plugins/copilot/, generated bypnpm copilot-agentsfrom the same commandsatticus assistant-filesrenders:File What Copilot does with it .github/agents/atticus-repo-reader.agent.mdReads a repo into facts and loops on atticus verify. A read step..github/agents/atticus-verifier.agent.mdChecks what was recorded about a repo against its code. A read step. .github/agents/atticus-repo-describer.agent.mdDrafts the one sentence that says what a repo is for, cited, for a person to confirm. A read step. .github/agents/atticus-stage-drafter.agent.mdDrafts a change's feature, architecture, stories, fast path or first draft. A draft step. .github/agents/atticus-task-runner.agent.mdImplements one task in its worktree, from the context Atticus loads. A draft step. .github/agents/atticus-knowledge-reader.agent.mdReads the wikis into items, searches them, answers from them, says what a change needs. A knowledge step. .github/agents/atticus-question-proposer.agent.mdProposes an answer to each open question from the code, citing its lines, for a person to accept. A read step. .github/instructions/atticus-rules.instructions.mdThe rules every step keeps, applied to every file. .github/instructions/atticus-tools.instructions.mdAtticus's commands and MCP tools, applied to every file. .vscode/mcp.jsonRegisters the read-only atticus mcpserver.Copy those three folders into the metarepo, in a pull request like any other change to it. Each agent carries, word for word, the protocol of the slash commands it covers, so it says the same thing
/atticus-mapand the others do.Run
atticus assistant-filesin the metarepo as well. It writes.github/prompts/*.prompt.mdfrom the org pack, which is where the agents'/atticus-*slash commands come from, and the organisation's own agents and skills beside them.Pick the model for the kind of step. Each agent file says its kind. In VS Code, Atticus: Pick the model writes
atticus.models.read,.draft,.critic,.knowledgeor.quick;runtime.yaml'smodels.<kind>is the organisation's choice where a person sets none (Choosing models).Reload VS Code, open Copilot Chat, choose Agent, and pick the agent for the step you are taking. Or let Atticus open it: Atticus: Run the next step in Copilot's agent mode reads
atticus next, picks the agent for that step, opens the chat on it with the step's prompt in the box, and says which kind of step it is. Where the workspace has no agent file, where no agent covers the step, or where agent mode can't be opened, the same command sends the step to@atticusin the chat instead, and says why.
The checklist a person runs in a real Copilot session
Nothing in CI can sign in to Copilot, so the checks below are the ones only a person can make. Run them once per organisation, on the invented Forge estate or on your own, and keep the result with the setup checklist.
- The agents are offered. Open Copilot Chat, choose Agent, and open the agent picker. The seven
atticus-*agents are listed, each with its one-line description. - Atticus opens the right one. Run Atticus: Run the next step in Copilot's agent mode from the Command Palette. Copilot Chat opens on the agent for that step, the step's prompt is in the box (not sent), and the notice names the agent and the kind of step.
- The model is the one your organisation chose. Check the model shown in the chat against the kind of step the notice named, and
atticus.models.<kind>orruntime.yaml'smodels.<kind>. - A repo read runs end to end. Send the prompt for
atticus-repo-readeron a small repo. The agent should runatticus map <repo> --estimateitself, write the facts file it named, runatticus verify <repo>, read<repo>.rejected.jsonland fix or drop each rejected fact, and stop only whenatticus verifyexits 0. Check the terminal: every one of those commands isatticus, not a script the agent wrote. - A stage draft runs end to end. Send the prompt for
atticus-stage-drafteron a change with a brief. The agent should run the stage with--handoff, write its answer to the result file the command named, runatticus handoff done <run>, then the same command with--resume <run>, and keep going until it says the stage is done. It should tell you the pull-request command and not run it. - The MCP tools answer. Ask the agent what is waiting on you. It should use the
atticusMCP server (waiting_on_you,next_step) rather than reading files by hand. - A finding stays open. Where the critic found something, ask the agent to dismiss it. Atticus should record its claim as a proposal and leave the finding open, and the agent should say that a person decides. Then check
atticus findings <change>: the finding is still open, with the proposal beside it. - A question goes to you. Where a step raised a question, the agent should show it with its options and say that
atticus questions answer <id> --option <n>records your answer, not answer it itself. - Nothing is pushed. Check
git statusand the branch: the agent changed files in the workspace or the task's worktree only, and pushed nothing.
If step 4, 5 or 7 fails, the agent file is being ignored or an instruction is being read as optional. Keep the transcript and the terminal output: those two say which.
What is proven here, and what isn't
Proven in this repository, without Copilot. An integration test (packages/cli/test/copilot-agent-path.test.ts) drives the whole path with a stub agent that does only what the agent files say to do, through the same atticus commands a terminal would run, with no model and no network:
- a Forge repo read into facts, one fact that doesn't hold,
atticus verifyexiting 1 with the reason, the fact dropped, andatticus verifyexiting 0 with its report; - a repo description handed over as a draft marked unconfirmed, and refused when it cites nothing;
- a feature stage drafted in hand-off mode, the critic's lens finding the flow marked read, the agent's second draft fixing it, and the stage ending done, every command exiting 0;
- an AI's attempt to close that finding recorded as a proposal, with the finding still open.
The generated files themselves are held to the protocol by packages/assistant-files/test/copilot-agents.test.ts: each agent carries the body of the slash commands it covers word for word, keeps every rule, names its kind of step, and is committed as the generator makes it. packages/vscode/test/copilot-agent.test.ts checks what the editor asks VS Code to open and what it says, including the fall back to @atticus.
Still needs a person with Copilot. Nothing here signs in to Copilot, so none of this is proven:
- that Copilot lists and loads a custom agent from
.github/agents/*.agent.mdin the VS Code the organisation ships, at the version it ships; - that Copilot's agent mode obeys the instructions — that it runs the Atticus command instead of reasoning its way to an answer, writes to the exact path, and loops on the check;
- that
.vscode/mcp.jsonregisters theatticusserver where the organisation's policy allows MCP servers at all; - that the model picked for the kind of step is the model the request actually runs on, and what it costs in premium requests;
- that
workbench.action.chat.openopens agent mode on a named custom agent in that VS Code version. The editor command catches the failure and falls back to@atticus, which is tested; which of the two happens in a given VS Code is not.
The checklist above is how a person closes that gap.