Customizing sub-agents
Subagents are composed from three layers: partials, templates, and skills. Each layer can be ejected and modified independently, and all of it happens in the terminal — the three layers are files on disk, and the editor is a browser page that writes none.
Want to see what you’re changing first? Anatomy of a sub-agent reads a compiled file top to bottom, so you can tell which of the three layers produced which part of it.
Quick start
Section titled “Quick start”npx agents-inc eject agent-partials # the five partials one sub-agent is composed fromnpx agents-inc compile # rebuild your subagents around what you changedEdit the partial that carries the behaviour you want changed, recompile, and that subagent is different from the next turn on. The sections below say what each of the three layers holds, so you know which one to reach for.
Ejecting
Section titled “Ejecting”npx agents-inc eject agent-partials # Role-specific partialsnpx agents-inc eject templates # Global Liquid templates shared across all subagentsnpx agents-inc eject skills # Fork skills for local editingnpx agents-inc eject all # Everything at onceRun npx agents-inc compile after editing any ejected files to rebuild your subagents.
Partials
Section titled “Partials”Each subagent has five partials that can be customized:
identity.md— Role description and identityplaybook.md— Step-by-step process the agent followscritical-requirements.md— Hard rules the agent must followcritical-reminders.md— Repeated emphasis on key behaviorsoutput.md— How the agent structures its responses
Partials apply to specific roles. Use these to customize how a particular subagent behaves.
Templates
Section titled “Templates”Templates apply globally across all subagents. Use these for shared conventions like coding style, commit formats, or project-wide rules.
Configuration
Section titled “Configuration”Skill-to-subagent mappings and load behavior (preloaded vs dynamic) are configured in .claude-src/config.ts. Use npx agents-inc edit to modify selections interactively, or edit the config file directly.
Keeping a globally installed skill out of a project is a stack decision, not a selection one. A global install cannot be deselected from inside a project — the wizard locks those rows. Instead, leave the skill out of the relevant agent’s stack entry: the skill stays installed and available, but no subagent in this project receives it. See Editing Your Config for the stack shape.
After making changes, run npx agents-inc compile to rebuild your subagents.