mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 07:05:57 +03:00
[GH-ISSUE #51] [Implementation] Implement GitHub Copilot CLI Adapter #17
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mikeyobrien on GitHub (Jan 12, 2026).
Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/51
Ref: #48
Task: Implement GitHub Copilot CLI Adapter
Description
Implement a new adapter class
CopilotAdapterinsrc/ralph_orchestrator/adapters/copilot.pyto integrate the GitHub Copilot CLI (gh copilot) into Ralph Orchestrator. This enables Ralph to use GitHub Copilot as an agent backend.Background
Issue #48 requests support for the GitHub Copilot CLI. This tool is accessed via the GitHub CLI extension
gh copilot. The adapter must handle the invocation of this command and parse its response.Reference Documentation
Required:
src/ralph_orchestrator/adapters/base.py(ToolAdapter interface)src/ralph_orchestrator/adapters/kiro.pyAdditional References:
Note: You MUST read the base adapter interface before beginning.
Technical Requirements
src/ralph_orchestrator/adapters/copilot.py.CopilotAdapterclass inheriting fromToolAdapter.__init__defaulting toghcommand withcopilotsubcommand args.aexecuteto rungh copilot suggestorgh copilot explainbased on context, or a generic query.gh copilotis often interactive. The adapter must use flags (like-t shellor generic query flags) to try and get non-interactive output, or document limitations.tests/test_copilot_adapter.py.Dependencies
src/ralph_orchestrator/adapters/base.pyghCLI tool installed withcopilotextension.Implementation Approach
gh copilot suggest "<prompt>"orgh copilot explain "<prompt>".explainorsuggest -t shelldepending on heuristic, or expose a configuration option. For now, treat the prompt as a query passed to the CLI.ghcommand.Acceptance Criteria
Initialization
CopilotAdapterghcommandExecution
gh copilotis invoked with the promptToolResponseSafety
ghis missingTests
Metadata
@honestemployee2024 commented on GitHub (Jan 13, 2026):
@mikeyobrien thank you for your work on this. Excited about this and the other adapters you're adding support for.
@aappddeevv commented on GitHub (Jan 17, 2026):
The standalone and preferred copilot cli is out so the way to call it is
copilotand notgh copilot.@mikeyobrien commented on GitHub (Jan 17, 2026):
https://github.com/mikeyobrien/ralph-orchestrator/pull/64