Agents
agents[] — the seven base subagents agent-core ships, why they declare no tool allowlist, and how delegate resolves and narrows them.
agent-core's agents/ folder holds agent definitions — markdown files with
a frontmatter header (id, title, description, context: fork) and a body
that becomes the subagent's system prompt when delegate
spawns it. The contribution contract is on
package-system agents.
The seven base subagents
They are deliberately universal — none is about a particular subsystem, and none declares a tool allowlist:
| Agent | The question it answers |
|---|---|
explore | Where does something live, in how many places, or does it exist at all |
research | What is actually true outside this workspace — an API, a version, a price, a convention |
planner | What is the step sequence, and is it the right one |
execute | Carry out agreed work end to end |
validate | Is this plan, change or artifact sound |
operate | Does the running system actually behave as claimed |
general | Anything that fits no sharper role — the default when agent is omitted |
They form a chain in which roles do not overlap: whoever plans does not execute, whoever executes does not certify their own work, and whoever validates does not fix. A second opinion from the author is not a second opinion.
Narrowing belongs to the call
A base agent declares no allowlist, so it inherits the caller's full tool set —
which already had the caller's role, features and scope applied. A fixed list
would blind it to every package tool, every MCP tool and everything added later.
A specific run is narrowed by the delegate call instead: tools,
blocked_tools and disabled_packages (an empty tools: [] is rejected —
omitting the field means "inherit").
A persona file works the other way round: its declared allowed-tools is a
ceiling the call can only narrow. A call naming its own tools is
intersected with it; names outside it are dropped and named back in the result,
and a call that asks for none of the agent's tools is refused rather than
starting a child with nothing. On a persona file the two empty cases differ on
purpose: omitting allowed-tools inherits, while allowed-tools: [] hands the
child no tools at all — the shape for a persona that thinks rather than acts.
"Read-only" agents are read-only by instruction, not by contract. Blocking
fs_write alone does not close it, because execute runs a shell that can
write wherever the session's URI policies
allow, without pausing under the auto profile — block execute too where the
restriction must actually hold.
Whatever bounds a child run bounds the tools it may call, not merely the
ones it is shown: a name it remembers or guesses is refused with the same
neutral Tool not available as any unavailable name. A run paused for an
approval and continued later is refused, rather than resumed with wider access,
if the original call cannot be read back.
How a definition is resolved
The optional agent parameter selects a definition; omitting it resolves to
general. A subagent can only narrow the parent's package and tool access —
the disabled-package set unions down the delegation tree, and the parent's own
Tool Access selection
caps the child's catalog the same way.
Resolution itself is gated. A definition whose feature requirements the caller does not hold, or whose package the caller disabled, cannot be reached by name or by path — knowing an id is not a grant. An unknown or hidden name returns an error listing only the agents that caller can reach. The same gate runs when a paused child resumes after an approval, before the approval is recorded: if the caller's access changed meanwhile, the run fails with a clear error. Per-file switch-offs currently reach only agents contributed by a synced source; for a built-in agent the switch removes it from the catalog and injection but does not block delegation.
Agents found in a synced source — markdown in a folder
like .claude/agents/, with no install step — resolve the same way. A file is
an agent only when its frontmatter declares an id or name; reference prose
beside it is a plain indexed file, never listed and never summonable. Its uri,
host path or container path also resolve, and an address two sources both claim
resolves to neither. A skill and an agent in one package may share a name; where
they do, delegate answers with the agent and the skill stays reachable through
execute. Two files of the same category sharing an id are ambiguous: the later
one discovery walks wins, with a warning naming both.
Every run is persisted under the parent conversation, and finished and failed runs alike open read-only from the chat's Delegates tab.
What a subagent sees
A subagent receives a real working context: the <packages> overview with its
own narrowed set, the rules and instructions those packages inject, the
<runtime_stack> map, and the current time and per-source state. Its definition
contributes its BODY; the frontmatter is configuration, applied rather than
pasted.
It does not receive the parent's identity files — a subagent is a role, not
a person, and its definition body replaces the base system prompt — nor the
parent's <session> block, history or <workspace> block (so it does not see
the speaker's name or the agent roster). It works from the brief alone and
answers in the brief's language. A well-written agent body therefore says only
what is specific to the role — its boundary, its stopping condition, its output
shape — and never restates the platform's general rules.
Skills
skills[] — the seventeen SKILL.md bundles agent-core ships, each gated by requiredFeatures, and the per-stream session ticket their route calls use.
Workflows
workflows[] — scheduled, webhook- and channel-fired agent runs: triggers, the run queue, creator identity, and the three templates agent-core ships. Gated by workflow.read.