Jian/ Docs

Subagents

Let your agent hand a wide search, a long log or a review to a fresh worker, run several at once, and get one report back.

A subagent is a fresh worker your agent starts for one job. It has its own context, does the work on the same files, and sends back a report, so the long output stays out of your conversation.

Try asking

Check all 14 services in this repo for the deprecated getUser call and give me a list. Use subagents so we don't fill this chat.

Run the full test suite and tell me only what failed and why.

Have a second agent review the diff I just wrote with fresh eyes before I open the pull request.

You rarely need to ask. Your agent is told when handing work off pays: a wide search, a long log or a test run whose detail would only fill the conversation, pieces that can run side by side, or a second look at its own work. It keeps a single lookup or a few files for itself.

How it works

  1. Your agent writes a brief. The brief is all the subagent knows: the objective, context, paths and the result it needs.
  2. The subagent runs on the same files as your agent, in a git worktree of its own, made from the conversation's worktree, and merges back into it. See Projects.
  3. By default your agent waits and gets the report back in the same turn. Several subagents started together run at the same time.
  4. If one takes longer than 15 minutes, or can't start within a minute, your agent stops waiting. The report arrives later, in the turn still going or as a new one. Your agent can also start one without waiting.

A report is the subagent's account of its work. It reaches your agent marked as something to check before relying on it, and it is screened for instructions aimed at the agent, like a web page.

Tiers

Your agent picks a tier for each job. Left out, Jev (see Models) reads the brief and picks light, standard or deep; without a confident answer it is standard.

TierForLimit
LightOne file, a lookup, a rename, a short summaryNone; parallel pieces belong here
StandardA bounded change across a few files, with checks to runNone
DeepSeveral systems, risky to get wrong, or needing a plan3 at once per conversation
PremiumThe provider's top-priced model. Used only when you ask for it, or after a deep subagent already failed at the same work1 at once per conversation

The model behind each tier comes from the providers you connected. A model that costs at least one and a half times a provider's cheapest deep model counts as Premium, and a model family Jian doesn't recognize counts as deep when it costs as much as a deep model. On a Claude subscription, light runs on Haiku, standard on Sonnet and deep on Fable. If your installation offers no model for a tier, the subagent uses the parent's model.

Follow one at work

  • A badge above the composer lists the subagents that are working, with what each is doing. Click one to follow it in the Inspector. The badge goes away when none are working.
  • The Inspector tab shows the subagent's kind, tier and model in one row, how long it has worked, and a red Stop button. See The Inspector.
  • Your agent can open one for you with open_in_inspector, for example when you care about a long job.

Stop one

Press Stop in the subagent's tab, or ask your agent to cancel it. Work already finished stays finished.

What a subagent can and cannot do

  • It always runs on Auto: the guardrail still refuses catastrophic actions, but it never waits for your approval. It has no way to ask you anything, so it puts what it needs in its report. See Approvals.
  • It gets the repository instructions and skills of the conversation that started it.
  • It does not get the X tools, since every call spends your X credits.
  • Only you answer your agent's questions. A subagent's report, a nudge to continue an objective, a schedule or another agent's message reach your agent as information and never count as your answer.
  • With an objective open, nothing is queued while a report is pending. The report starts the next turn when it arrives.

Subagent or another agent?

A subagent is a worker for the same agent. To ask a different agent with its own memories and instructions, see Collaboration.

On this page