Skip to content

Add GitHub Copilot SDK as a back end#12

Merged
badlydrawnrod merged 9 commits intodevelopfrom
spike/gh-copilot-sdk
Jan 28, 2026
Merged

Add GitHub Copilot SDK as a back end#12
badlydrawnrod merged 9 commits intodevelopfrom
spike/gh-copilot-sdk

Conversation

@badlydrawnrod
Copy link
Owner

@badlydrawnrod badlydrawnrod commented Jan 28, 2026

Summary

This PR adds the GitHub Copilot SDK as an alternative backend to Agent C, alongside the existing Pydantic AI backend. The implementation introduces a pluggable backend architecture that allows Agent C to use either backend while maintaining the same event-driven, layered architecture.

Key Changes

Backend Architecture Refactoring

Reorganized core logic into backends/ subdirectory with two implementations:

  1. backends/pydantic_ai/ - the original implementation using Pydantic AI
  2. backends/github_copilot/ - a new implementation using the GitHub Copilot SDK

Moved tools, types, and session factories into backend-specific packages.

Introduced SessionFactoryProtocol for backend abstraction.

Entry Points

Moved entry points to dedicated entrypoints/ package.

@badlydrawnrod badlydrawnrod marked this pull request as ready for review January 28, 2026 22:42
@badlydrawnrod badlydrawnrod merged commit 28b9aad into develop Jan 28, 2026
2 checks passed
@badlydrawnrod badlydrawnrod deleted the spike/gh-copilot-sdk branch January 28, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant