Customizing agents
Without customization, every agent run starts from zero: wrong test command, invented patterns, paste logs into chat. Customizing agents means teaching 4RGE once — how your repo works, which tools it may reach, and what your org allows — so daily work starts closer to your standards.
Customization guides the agent. It does not remove diff review, approvals, or your judgment — Working with agents, Agent security.
What this page is for
What fills context — Context. Approvals and scoping — Agent security. Full plugin and MCP guides — Plugins & marketplace.
Who this page is for
Three ways to steer agents
These stack together. Customization guides the agent — it does not bypass diff review or tool approvals — Working with agents.
Org policy applies on desktop, cloud, and CLI — admins set guardrails once.
When to use which lever
Most developers touch repo guidance and plugins daily. Org guardrails matter when something is blocked org-wide or you are setting up a team.
Teach the agent your repo
The agent should not guess your architecture every session. Document conventions where your team already looks:
Projects scope which repos an agent may use; repo docs scope how to work inside them.
Capture repeat corrections in repo guidance — e.g. after review feedback — so the next run starts smarter — Reviewing and testing code.
Example repo guidance
A short AGENTS.md at the repo root beats a long chat every time:
# Agent notes
- Monorepo: run tests with `pnpm test` from repo root; web app lives in `apps/web`
- Match API error shape in `@apps/web/src/app/api/user/route.ts`
- Do not edit `packages/generated/` or commit `.env` files
- Before finishing checkout work: `pnpm test apps/web -- checkout`Point at patterns with @ in chat when you need something more specific —
Prompting.
Extend with plugins
Most real work touches tools outside git — tickets, logs, payments, docs. Plugins add those connections without wiring everything yourself.
Plugins can also bundle skills (how to use a service well) and optional team rules. They do not replace reading and editing your repo when that is what the task needs.
Name the service in your prompt when several are enabled — see Plugins & marketplace and MCP.
Installing a plugin does not weaken security — external actions still pause for approval — Tools.
Example plugin prompt
After you install and connect a plugin, ask in plain language — name the service:
Using Linear: create a bug for the checkout 500 with repro steps from my last message.
Assign to me and link project ENG.Check Datadog for checkout-api 5xx in the last hour before suggesting a code fix.You do not configure MCP by hand for most marketplace plugins. Install → connect → ask.
Org guardrails
Admins shape what members can use org-wide:
If a run is blocked, it may be model policy or budget — not a bug in your prompt. Members: ask an admin; admins: check Usage denials and model control together.
What good customization looks like
Plugins and rules steer the agent. You still review diffs and approve sensitive tools.
Keep it focused
Rules and skills consume context — Context. More text is not always smarter.
If the agent "forgets" a rule mid-thread, restate it once or start a fresh run with a recap — compression is normal.
Habits that work
- Document commands and patterns in the repo — not only in chat.
- Install plugins you actually use — connect once in Tools & MCP.
- Name the service in prompts when multiple integrations are on.
- Admins: start budgets on warn — tighten after a review week — Usage.
- Turn repeat review feedback into repo guidance — compounds over time.
- Keep secrets out of rules and chat — env var names only — Agent security.