# Agentic engineering: what do agents need besides the model to work in a large codebase?


URL: https://getunblocked.com/answers/agentic-engineering-what-agents-need-besides-the-model/
Published: 2026-11-18T14:00:00Z
Updated: 2026-11-15T20:34:04Z
Author: Dennis Pilarinos
Categories: Context Engine, Engineering Insights

**Short answer:** Five things: tools with permission rules, a sandbox to run in, tests and CI that tell the agent when it is wrong, a short rules file with house conventions, and org context, meaning why code was built a certain way, who owns it and what broke before. Unblocked supplies the last one: its MCP server returns one cited answer drawn from code, PRs, issues, docs and Slack.

---
Agentic engineering in a large codebase needs five things besides the model. It needs tools with permission rules, a sandbox to run in, and tests and CI that tell it when it got something wrong. It needs a short rules file with the house conventions, and it needs organizational context: why the code was built a certain way, who owns it, and what broke last time. The first four live in the repository and the agent host; org context does not, and that is the piece Unblocked supplies. Its MCP server takes the agent's question, researches code, PRs, issues, docs and Slack together, and returns one answer with citations. **Org context** is the knowledge about a codebase that sits outside the code: decisions, owners, incidents and the reasons behind them. For example, Unblocked can tell an agent that a retry loop exists because of a past outage, and link the thread where the team decided it. The [longer post on agentic engineering](https://getunblocked.com/blog/agentic-engineering-what-agents-need/) splits the stack into layers and argues why context is the one teams miss. This page is the setup checklist: what to configure for each piece, and where it lives.

## Tools and permissions: what the agent is allowed to touch

An agent is only as useful as its tools, and only as safe as the rules on them. In Claude Code, permissions are allow, ask and deny rules you can check into the repo for the whole team. "Rules are evaluated in order: deny, then ask, then allow. The first match in that order determines the outcome" ([Claude Code docs](https://code.claude.com/docs/en/permissions)). So a broad deny on `Bash(aws *)` beats a narrow allow on one AWS command.

GitHub's coding agent puts the limits at the repository. "A ruleset or branch protection rule can prevent Copilot from creating or updating pull requests." And "Without write access to a repository, your Copilot session is read-only" ([GitHub Docs](https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent)). Write these rules before you widen what the agent can do. For agents that run headless, see [headless agent permissions and identity](https://getunblocked.com/answers/headless-agent-permissions-and-identity/).

## A sandbox: somewhere to run without breaking things

Permission rules decide which actions get approved. **A sandbox** is an isolated place to run commands, with set limits on the files and network hosts they can reach. For example, a sandboxed test run can read the repo but cannot reach a production database. Claude Code calls its Bash sandbox "a boundary that the operating system enforces around the shell commands Claude runs on your machine" ([Claude Code docs](https://code.claude.com/docs/en/sandboxing)). The same page is candid about its limits: built-in file tools, local MCP servers and hooks run outside the sandbox, so it does not replace permission rules.

Cloud agents get the same idea at a larger scale. Copilot's agent works "in a cloud development environment, rather than your local IDE." Its cloud sandboxes "honor repository and organization firewall allowlists" ([GitHub Docs](https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent)). Either way, a wrong command should cost a rerun, not an incident.

## Tests and CI: how the agent finds out it was wrong

A model cannot observe whether its change works, so it needs independent verification from outside itself. GitHub's agent "can edit files and run tests and linters" before it opens a pull request ([GitHub Docs](https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent)). In a large codebase, give the agent three things:

- A fast command that runs only the tests near the files it touched.
- Lint and type checks it can run locally, with the same config CI uses.
- CI results it can read on the pull request, so a red build turns into its next task.

Do not let the agent grade its own work. Anthropic's engineers found that agents judging their own output "tend to respond by confidently praising the work." Their fix: "Separating the agent doing the work from the agent judging it proves to be a strong lever" ([Anthropic, March 2026](https://www.anthropic.com/engineering/harness-design-long-running-apps)). A failing test is that separate judge, and it does not care how confident the agent sounds.

## Rules files: house conventions, kept short

**A rules file** is a short markdown file, such as `CLAUDE.md` or `AGENTS.md`, that the agent loads at the start of every session. It holds build commands, naming, and which directory owns what. Cursor gives the reason: "Large language models don't retain memory between completions" ([Cursor docs](https://cursor.com/docs/context/rules)). Cursor and Claude Code both read `AGENTS.md`, so one file can serve both.

Keep it concise. Claude Code says to "target under 200 lines per CLAUDE.md file. Longer files consume more context and reduce adherence." Claude treats these files "as context, not enforced configuration" ([Claude Code docs](https://code.claude.com/docs/en/memory)). So anything that must never happen belongs in a deny rule or a hook. Additional instructions also carry a cost. A 2026 study found that providing repository context files "does not generally improve task success rates, while increasing inference cost by over 20% on average" ([Gloaguen et al., arXiv](https://arxiv.org/abs/2602.11988), 2026). The authors still found them "useful for specifying non-standard coding practices," so document what is unusual about your repository and skip the general overview. For many repos, see [how to sync rules files across repos](https://getunblocked.com/answers/sync-rules-files-across-repos/).

## Org context: why, who and what happened before

The first four pieces tell an agent what it may do and whether it worked. None of them explain why the code is shaped the way it is. That history lives in PR threads, design docs, tickets, incident reviews and Slack, and a large codebase has far too much of it for a rules file. Without it, an agent "fixes" a timeout that was set on purpose, or rebuilds a helper another team owns. [Why was this built this way?](https://getunblocked.com/blog/why-was-this-built-this-way/) shows that history, and [code isn't context](https://getunblocked.com/blog/code-isnt-context-mcp-isnt-enough/) explains why raw source MCPs fall short.

Unblocked is the organizational context layer here. Its MCP tool `context_research` runs "multi-source research across code, PRs, docs, issues, and messaging" and "returns a synthesized answer with citations" ([Unblocked docs](https://docs.getunblocked.com/unblocked-mcp/mcp-overview.md)). It works in Claude Code, Cursor, Codex, Windsurf and GitHub Copilot in VS Code and JetBrains, plus Slack and the web. With Data Shield on, answers respect each source's permissions. An agent that asks before it edits gets the decision and the owner, with links. [What a context engine is](https://getunblocked.com/blog/what-is-a-context-engine/) explains how the answer is built.

| Piece | Question it answers for the agent | Where it lives |
| --- | --- | --- |
| Tools and permissions | What am I allowed to do? | Agent host settings, branch rules |
| Sandbox | What can a command reach? | Host sandbox or cloud runner |
| Tests and CI | Did my change work? | Test suite, CI pipeline |
| Rules file | What are this repo's conventions? | CLAUDE.md, AGENTS.md, Cursor rules |
| Org context | Why is it built this way, and who owns it? | PRs, docs, tickets, Slack, via Unblocked |

## Read more

- [Agentic Engineering: What Agents Need Besides the Model](https://getunblocked.com/blog/agentic-engineering-what-agents-need/)
- [Code Plus MCP Isn't a Context Engine: What a Real Reasoning Layer Actually Ingests](https://getunblocked.com/blog/code-isnt-context-mcp-isnt-enough/)

## 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/)
