- The mental model - primary agents and subagents
- Built-in agents - the ones that ship with 100xprompt
- Switch agents - change who drives your session
- Fan work out with subagents - run parallel work off your main context
- Create your own agent - author a specialist in Markdown
The mental model
You always talk to one primary agent - the one driving your session. That agent delegates self-contained chunks of work to subagents, each running in its own isolated context. Your main conversation stays clean. Subagents report back a concise result; you keep the big picture.A primary agent is one you steer directly in a session. A subagent is one the primary agent (or you, with an
@-mention) hands a task to. The same agent can sometimes act as both - it depends on how it’s configured.Built-in agents
100xprompt ships with five ready-to-use agents. Two are primary agents you drive directly; three are subagents built for delegation.| Agent | Type | Best for | Can edit files |
|---|---|---|---|
| Build | Primary | Making changes - writing code, editing files, running commands, and shipping real work. | Yes |
| Plan | Primary | Read-only planning and design. Investigates your codebase and drafts a plan without modifying your source. | No (plan notes only) |
| General | Subagent | Open-ended research and multi-step tasks you want run in parallel, off your main context. | Yes |
| Explore | Subagent | Fast codebase exploration - finding files by pattern, searching for keywords, and answering “how does X work?” questions. | No (read-only) |
| Verifier | Subagent | Adversarial verification. After non-trivial work, it re-runs builds, tests, and linters to confirm the change is actually correct before you report done. | No (runs checks) |
Choosing between Build and Plan
Build
Full read-and-write power. Use it when you know what you want and you’re ready to make it happen - refactors, features, fixes, and command runs.
Plan
Look-but-don’t-touch. Use it to scope large or risky work, produce a plan you can review, then hand that plan to Build.
Switch agents
Suppose you scoped a change in Plan and now want to execute it. Change which agent drives your session at any time.- In the terminal
- Non-interactive runs
- Press Tab to cycle to the next agent, or Shift+Tab to go back.
- Press your agent-list shortcut (default
Ctrl+Xthena) to open the full picker. - Type
@in the prompt to mention a subagent and hand it a task inline.
Switching the primary agent changes what the session is allowed to do - for example, moving to Plan locks writes for the rest of that turn until you switch back.
Fan work out with subagents
Suppose you need to modernize a module and it means exploring old code, researching a new API, and auditing tests all at once. Exploring a large codebase fills your context with file reads. Delegate it so only the findings come back. The primary agent launches subagents that each work independently and report back. Your main context stays lean, and several threads of work move at once.- Search broadly across many files without flooding your main conversation.
- Run independent tasks at once - research, exploration, and self-contained implementation in parallel.
- Isolate risky work so a subagent’s edits never touch your working tree until you’re ready.
Run a subagent in the background
Run a subagent in the background
Long-running work can be sent to the background so you keep going. You’ll get a handle to check its status and read the result when it finishes - no need to sit and wait.
Isolate edits in a worktree
Isolate edits in a worktree
A subagent can run in an isolated git worktree, so its file changes stay separate from your main working tree until you choose to bring them in. If it makes no changes, the isolated workspace is cleaned up automatically.
Give each subagent a real brief
Give each subagent a real brief
Each subagent starts fresh with no memory of your conversation. The more context it gets - what you’re trying to do, what’s already ruled out, and exactly what to report back - the better its result.
Create your own agent
Suppose your team wants a reviewer that only reads, a migration bot with a tight tool set, or a docs writer that always uses one model. A custom agent bottles up that specialist. You author it in a Markdown file: YAML fields on top describe the agent, and everything below the frontmatter becomes its instructions.Create an agent file
Add a Markdown file under an
agent/ folder - .100xprompt/agent/ in your project for a repo-scoped agent, or the agent/ folder in your global 100xprompt config to make it available everywhere. The filename becomes the agent’s name, so agent/reviewer.md defines an agent called reviewer.Describe it in the frontmatter
Fill in the fields that tell 100xprompt when and how to use the agent - its description, mode, model, and which tools it’s allowed to touch.
Write its instructions
Everything below the frontmatter is the agent’s system prompt: its role, priorities, and rules of engagement.
Example agent file
Fields you can set
| Field | What it does |
|---|---|
description | When to use this agent. This is what other agents read to decide whether to delegate to it. |
mode | primary (drive it in a session), subagent (only delegated to / @-mentioned), or all (both). |
model | Which model powers the agent, as provider/model. Omit to inherit the session’s model. |
temperature / top_p | Sampling controls for how focused or exploratory its responses are. |
permission | Fine-grained allow/ask/deny rules for what tools the agent may use (edits, shell, reads, and more). |
color | A hex accent color for the agent in the interface. |
hidden | Keep a subagent out of the @ autocomplete menu. |
steps | Cap how many work iterations the agent runs before it must respond. |
Prefer a single config file? You can also define agents under an
agent section of your 100xprompt.json using the same fields.Manage agents from the CLI
Prefer to scaffold and manage agent files from the terminal? The100xprompt agent command handles the whole lifecycle.
| Command | What it does |
|---|---|
100xprompt agent create | Scaffold a new agent file. Prompts for a description, mode, and tool set, then drafts the frontmatter and starter instructions for you. |
100xprompt agent list | List every available agent - built-ins and your custom ones - with each agent’s mode and permissions. |
100xprompt agent edit <name> | Open a custom agent’s file in your $EDITOR. |
100xprompt agent delete <name> | Remove a custom agent. Built-in agents can’t be deleted. |
Related
- Skills: package reusable know-how your agents pull in on demand.
- Background Tasks: run subagents and long jobs while you keep working.
- Models: give each agent its own model.
Skills
Package reusable know-how your agents can pull in on demand.
Background Tasks
Run subagents and long jobs in the background while you keep working.
Models
Pick the right model to power each agent.