Repository navigation
feat: add GitHub Copilot CLI crewmate and scout adapter - #5510
Open
Mani212005 wants to merge 3 commits into
Open
Mani212005 wants to merge 3 commits into
Mani212005 wants to merge 3 commits into
Conversation
This was referenced Sep 26, 2026
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.
Intent
Add GitHub Copilot as a worker with the auto model, so firstmate can dispatch coding work to it. The user has a GitHub Copilot student plan, which only allows the "auto" model. Delivery: a PR to upstream kunchenguid/firstmate opened from the user's fork (Mani212005/firstmate), since the user has no push access upstream.
What Changed
copilot) as a verified crewmate and scout harness adapter, supporting launch with-ibrief auto-submission,--yolo,COPILOT_ALLOW_ALL=trueworkspace trust,--modelselection (includingauto), and reasoning effort mapping.bin/fm-copilot-lib.shfor Copilot's Node loader shim and native child binary, along with turn-state tracking inbin/fm-busy-lib.shby folding Copilot's durable per-sessionevents.jsonllog.Ctrl+Cinterrupt,/exitexit command, post-launch folder-trust dialog handling, sidecar cleanup at teardown), reference documentation, and portable and live test suites.Risk Assessment
✅ Low: The GitHub Copilot adapter is cleanly integrated across process detection, spawn templating, busy-state log folding, and control mechanics following established harness patterns with thorough test coverage and empirical verification documentation.
Testing
Exercised all Copilot adapter capabilities: harness marker precedence and argv/PID process ancestry detection, crewmate/scout launch construction with model auto and trust bypass, sidecar session binding, fold state transitions (busy/settled/abort), live execution of model turns with folder trust bypass, live turn steering and Ctrl+C interrupt aborts, and clean /exit pane termination.
Evidence: Copilot Harness Adapter Unit & Contract Test Log
Source: Copilot Harness Adapter Unit & Contract Test Log
Evidence: Copilot Live Signals End-to-End Test Log
Source: Copilot Live Signals End-to-End Test Log
Evidence: Harness Precedence & Documentation Integration Test Log
Source: Harness Precedence & Documentation Integration Test Log
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh tests/fm-copilot-harness.test.shFM_COPILOT_SIGNALS_LIVE=1 bin/fm-test-run.sh tests/fm-copilot-signals-live-e2e.test.shbin/fm-test-run.sh tests/fm-harness-precedence.test.sh tests/fm-documentation-audiences.test.sh tests/fm-harness-adapter-references.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.