# We use Copilot and Claude Code on our repo. What does a context engine add?


URL: https://getunblocked.com/answers/copilot-and-claude-code-what-does-a-context-engine-add/
Published: 2026-11-16T18:30:00Z
Updated: 2026-11-15T20:32:16Z
Author: Brandon Waselnuk
Categories: Context Engine, Engineering Insights

**Short answer:** Copilot and Claude Code already see your code, your instruction files and their own memory. A context engine adds what sits outside the repo: PR history, Slack decisions, Jira tickets, incidents and other repos. Unblocked connects to both tools over one MCP server and returns the same cited answer to each, so the two agents stop working from different notes.

---
Copilot and Claude Code both see the code in front of them, the instruction files you commit, and notes they keep for themselves. What neither sees on its own is the history around the code: why a PR was merged, what the team decided in Slack, which Jira ticket asked for the change, what broke in the last incident, and how the next repo calls yours. A context engine adds that. **A context engine** is a service that indexes code, PRs, tickets, docs, chat and incidents together, works out which source is current, and returns one cited answer to whatever agent asks. Unblocked is one example: it plugs into Claude Code and into GitHub Copilot agent mode in VS Code and JetBrains through the same MCP server, so both tools get the same answer to the same question. In brief: the two agents keep what they have and stop guessing at what lives outside the repo.

## What Copilot already sees

