Our coding agents do fine on small repos but fail on our monolith. What's missing?
Four things the monolith keeps outside its code: history, decisions, ownership and conventions. A small repo barely needs them. A monolith does. With Unblocked, your coding agent asks over MCP why the code is the way it is, who owns it and what was tried before, and gets an answer with links to the PRs, tickets and threads behind it.
Coding agents fail on a monolith because the monolith keeps four things outside its code: history, decisions, ownership and conventions. In a small repo the code is close to the whole story. There is one style, a few callers, and the person asking usually wrote it. In a monolith, the agent reads more files than it can use, and the reasons behind the code sit in old pull requests, tickets and chat threads it never opens. With Unblocked, the agent asks those questions over MCP before it plans a change. Its context_research tool searches code, PRs, docs, issues and messages and returns "a synthesized answer with citations" (Unblocked MCP docs). It works in Claude Code, Cursor, GitHub Copilot and Codex.
Why coding agents do well on small repos and stall on a monolith#
Anthropic's own guide for large codebases says Claude Code "works at any size," but as the codebase grows, "the defaults tuned for smaller projects can fill the context window with instructions and file reads unrelated to the task, costing tokens and degrading Claude's performance" (Claude Code large codebases).
Research from this year shows the same pattern. ContextBench, a February 2026 benchmark of 1,136 issue-resolution tasks from 66 repositories, checked how agents gather code. Its research method: annotate the code each task really needs, then compare it with what agents read and used. It found that "sophisticated agent scaffolding yields only marginal gains in context retrieval," that models "consistently favor recall over precision," and that "substantial gaps exist between explored and utilized context" (arXiv 2602.05892). Agents read a lot and use little.
ReCUBE, a March 2026 benchmark, asks models to rebuild one file from the rest of a real repository. GPT-5 reached only a 37.57% strict pass rate even with the full repository in context (arXiv 2603.25770). A longer context window alone does not fix this. And in a monolith, much of what the agent needs is not in the files at all.
The four things a monolith keeps outside its code#
Anthropic says what Claude can't find "is the information that was never in the repo," such as a decision made in a meeting (Claude Code best practices). In a monolith that gap has four parts.
| What's missing | Example in a monolith | Where it usually lives |
|---|---|---|
| History | A module retries three times because of an old incident | Incident ticket, the PR that added the retry |
| Decisions | The team tried an event queue for billing and backed it out | Design doc, PR review thread, Slack |
| Ownership | Payments code needs a review from one specific team | CODEOWNERS, team wiki, people's heads |
| Conventions | Two data-access patterns, and only the newer one is allowed | Review comments, a migration ticket |
Decision history is the record of choices a team made and the options it rejected. Without it, an agent proposes the design the team already tried. A context engine is a system that pulls that record together from code, PRs, tickets, docs and chat, and answers questions from it. Unblocked is one. For example, asked why a retry loop exists, it can find the PR that added it, the incident ticket that PR links to, and the Slack thread where the team settled on three attempts, and answer with links to each.
What to put in the repo, and what to keep out#
An instruction file is a file such as CLAUDE.md or AGENTS.md that the agent loads with every task. Put in it only what the agent must follow every time. Commands to build and test one module, the pattern new code must use, and the folders it must never edit belong in instruction files. Claude Code's guide recommends one file at the root plus one per subsystem, "such as src/db/ or src/api/," so the agent loads only the rules for the code it is working in (Claude Code large codebases, linked above).
Keep the rest out. A February 2026 study tested repository context files across several agents. Providing them "does not generally improve task success rates, while increasing inference cost by over 20% on average," and repository overviews in particular were "not helpful" (arXiv 2602.11988).
Ownership has a home already. A CODEOWNERS file names "individuals or teams that are responsible for code in a repository," and code owners "are automatically requested for review" on PRs that touch their code (GitHub Docs). Tell the agent to read it before it plans a change that spans teams.
How to give a coding agent the monolith's history#
History and decisions change too often for a file. The agent has to query them. Anthropic's guide suggests the same: if you already run a search index over the code, "expose it as an MCP tool so Claude queries it instead of reading files directly."
Unblocked does that across sources. On macOS or Linux, the installer is one command in the MCP docs above, curl -fsSL https://getunblocked.com/install-mcp.sh | bash, which "downloads the Unblocked CLI and sets up your supported agents." Then three tools matter for a monolith:
context_researchbefore planning, to ask what changed, why, and who owns it.review_implementation_planafter drafting a plan. It checks the plan "against existing code, tests, and prior decisions," for example pointing to an existing retry helper or a past decision about which failures to retry (Unblocked plan review docs).context_get_rulesbefore finishing. It returns rules from yourAGENTS.mdandCLAUDE.mdfiles, including nested copies, scoped to the paths the change touches (Unblocked rules docs).
With Data Shield on, answers respect each source's permissions. It is set per source and off by default, except for Slack, where it is always on (Unblocked Data Shield docs). For how Unblocked weighs a stale wiki page against current code, see inside the Unblocked context engine.
Matt Thompson, Staff Software Engineer, Codat: "Our previous setup was like a pair programmer you had to babysit. With Claude Code and Unblocked, I fire off a query, minimize the tab for half an hour, and come back to working code."
Where this fits with the rest of your agent setup#
Context is one layer of five. Our post on what agents need besides the model covers the harness, permissions and evals around it. If your monolith is a legacy .NET codebase, our answer on giving Claude Code context in a .NET monolith covers the language server and characterization tests. For agents compared on large codebases, see the best AI coding agents for large codebases.
A simple test tells you whether the gap is context. Pick three tasks the agent got wrong in the monolith last month. For each, ask whether a senior engineer would have known the answer from the code alone. If they would have needed a PR, a ticket or a conversation, the agent needed it too.


