Agents
Configure and use specialized agents.
Agents are specialized AI assistants that you can configure for specific tasks and workflows. They allow you to create targeted tools with custom prompts, models, and tool access.
TIP
Use the plan agent to analyze code and evaluate suggestions without making any changes to the codebase.
You can switch between agents during a session using Tab, select them via the /agent command, or invoke them with @mention.
Types
TurboDev has two types of agents: primary agents and subagents.
Primary Agents
Primary agents are the main assistants you interact with directly. You can cycle through them using Tab. These agents handle the main conversation. Tool access is configured via permissions: for example, editor has all tools enabled, while plan is restricted.
TIP
Use Tab to switch between primary agents during a session.
TurboDev includes two primary agents: editor and plan.
Subagents
Subagents are specialized assistants that primary agents can invoke for specific tasks. You can also invoke them manually by @mentioning them in your messages.
Built-in Agents
Editor
Mode: primary · Color: cyan
Editor is the default primary agent with all tools enabled. It's the standard agent for development work when you need full access to file operations and system commands.
Tools: All enabled Permissions: edit: allow, bash: allow
Plan
Mode: primary · Color: yellow
A restricted agent designed for planning and analysis. It uses a permission system to give you more control and prevent unintended modifications. By default:
edit: ask — requests approval before editing filesbash: ask — requests approval before running commands
Tools: All enabled except taskPermissions: edit: ask, bash: ask
Usage
Primary agents: Use Tab to cycle through them. Or type
/agentto open the selector.@mention: Invoke any agent directly by mentioning it:
@plan analyze the authentication flowSubagent invocation: Primary agents can automatically invoke subagents for specialized tasks.
Configuration
Agents can be defined using Markdown files. Place them in:
- Global:
~/.config/turbodev/agents/ - Per-project:
.turbodev/agents/
The Markdown filename becomes the agent name. For example, review.md creates an agent named review.
Example
.turbodev/agents/reviewer.md:
---
description: Code reviewer that analyzes code without modifying it
mode: primary
tools:
edit_file: false
mkdir: false
bash: false
permission:
edit: deny
bash: deny
color: green
---
You are a code reviewer agent. Your job is to:
- Read and analyze code
- Identify potential bugs, security issues, and style problems
- Suggest improvements without making changes
Never attempt to modify any files.Merge Order
When a custom agent file has the same name as a built-in agent (e.g., editor.md), TurboDev performs a shallow merge:
- Built-in ← Global ← Project (project wins)
- Only specified fields are overridden
- The built-in
nameis always preserved
Options
description
A brief description of what the agent does and when to use it.
description: Reviews code for best practices and potential issuesRequired.
temperature
Controls randomness and creativity of responses.
| Range | Behavior |
|---|---|
| 0.0–0.2 | Focused, deterministic — ideal for analysis |
| 0.3–0.5 | Balanced — general development |
| 0.6–1.0 | Creative — brainstorming and exploration |
temperature: 0.1top_p
Alternative to temperature for controlling response diversity. Values from 0.0 to 1.0.
top_p: 0.9steps
Maximum number of agentic iterations before forcing a text-only response. Useful for controlling costs.
steps: 25model
Override the model for this agent. Useful for using different models optimized for different tasks.
model: anthropic/claude-haiku-4-20250514mode
Determines how the agent can be used: primary, subagent, or all. Default is all.
mode: primaryprompt
Custom system prompt for the agent. Written as the Markdown body (after the frontmatter).
---
description: Fast planner
mode: primary
---
You are a planning specialist. Be concise and direct.tools
Enable or disable specific tools for this agent.
tools:
edit_file: false
mkdir: false
bash: falsepermission
Configure what actions the agent can perform.
permission:
edit: deny
bash: askFor bash, you can use glob patterns:
permission:
bash:
"*": ask
"git status": allow
"git *": allowTIP
Rules are evaluated in order and the last matching rule wins. Put general patterns first, specific patterns last.
taskPermission
Controls which subagents this agent can invoke via the task tool. Uses glob patterns.
taskPermission:
"*": deny
"code-reviewer": allowcolor
Visual appearance in the terminal UI. Use a valid color name: cyan, yellow, green, red, magenta, blue, white, gray.
color: greenhidden
Hide a subagent from the autocomplete menu. Useful for internal agents that should only be invoked programmatically.
hidden: truedisable
Completely disable an agent so it doesn't appear anywhere.
disable: trueUse Cases
- Editor agent: Full development with all tools enabled
- Plan agent: Analysis and planning without modifications
- Review agent: Code review with read-only access
- Debug agent: Focused investigation with bash and read tools
- Docs agent: Writing documentation with file operations but no system commands
Examples
Documentation Writer
.turbodev/agents/docs-writer.md:
---
description: Writes and maintains project documentation
mode: subagent
tools:
bash: false
color: magenta
---
You are a technical writer. Create clear, comprehensive documentation.
Focus on:
- Clear explanations
- Proper structure
- Code examples
- User-friendly languageSecurity Auditor
.turbodev/agents/security-auditor.md:
---
description: Performs security audits and identifies vulnerabilities
mode: subagent
tools:
edit_file: false
bash: false
permission:
edit: deny
bash: deny
color: red
---
You are a security expert. Focus on identifying potential security issues.
Look for:
- Input validation vulnerabilities
- Authentication and authorization flaws
- Data exposure risks
- Dependency vulnerabilities
- Configuration security issues