Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/bolt-builder/bolt-cli/llms.txt

Use this file to discover all available pages before exploring further.

Bolt treats every AI persona as a named agent: a system prompt paired with a precisely scoped set of tool permissions. Rather than running one general-purpose model for every task, you pick the agent whose access and focus matches what you need — whether that is auditing security, writing docs, or wiring up a full framework migration.

Access levels

Every built-in agent is assigned one of three access tiers that determine which tools it can invoke:
LevelPermissions grantedTypical use
FullRead files, write/edit files, run shell commandsActive coding, debugging, refactoring, migrations
EditRead files, write/edit files — no shellDocumentation, comment updates, safe prose edits
ReadRead files only — no writes, no shellPlanning, research, code review, audits

Built-in agents

Bolt ships ten specialised agents out of the box. Switch between them in the TUI by pressing Tab.
AgentAccessDescription
codeFullDefault: reads, writes, and runs code
planReadExplores the codebase and produces a plan without changing code
askReadQuestions and research — no file edits
code-reviewReadReviews changes for correctness, style, and security
debugFullDebugs failing tests, crashes, and logic errors
refactorFullSafe refactoring with test verification at each step
docsEditWrites and updates documentation and comments
securityReadSecurity audit: vulnerabilities, secrets, and dangerous patterns
migrateFullFramework upgrades and dependency migrations
perfFullPerformance analysis and optimization

Subagents

In addition to the ten primary agents, Bolt exposes two built-in subagents that primary agents can delegate work to during a session. You never select a subagent manually — they are dispatched automatically when a primary agent decides to spawn one.
SubagentRole
@generalComplex multi-step task delegation requiring broad capabilities
@exploreFast, read-only codebase research — traverses files without side effects
When you need to understand an unfamiliar codebase quickly, start with the ask or plan agent. Behind the scenes they can dispatch the @explore subagent to index your project at high speed before producing an answer — without touching a single file.

Switching agents

In the TUI — press Tab to cycle through the list of available agents at any time during a session. The active agent is shown in the session footer. Non-interactively — pass --agent <name> to bolt run to pin a specific agent for the duration of that run:
bolt run --agent ask "what does the authentication flow do?"
bolt run --agent security "audit the API layer for injection vulnerabilities"
bolt run --agent docs "add JSDoc comments to every exported function in src/utils"

Listing agents

To see all available agents — both built-in and custom — with their modes and permission configuration:
bolt agent list

Custom agents

You can create your own agents in two ways.

Generate with bolt agent create

The interactive wizard generates an agent file using an LLM and writes it to disk:
bolt agent create
All flags are optional. Provide them to run non-interactively:
bolt agent create \
  --description "Audit GraphQL resolvers for N+1 problems and suggest DataLoader fixes" \
  --path .bolt/agents \
  --mode primary \
  --permissions read,grep,glob \
  --model anthropic/claude-opus-4-5
FlagDescription
--descriptionWhat the agent should do (used as the LLM prompt for generation)
--pathDirectory in which to write the generated agent file
--modeall (default), primary, or subagent
--permissionsComma-separated list of permissions to allow. Omit for all.
--model / -mModel to use in provider/model format

Write a markdown file manually

An agent is just a markdown file with YAML frontmatter. Place it in .bolt/agents/ inside your project or in the global agents directory:
---
description: "Audit GraphQL resolvers for N+1 problems"
mode: primary
permission:
  bash: deny
  edit: deny
---

You are a GraphQL performance specialist. Your job is to identify N+1 query
patterns in resolver code and recommend DataLoader-based solutions...
The filename (without .md) becomes the agent’s identifier.

Available permissions

Permissions are the fine-grained tool gates you control when creating a custom agent:
PermissionControls
bashShell command execution
readFile reading
editFile writing and editing (also gates write and apply_patch)
globFile glob/directory listing
grepFile search via ripgrep
webfetchHTTP fetch from the web
taskSpawning subagent tasks
todowriteCreating and updating todo items
websearchWeb search queries
lspLanguage server protocol operations
skillAccessing project skills

Build docs developers (and LLMs) love