Support

CellCog Subagents Guide

Let a CellCog agent hand work to other agents, step away while they work, and pick up again the moment each one finishes.


What are subagents?

A subagent is a helper agent that one of your CellCog agents starts for a piece of work. The agent that starts it is the parent: a regular chat or one of your AI employees. The parent gives the subagent a written brief, starts it, and then rests instead of waiting and checking on it. When the subagent finishes, it tells CellCog, and CellCog wakes the parent so it can read the result and carry on.

One parent can run several subagents at once, for example one per part of a larger coding task.


Which kinds of subagent are there?

table
KindWhere it runsWhat you need
CellCogA new CellCog chat, started by the parentNothing. CellCog sets this up for you (see "The Subagents key" below).
Claude CodeOn your own computer, through CoworkThe CellCog Desktop app connected, and Claude Code installed and signed in on that computer
CodexOn your own computer, through CoworkThe CellCog Desktop app connected, and Codex installed and signed in
CursorOn your own computer, through CoworkThe CellCog Desktop app connected, and the Cursor command line agent installed and signed in
OtherAnything that can call a web linkWhatever that tool needs
JobA script or program your agent starts, in its own computer or on yoursNothing for its own computer; the CellCog Desktop app connected for yours

Claude Code, Codex and Cursor run under your own login with those products and use your own plan with them. CellCog does not run them in the cloud.


