Add GitHub Copilot CLI as a worker backend preset - #19
Open
anxkhn wants to merge 1 commit into
Open
Conversation
anxkhn
force-pushed
the
feat/copilot-preset
branch
from
June 29, 2026 05:26
df0b887 to
dacf7f4
Compare
Owner
|
Reviewed locally. The license concern in the PR body is resolved now: the repo is clearly MIT-licensed on Local verification:
I could not reproduce the real Copilot CLI smoke test locally because this machine does not have |
Adds a copilot preset to CliAgent mirroring the existing claude/codex/
opencode/aider templates: builds copilot -p {combined} -s --no-ask-user,
gates --allow-all-tools behind skip_permissions, and passes --model through.
Wires it into the MCP server presets, backend list, executable map, caller
auto-detect (alias + COPILOT_CLI/COPILOT_AGENT_SESSION_ID env hints), model
passthrough, the example runner, and README. Adds preset and backend tests.
anxkhn
force-pushed
the
feat/copilot-preset
branch
from
July 8, 2026 20:11
dacf7f4 to
b5d4304
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
copilotpreset so the loop can drive GitHub Copilot CLI as a worker backend, alongside the existing claude_code / codex / opencode / aider presets.The preset mirrors the existing ones in
agentloop/adapters/cli.py:-sprints only the final answer (clean stdout to parse, same as the others).--no-ask-userkeeps the worker autonomous so it never blocks on a question.--allow-all-toolsis gated behindskip_permissions(the bypass analogue to claude's--dangerously-skip-permissions).--modelis passed through, same as claude_code.Wiring
agentloop/adapters/cli.py: newCliAgent.copilotpreset.agentloop/mcp_server.py: registered in_CLI_PRESETS, the doctor executable map,backend=autocaller detection (alias +COPILOT_CLI/COPILOT_AGENT_SESSION_IDenv hints), and model passthrough.examples/run_with_cli_agent.pyand README: copilot listed as a selectable backend.Verification
uv pip install -e .[dev,mcp];ruffclean on touched files; full suite 109 passed.copilotCLI (v1.0.65, authenticated): the preset round-trips a prompt and returns the expected single-word answer.Note
This repo has no LICENSE file. Please confirm the intended license / contribution terms before merging.