In short.
This guide teaches Devin CLI users to delegate coding work to AI subagents, but each worker adds usage and background tasks cannot request new tool approvals. It provides concrete guidance on read-only exploration, code-changing workers, model selection, custom profiles and task recovery. A general subagent uses the parent's model, while exploration and unpinned custom profiles use a default subagent model chosen by a server-side router unless an administrator or an allowed local setting overrides it. Custom profiles are experimental. The page claims improved coding performance and lower overall cost without supplying measurements, benchmark methods or prices; actual performance and savings remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete documentation page at [https://docs.devin.ai/cli/subagents.md], including profiles, model routing, organization and local controls, permissions, costs, monitoring, switching, interruption, cancellation, recovery, nesting, custom definitions and experimental notices. Linked pages and the linked settings image's visual contents are excluded. No commands, configurations or examples were executed. Runtime behavior, performance, actual charges and compatibility remain unverified.
The overview
identity
Subagents is a Devin CLI documentation guide at [https://docs.devin.ai/cli/subagents.md]. It explains how a main coding agent delegates tasks to independent workers and how users control those workers.
The resource includes operating instructions and sample custom-agent definitions. Those examples illustrate the CLI's configuration format; the page does not provide a separately packaged agent collection.
assessment
The guide is useful for developers who want to understand which worker can inspect code, which can change it, when approval is possible and which model determines usage costs. Its practical strength is explaining how these choices interact.
It supports informed configuration decisions, but it does not establish that delegation will improve a particular project. The statement that subagents improve coding performance and reduce overall cost is a publisher claim without supporting measurements on this page.
users
Developers learning an unfamiliar codebase can use the exploration guidance to delegate focused research. Developers implementing changes or running tests can use the general-worker guidance to understand the broader tool access and inherited model cost.
Team administrators get an explanation of organization controls for default models and disabling subagents. Experienced users get custom-profile paths, tool restrictions and nesting controls. Beginners receive operating guidance, but initial CLI installation and account setup are outside this page.
capabilities
The built-in subagent_explore profile supports read-only codebase research and web search. It cannot edit files or fetch arbitrary URLs, in either operating mode. The subagent_general profile supports code changes and other general tasks, with full tool access in the foreground subject to approvals, or previously approved tools in the background.
Users can explicitly request delegation, and the main agent can also choose to delegate. Workers can run in the foreground while the parent waits, or in the background while the parent continues.
The subagent panel shows profiles, titles, status, elapsed time and tool-call counts, and its activity survives a session reload. Ctrl+B backgrounds a foreground worker; f in the panel foregrounds a running background worker; x cancels a running worker. Failed, cancelled and completed workers can be resumed with another request.
Using it
requirements
The feature needs a Devin CLI session in which organization policy permits subagents. An administrator's Default subagent model setting of None disables them entirely, regardless of the local enabled setting.
A local default-model override must name a model allowed by the organization. If it does not, the override is ignored and the team default applies. The page does not establish subscription eligibility, minimum CLI version, authentication steps or hardware requirements.
mechanism
Each worker has its own conversation and context window. It shares tools and codebase context with its parent, but does not inherit the parent's conversation history. The parent reads the completed result and summarizes findings and actions for the user.
Model choice follows the profile. subagent_general uses the parent's selected model. subagent_explore uses the default subagent model. A custom profile uses its model field when present and otherwise uses the default. That default can come from a server-side router, an administrator's pinned choice or a permitted local override; the local override takes precedence over an administrator's model choice, but cannot undo organization-wide disabling.
Foreground workers can request approval for tool calls. Background workers inherit approvals already granted during the session and automatically receive denials for other tools. Moving a foreground worker into the background lets the parent continue, but its result does not feed into the parent's current pipeline; completion still triggers a notification.
setup
Subagents are enabled by default unless organization policy disables them. Setting subagents_enabled to false in ~/.config/devin/config.json removes the delegation tools and applies to a running session without restarting. Setting agent.subagent_model changes the default model for exploration and unpinned custom profiles in new sessions; general workers continue to follow the parent's model.
Custom profiles can use a project file such as .devin/agents/reviewer.md or a directory such as .devin/agents/reviewer/AGENT.md. The page also supports .agents/agents/ as a project location. Global profiles belong under ~/.config/devin/agents/ on Linux/macOS or %APPDATA%\devin\agents\ on Windows.
A definition contains YAML frontmatter followed by the worker's instructions. Supported fields include name, description, model, allowed-tools and max-nesting; tools is an alias for allowed-tools. The name field overrides the identifier derived from the path. Definitions that conflict with built-in profile names are skipped with a warning. For directory layouts, AGENT.md takes precedence over AGENTS.md, agent.md and agents.md, in that order.
example
A hypothetical request is: "Use an explore subagent to trace login handling and identify the relevant files." This asks for a bounded research task using a read-only worker. The agent chooses whether it runs in the foreground or background; in the background, the parent can continue separate work. It does not authorize the exploration worker to edit files or fetch arbitrary URLs.
If the findings call for a code change, a general worker can handle that task using the parent's selected model. If a background task fails because a necessary tool lacks approval, the documented recovery is to resume it in the foreground, where approval can be requested. No execution outcome is supplied for this illustration.
Assessment & evidence
limitations
Custom profiles are explicitly experimental, so their format, behavior and configuration may change. A default model selected by the router can vary with plan tier, availability and organization policy, and the routing list can change. The subagent panel does not currently identify the model a running worker uses.
A prompt cannot directly name a worker model because the delegation tool accepts a profile. Model choice can instead be influenced by asking for a profile, such as an explore subagent, through the agent.subagent_model setting, or through a model field in a custom profile or a skill that runs in a subagent. Custom tool permissions cannot grant ask_user_question, which is always withheld from subagents.
Workers cannot normally create more workers. Custom profiles can enable nesting through max-nesting; a limit of 3 permits descendants through depth 3, counting the root as depth 0. The page does not establish concurrent-edit isolation, conflict handling or a maximum parallel-worker count.
Interrupting the parent parks its workers with their state intact; they resume on the next message. Stopping the parent turn therefore does not cancel those workers. Runtime reliability, performance and behavior on a particular installed CLI version remain unassessed.
reasoning
The documented separation of conversations suggests a useful fit for focused investigations and independent subtasks. Background execution can overlap those tasks with the parent's work. These are architectural reasons to consider delegation; they do not demonstrate faster completion or better code.
The choice should follow the required capability and acceptable usage. Read-only research fits the exploration profile. Changes requiring broader tools fit a general or appropriately restricted custom profile. When approvals are uncertain, foreground operation offers the documented way to resolve them interactively.
alternatives
The documented alternative within Devin CLI is to keep work in the main agent by disabling subagents. This avoids additional worker sessions, although it does not establish a lower total cost for completing the task.
For delegated work, the available choices are built-in exploration, a general worker following the parent model, or an experimental custom profile with its own instructions, model and tool restrictions. The page provides no comparative evidence for choosing Devin over another coding assistant.
evidence
The source is the complete Subagents documentation page at [https://docs.devin.ai/cli/subagents.md]. It contains behavior descriptions, profile and model tables, configuration examples, lifecycle instructions and notices about costs and experimental features.
The page supplies no benchmark methodology, numerical performance results, measured task costs or execution logs. Its examples explain intended use; they do not establish observed outcomes. Linked configuration, skills and index pages supply no additional evidence within this scope.
Access & freshness
costs
Every worker has separate inference calls and consumes usage independently of the parent. On prompt-based plans, each worker consumes additional credits, with the amount depending on its model. More workers and nested delegation add usage.
A general worker uses the parent's model and its rate, so several general workers on a premium parent model can multiply spend. Exploration workers may use a different model. A custom profile can pin a model for write-capable work, but this page supplies no prices demonstrating which choice is cheaper.
Exact rates, credit quantities, plan allowances and typical task totals are unknown. Separate worker charges do not establish the total cost of completing a task, and the claimed overall savings are unsupported by numerical evidence here.
rights
The page does not state a license for the documentation or its example definitions. Permission to redistribute the page or example files is not established.
Applicable service terms and ownership or licensing of code produced through Devin are also unspecified. The examples alone do not resolve those rights.
freshness
The supplied page was captured on 13 November 2026 at 16:15:56.655 UTC. It gives no publication date, revision date or applicable CLI version, so the capture date does not establish when the feature or instructions were released.
The source explicitly allows model-routing changes and warns that custom-profile behavior may change. Compatibility with a particular installed release and changes after this snapshot are unknown.
actions
Before delegating, check whether organization settings permit subagents and which model source applies to the intended profile. Use an explicit exploration request for read-only research, and account for the parent's model rate when choosing a general worker.
Start with a bounded task and inspect the returned findings and affected files before expanding the work. Use foreground execution when new approvals may be needed, or resume a permission-blocked background task in the foreground.
For model control, consider the permitted local default override for exploration or a model field in a custom profile for write-capable work. Treat custom profiles as experimental and enable nesting only when the additional worker usage is justified.
