Feature Request: Cross-Repository Context for Copilot (Web ↔ Microservice) #189213
Replies: 1 comment
|
Hey @prateek-odev, solid writeup. I think your use case is exactly right. Some notes for anyone landing here from a search. State of the art today. No mainstream agent (Copilot, Cursor, Claude Code, Codex) handles cross-repo context out of the box. Several teams have published their own approaches in the last six weeks, and the diagnoses converge:
I wrote up the convergence pattern across the three war stories here if it's useful. Approximating cross-repo context today, three rough categories of workaround:
For your specific setup (web-app + microservice with shared contracts), workspace bundling is the cheapest first step. It stops scaling once you have a shared SDK repo or 5+ services. Disclosure: I work on Riftmap, but this is a genuine answer to your "best practices today" question. Happy to compare notes. Hope some of it helps! edit (Jun 2026): I turned this into a full writeup — How to give GitHub Copilot cross-repo context today, the long version of this answer, with each of the three workarounds set up end-to-end and an honest note on where each one stops. |
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
General
Copilot Feature Area
Copilot Coding Agent
Body
Hi,
I’d like to request improved cross-repository context support in GitHub Copilot, specifically for scenarios where one repository logically depends on another (e.g., a web app consuming a microservice).
Use Case
Example setup:
web-app repository (frontend)
orders-service repository (microservice API)
The web app:
Calls API endpoints from the microservice
Depends on DTOs / contracts defined in the service
Must stay aligned with backend route changes, payload changes, and validation rules
When updating the microservice (e.g., modifying an endpoint response or renaming a field), I also need to update the web app accordingly.
Today, Copilot:
Works within a single repository context
Cannot reason about API contracts defined in another repo
Cannot validate whether frontend usage matches backend changes
Cannot assist with coordinated changes across both repos
Proposed Capability
Allow Copilot to understand explicit cross-repo relationships, such as:
Declaring that web-app depends on orders-service
Linking specific branches across repositories
Sharing indexed context between selected repositories
Enabling agent tasks that reason across multiple repos
For example:
If I change a response model in orders-service, Copilot could suggest required updates in web-app
If the web app calls a missing or outdated endpoint, Copilot could detect mismatch against the service repo
Agent tasks could optionally operate across multiple repos for a single feature or issue
Why This Matters
Modern architectures frequently split systems into multiple repositories:
Frontend + backend
Multiple microservices
Shared SDK / contract repositories
Copilot is very powerful within a single repo, but architectural reasoning often spans repository boundaries. Supporting cross-repo context would:
Reduce integration bugs
Improve contract consistency
Enable safer API evolution
Make Copilot more effective for distributed systems
Is this currently on the roadmap?
Are there recommended best practices to approximate this behavior today?
All reactions