Copilot reads more than the open file. Repository custom instructions live in `.github/copilot-instructions.md`, and path-specific instructions apply to matching files. Copilot also reads agent instructions "in files called `AGENTS.md`, `CLAUDE.md`, or `GEMINI.md`," though not every Copilot feature supports them ([GitHub docs](https://docs.github.com/en/copilot/concepts/prompting/response-customization)).

**Copilot Spaces** are shared bundles of context that Copilot answers from. "Spaces can include repositories, code, pull requests, issues, free-text content like transcripts or notes," and GitHub sources are "automatically updated as they change." In the IDE you reach a space through the GitHub MCP server ([GitHub docs](https://docs.github.com/en/copilot/concepts/context/spaces)). The boundary is GitHub. A Slack decision or a Jira ticket gets into a space only if someone pastes or uploads it, and then it stops changing.

**Copilot Memory** is a store of facts Copilot picks up while it works. Repository facts "are shared with your collaborators," and "the default expiry period is 90 days." The clock resets only when Copilot validates a memory and upvotes it ([GitHub docs](https://docs.github.com/en/copilot/concepts/agents/copilot-memory)). In VS Code, memory stays off until you turn on a local setting. Those memories serve Copilot's own surfaces. Claude Code never sees them.

## What Claude Code already sees

Claude Code starts each session with the CLAUDE.md files you write and its own auto memory. **Auto memory** is a set of notes Claude Code writes from your corrections, such as "always use pnpm, not npm." Anthropic advises keeping each CLAUDE.md "under 200 lines," and only the first 200 lines or 25KB of the memory index load at session start. Auto memory "is machine-local," and its files "are not shared across machines or cloud environments" ([Claude Code docs](https://code.claude.com/docs/en/memory)). What one engineer's Claude learned stays on that laptop.

For everything else, Claude Code uses MCP. A project-scoped server lives in `.mcp.json`, which you check in "so everyone on your team gets the same MCP tools and services." Claude Code warns when one tool result passes 10,000 tokens and caps it at 25,000 by default ([Claude Code docs](https://code.claude.com/docs/en/mcp)). Size matters, because models show "significant performance degradation as context length increases" ([Cao et al.](https://arxiv.org/abs/2603.20432), March 2026). We measured the same prompt on the same model and repo on 2026-04-16: with Unblocked attached, Claude used 42 percent fewer tokens and 29 tool calls instead of 80 ([same prompt, same model, different context](https://getunblocked.com/blog/same-prompt-same-model-different-context/)). The [direct MCPs answer](https://getunblocked.com/answers/context-engine-vs-direct-mcps-github-confluence-slack/) covers that tradeoff.

## What both are missing

Put the two side by side and the gap is the same for both tools.

|  | Copilot | Claude Code | Context engine |
| --- | --- | --- | --- |
| Instruction files | copilot-instructions.md, AGENTS.md, CLAUDE.md | CLAUDE.md, AGENTS.md | Reads both |
| Own memory | Per repo, 90-day default expiry | Per repo, one machine only | Shared by every agent |
| PRs and issues | Through Spaces and the GitHub MCP | Through an MCP server | Indexed with the code |
| Slack, Jira, incidents | Pasted text only | One raw MCP per source | Indexed and reconciled |
| Other repos | Repos you add to a Space | Repos on disk or via MCP | All connected repos |


Neither tool, by default, reads the PR discussion that explains why the retry limit is five, the Slack thread where the team stopped writing to the old table, or the incident review behind a deploy freeze.

For example, in a made-up case, an engineer asks Copilot to add a field to the billing webhook. Copilot reads the handler and the instructions file and writes a clean change. Two weeks earlier, a Slack thread had moved webhook consumers to a new schema, and an incident had capped the payload size. Copilot saw neither. A teammate asking Claude Code the same question that afternoon gets a different wrong answer, built from different notes.

The 2026 Stack Overflow survey named Claude Code (66 percent) and GitHub Copilot (59 percent) the agents of choice, and 93 percent of developers need source attribution to trust AI output ([Stack Overflow](https://stackoverflow.blog/2026/10/06/the-results-of-the-2026-developer-survey-are-here/)).

## How Unblocked fits into both tools

Unblocked runs as one remote MCP server that both tools call. Its main tool, `context_research`, does "multi-source research across code, PRs, docs, issues, and messaging" and "returns a synthesized answer with citations." Another tool, `context_get_rules`, returns the coding rules Unblocked pulls from a repository's `AGENTS.md` and `CLAUDE.md` files ([Unblocked docs](https://docs.getunblocked.com/unblocked-mcp/mcp-overview)). So both agents read the same rules and the same history. How it decides which source wins is in [inside the Unblocked context engine](https://getunblocked.com/blog/inside-the-unblocked-context-engine/).

Setup is one config per tool. In VS Code, Unblocked "works with VS Code's built-in MCP support, including GitHub Copilot agent mode." Commit `.vscode/mcp.json` to share the server, and "each user authenticates with their own Unblocked account" ([Unblocked docs](https://docs.getunblocked.com/unblocked-mcp/install-vscode)). JetBrains has its own guide, and [one MCP for Claude Code, Codex and Devin](https://getunblocked.com/blog/one-mcp-for-claude-code-codex-devin/) has the Claude Code config. On Copilot Business or Enterprise, an admin must first turn on the "MCP servers in Copilot" policy, which "is disabled by default" ([GitHub docs](https://docs.github.com/en/copilot/how-tos/provide-context/use-mcp/extend-copilot-chat-with-mcp)).

With Data Shield on, answers include only what the asking user can see in each source. It is off by default for each source except Slack, where it "is always enabled" ([Unblocked docs](https://docs.getunblocked.com/team-settings/data-shield)). Turn it on per source before rollout.

## When you do not need one

If the work fits in one repo, the team is small, and decisions get written into the code or the instructions file, then the two tools' own files cover most of it. Keep them short and point both tools at the same `AGENTS.md`.

You need more when the two agents give different answers to the same question, or when either one repeats a choice the team dropped in Slack. That means the context lives outside the repo. For why a store of notes alone does not fix it, read [a context layer is not a context engine](https://getunblocked.com/blog/a-context-layer-is-not-a-context-engine/).

## Read more

- [One MCP for Claude Code, Codex and Devin: Give Every Agent the Same Company Context](https://getunblocked.com/blog/one-mcp-for-claude-code-codex-devin/)
- [A context layer is not a context engine](https://getunblocked.com/blog/a-context-layer-is-not-a-context-engine/)

## Related answers

- [What enterprise search works for a 50 to 300 person engineering team when Glean feels like too much?](https://getunblocked.com/answers/enterprise-search-mid-size-engineering-team/)
- [How do we cut ramp-up time for engineers joining a large existing codebase?](https://getunblocked.com/answers/cut-ramp-up-time-large-codebase/)
- [How do I give Claude Code docs for our internal SDK that isn't on the public internet?](https://getunblocked.com/answers/claude-code-docs-internal-sdk/)
- [Which AI assistants answer engineering questions in Slack with links to their sources?](https://getunblocked.com/answers/ai-assistant-engineering-questions-slack-sources/)
