Agents and orchestration
Context Code has no single, all-purpose agent: for large goals, an orchestrator proposes a plan, you split it across specialist agents, and they work in parallel while you supervise.
Specialists: delegate without losing the thread
Section titled “Specialists: delegate without losing the thread”During a normal chat, the main agent can delegate subtasks to specialists (for example, one that researches the code while another prepares the changes). Each delegation shows up in the chat as its own card:
- Everything is visible: you can open each specialist’s transcript and see exactly what it did.
- Cancellable: any specialist can be stopped without bringing down the main conversation.
- You can keep talking to the main agent while its specialists work: questions, course corrections, new instructions.
- Resumable: a specialist can be picked up later with its memory intact, without redoing work.
Read-only delegations (research, search, read) need no approval; the ones that write go through the chat’s approval modes.
Cleaning up a chat’s subagents
Section titled “Cleaning up a chat’s subagents”A chat that has delegated a lot piles up subagents in the sidebar. To clear it out:
- A single one: hover over it and press the X, or right-click → Delete subagent.
- The ones already finished: right-click the parent chat → Delete finished subagents (N).
- All of them: right-click the parent chat → Delete all subagents (N).
It always asks for confirmation, and tells you exactly what it takes with it: ““X” and its whole conversation history will be deleted. The chat and the other subagents are untouched. This cannot be undone.” When deleting in bulk, the ones still running are kept and the app tells you so.
Plan first, run second
Section titled “Plan first, run second”For multi-step goals, the flow is plan-first:
- Describe the full goal in the orchestrator chat.
- The orchestrator proposes a plan broken into tasks and shows it to you before touching anything.
- Review it (you can ask for changes) and hit Launch.
- The tasks run — in parallel where possible — and each work thread opens in its own tab, so you can follow every agent separately.
The history of earlier plans stays available for reference.
Resources the orchestrator hands out
Section titled “Resources the orchestrator hands out”When planning, the orchestrator receives an inventory of the project: connected MCP servers, enabled skills and whether a knowledge graph exists. If there is a graph, it queries it before splitting the work; if the goal touches the architecture, it draws it with a diagram.
Each plan step can carry the skills and MCP servers it needs. The specialist receives them at the top of its instructions, so it loads the right skill and uses the right tools without discovering them on its own. The same applies when the orchestrator delegates a single subtask.
If a specialist fails, its card shows Resume with…: pick another profile or model and it continues with its full transcript.
Custom agents
Section titled “Custom agents”You can create your own agents with the Create Smart Agent button (global, available across all your projects):
- General: name, description, and color.
- System Prompt: its standing instructions (at least 20 characters — make them say something real).
- AI Engine: which provider and model that agent uses, independent of the chat.
- Tools: what it can touch, with quick presets — All, Read only, Code, Git.
That way you can set up, say, a strict code reviewer on a powerful model and a cheap searcher on a local model, then combine them in the same team.
Teams the orchestrator creates itself
Section titled “Teams the orchestrator creates itself”If you ask in the chat, the orchestrator builds a team for the project (saved in the workspace’s .context/agents/) and also manages it: it can list teams, show an agent’s prompt, fix its description, prompt, tools or autonomy, and delete an agent or a whole team. Just ask: “remove the testing agent”, “delete the old team”, “give the reviewer read-only access”. Every change goes through the chat’s approval, like any file write.
More from this screen
Section titled “More from this screen”Documentation assistant
Answers only from the Context Code manual
Hi. Ask me how to use Context Code and I'll answer with what this documentation says, linking to the pages.
Listening…
Speak normally. When you pause, I answer out loud.
It can make mistakes: check the details on the linked pages. 0/500