How it works

  1. The parent creates the subagent. CellCog gives it an id such as SA-7KQ2MX and a wake link.
  2. The parent puts the wake link in the brief with a plain instruction: call this link when you are done.
  3. The parent starts the subagent. For Claude Code, Codex and Cursor this is a command on your computer, so it goes through your approval level like any other Cowork command.
  4. The parent rests. It is not running while the subagent works.
  5. The subagent finishes and calls the wake link. CellCog wakes the parent with a short note naming the subagent.
  6. The parent reads the result itself (the subagent's log file, or the CellCog chat) and continues.

The wake link

  • It works for 24 hours and can be used several times in that window. Every call wakes the parent.
  • It carries no data. It only says "I was called"; the parent reads the actual work from where the subagent left it.
  • The parent sends a fresh link with each new piece of work it gives a subagent that has stopped. Earlier links keep working until they end.
  • A link that is cancelled, used up or out of time no longer does anything.
  • If a subagent says it could not wake its agent, its link was used up (a link works up to 10 times) or ran out of time. Ask your agent to send that subagent a fresh link.

When a subagent never reports

A subagent can crash, run out of room, or hit a limit before it calls its link. If its link runs out unused, CellCog wakes the parent with a note that the subagent never reported, so the work is never silently lost. The parent can also set an expected time: if nothing has been heard by then, it gets an early note, and a late call still wakes it. If the link then runs out with no call, the parent gets the never-reported note as well.

Jobs

A subagent does not have to be another agent. When your agent starts something long that is not an agent (a build, a video render, a large data pull), it starts it as a job: the script calls the wake link when it ends, whether it worked or failed, and your agent rests until then instead of waiting and checking. Jobs show on the Subagents page beside the other kinds, labelled Job.

  • On its own computer, your agent keeps its computer running until the job ends. A job there can run for up to 6 hours, and its wake link lasts 6 hours to match. Longer work is saved as it goes and started again as a new job.
  • On your computer, a job runs through Cowork like any other command, and its wake link lasts 24 hours. Your computer must stay awake while it runs.

We call the app Subagents because that is the familiar name; underneath, each one is a piece of work your agent started and is waiting on, either another agent or a job.


Setting things up

CellCog subagents: the Subagents key

The first time one of your agents runs a command in its workspace, CellCog creates an API key named Subagents for you in that organization, so every agent of yours can use the CellCog SDK. It appears on your API keys page and on the Keys page under Connectors: one key, shown in both places. It can be rotated, not deleted: Rotate on either page swaps in a new key at once, and your agents use the new one from their next command. It does not count toward your limit of active API keys, and it ends when you leave that organization or delete your account. Your agent uses it from its own workspace to start the subagent chat. CellCog keeps an encrypted copy of the key and sets it for the agent's commands there; it is not given to the agent as text, and agents are instructed never to print it. If you already gave your agent your own CellCog API key, that one is used instead.

The CellCog SDK comes preinstalled in every agent's workspace, so a CellCog subagent needs no setup from you at all.

Claude Code, Codex and Cursor

Open Subagents under Apps in the sidebar and click Claude Code, Codex or Cursor in the strip at the top. A panel opens (for example Use Claude Code as a subagent) with four steps and where each one stands:

  1. CellCog Desktop connected. If it is not, click Connect your computer. See the Cowork Guide.
  2. Installed. Copy the install command and run it in a terminal on that computer.
  3. Signed in. Copy the sign in command, run it, and finish the sign in in your browser.
  4. Check your setup. Click Check now. The CellCog Desktop app runs a short built-in check on your computer, and steps 2 and 3 update within a few seconds: the version it found, and which login a subagent would use.

The commands come from each tool's own install guide (macOS and Linux; each panel links to that guide for Windows and other ways):

  • Claude Code: install with curl -fsSL https://claude.ai/install.sh | bash, sign in with claude auth login
  • Codex: install with curl -fsSL https://chatgpt.com/codex/install.sh | sh, sign in with codex login
  • Cursor: install with curl https://cursor.com/install -fsS | bash, sign in with agent login

Check now works on Mac, Windows and Linux. It only reads: it checks whether each tool is installed, whether you are signed in, and whether an API key is set in your terminal. Your key never leaves your computer, and the check changes nothing. It checks Claude Code, Codex and Cursor in one go, and the panel shows when and on which computer it last ran. If it says your computer did not answer, open CellCog Desktop and click Check now again. If it asks you to update CellCog Desktop, update the app first.

Step 4 also shows Last usage reading when there is one: how much of the tool's plan limits was in use at that time, exactly as the tool reported it (click Show to see it). Your agents read it before they choose which tool gets a piece of work, so a tool near its limit gets less of it.

What step 3 tells you. Claude Code, Codex and Cursor can run on your plan with that product, or on an API key, which is billed to your API account instead. A key set in your terminal (often in a shell profile such as ~/.zshrc) can quietly take over from your plan, so step 3 says which one a subagent would use:

  • Signed in with your Pro plan (or your own plan's name): subagents use your plan.
  • Using your API key: no plan sign in was found, so subagents use the key. To use your plan instead, sign in with the command in step 3.
  • Pro plan, API key also set: you have both. Subagents use your plan first.
  • Not signed in: sign in with the command in step 3, then click Check now again.

When you have both, step 3 shows a switch: Use my API key when my plan's limit is reached. It is off at first. Off, a subagent that hits your plan's limit stops, and your agent tells you, waits for the limit to reset, or uses another kind of subagent. On, your agent may start it again on your API key. You can change it any time, separately for Claude Code, Codex and Cursor.

For Claude Code, a key can also sit in Claude Code's own settings file. Step 3 then warns that this key overrides your plan for every run. Remove it from that file if you want subagents on your plan.

If you have not clicked Check now yet, the panel shows the last check one of your agents recorded, if there is one. Your agent also checks before it first starts a subagent of that kind.

Let an agent set it up. Once your computer is connected, this button opens a new chat with Cowork on and a ready request: check the tool, install it if it is missing, help you sign in, and record the check so the panel shows it. Read it and send it; commands on your computer follow your approval level. The check is saved as a short entry such as claude-code-setup-check, cancelled at once so it never waits for a wake, and you will see it in the list.

Your agent gives each subagent its own working copy of your project, so two subagents never edit the same files at once.

Want it the other way round, with Claude Code handing work to CellCog? That is Use CellCog from Claude Code in the Delegate app (MCP / API in the left sidebar); see the MCP Connector Guide.


Seeing your subagents

Open Subagents under Apps in the sidebar. A strip at the top shows whether each kind is ready to use: your computer (the Desktop app), CellCog, Claude Code, Codex and Cursor. Click Claude Code, Codex or Cursor to set it up. Below it, each chat or AI employee that started subagents in your current organization has its own card, newest first. Subagents still working are listed first: name, kind, a short note of where the work is (a branch, a folder, a log file), its status and when it started. Finished ones (reported, never reported or cancelled) fold under Done, which shows the latest five; Show more loads older ones. The search box at the top finds subagents by name across every card. A subagent that is still waiting has a Cancel button; its wake links stop working at once.

table
StatusMeaning
WaitingIts latest wake link is live and has not been called yet
ReportedIt called its latest wake link
Never reportedIts latest wake link ran out (or passed its expected time) without a call
CancelledStopped by you or by the parent; its links no longer work

A row shows Take 2 (then 3, and so on) when the agent that started it sent its work back for another try.

While an agent's own run has stopped but its subagents are still working, its row in the left sidebar (an AI employee or a chat) shows a small pulsing Subagents icon, so it never looks idle. Background jobs (a script the agent started and rests on) do not show it; they are listed on the Subagents page and still wake the agent when they end. Hover it to see how many are running; the approval stamp, when there is one, sits to its right. A subagent counts as running only while it is waiting to report: once it reports, is cancelled or is marked never reported, the icon stops counting it.

Whose subagents you see. Your own chats' and AI employees' subagents, plus those of every AI employee you have Team access to or manage (above the owner in the org chart):

  • People with Team access, and managers when the owner turned that on, see them everywhere the owner does (the line above the message box, the sidebar icon, this page) and can Cancel one.
  • The owner only sets up Claude Code, Codex and Cursor and runs Check now for the owner's own computer. Those steps are always about the computer you are on, so everyone sets up their own.
  • Everyone else in the organization sees none of them.

When your agent uses subagents

Your agent hands work to a subagent when it splits cleanly: a long build or test run it can rest through, a large codebase or set of logs to read, independent pieces that can run at once, or a fresh-eyes review. It keeps the decisions, the design and anything that needs your approval for itself, and does small or step-by-step work directly. It reads and reviews every subagent's work before relying on it. A subagent never gets more access than the agent that started it; anything that needs your approval still comes to you.

In the chat

While subagents are working, a thin line above the message box of the chat or AI employee that started them shows each one by name with its state (background jobs are not shown there, only on the Subagents page): running (Waiting in the app), reported, never reported or cancelled. Tap a name to see how long it has been running or when it last reported, and what the parent recorded about it. For a CellCog subagent you also see what its chat is doing right now, and Open chat takes you there. Claude Code, Codex and Cursor say nothing until they call back, so they show as running with the time since they started. It updates on its own as subagents report, and goes away once none is running and your agent has reviewed every one that finished.

Running and reviewed

  • The pulse. A subagent's logo pulses while it is working, the same glow the sidebar shows on a chat or AI employee that is working. A CellCog subagent pulses while its chat is running; Claude Code, Codex and Cursor pulse until they call back.
  • The dot. When a subagent finishes (or never reports), a small dot appears on it, in the chat and on the Subagents page. It means "Not reviewed by your agent yet": the agent that started it has been woken but has not yet marked it reviewed.
  • Who clears it. Only your agent. It reads the subagent's output (its log and changes, or the CellCog chat's result) and then marks it reviewed. Opening the subagent, the chat or the Subagents page never clears the dot, so it stays an honest sign that your agent looked at the work. If the same subagent reports again, the dot comes back until your agent reviews that round too.
  • The green tick. In the chat, a reviewed subagent shows a green tick where its dot was, and stays on the strip while any other subagent from the same round is still working or waiting for review. Once every subagent on the strip has its tick, the strip goes away. All the pulses on the strip breathe together.
  • Your own unread chats are separate. A CellCog subagent is a chat of yours, so it can also show as unread in your sidebar. When your agent reads its result, that chat counts as seen, and you do not get a reminder email about it.

Credits

Each time a subagent wakes the parent, the parent does a normal run, paid from the account that owns the chat or the AI employee. A CellCog subagent is a CellCog chat and uses credits like any chat. Claude Code, Codex and Cursor use your own plan with those products, not CellCog credits. If your balance cannot pay for a run, the note waits in the chat and is picked up the next time you message it.


Safety

  • The wake link only ever wakes the agent that created the subagent. Anyone holding a copy can wake it only a limited number of times within 24 hours, and you can cancel it at any time.
  • Commands on your computer follow your approval level, exactly like other Cowork commands.
  • Subagents are kept for 30 days after their last wake link ends, then removed. Deleting your account removes them along with the Subagents key.

Frequently asked questions

Do I have to do anything when a subagent finishes?

No. The parent is woken and continues on its own. If a chat parent needed your input, it asks you as usual.

Can an AI employee use subagents?

Yes. An AI employee's subagents belong to the employee, so a note reaches it even if it has started fresh since launching them.

What if my computer is off?

Claude Code, Codex and Cursor subagents need your computer on and the Desktop app connected to start, and they keep running only while the computer is awake. If one stops before reporting, the parent gets the "never reported" note.

Can I stop a subagent?

Cancel it in the Subagents app, or ask the parent to. Cancelling stops the wake links; ask the parent to also stop a tool still running on your computer.


Related guides