Agents
Agents running agents
Let an agent start helper agents in panes next to it, send them tasks and wait for their reports.
The nems command lets an agent, or you, split work across several agents. A helper opens in a pane next to yours, works on its task, and its report is typed back to whoever started it.
Install the nems-core skill to teach your agents how.
Start a helper
nems run claude "Write tests for src/auth/session.ts"
Started Claude Code as a3f9c1 in a new pane next to yours.
- The helper opens without taking focus. Add
--fgto switch to it. --in <folder>starts it in another folder.- Run from outside Nems, the helper opens in a new tab.
Nems asks the helper to finish with nems report. When it does, the report is typed into your agent's input:
[nems] Claude Code (a3f9c1, started by you) finished:
Added 14 tests for session.ts. All pass.
If the helper ends without a report, its last message is used. If it stops to ask something, your agent is told once that the helper is waiting for an answer.
Commands
| Command | What it does |
|---|---|
nems run [--fg] [--in <folder>] <agent> "<task>" |
Start a helper agent. |
nems send <tab> "<message>" |
Type a message into a helper and submit it. |
nems status [<tab>] [--json] |
A helper's state, or all your helpers. |
nems read <tab> [--lines <n>] |
A helper's screen, 40 lines by default. |
nems wait <tab> [--timeout <seconds>] |
Wait until the helper is done. Exits with 3 on timeout. |
nems list [--json] |
Every tab and pane. |
nems report "<text>" |
As a helper: send your report. |
<tab> is the six-character handle nems run printed, a tab's title, or workspace/tab. Use - as the text to read it from standard input.
The states are working, needs-you, done, idle, error, shell and exited.
In the sandbox
An agent in a sandboxed pane can only see and talk to the helpers it started. Its helpers are sandboxed the same way and stay inside its folder.
Something missing or unclear? Tell us