Skip to content

DocsAgents

Teams of agents

A lead agent starts workers in visible tabs, sends them work and collects their answers with the tenslo-code-agent command.

A project's agents in Tenslo Code: a lead agent with its workers nested under it, one worker running a worker of its own, and one waiting on a question.

An agent you start is a lead. A lead can start other agents as workers, each in its own tab and worktree, message them and collect their answers. Workers are ordinary sessions: you see their screens, can type into them, and they appear under their lead in the project's Overview, on any machine.

Agents do this with the tenslo-code-agent command, which is on the PATH of every Tenslo Code terminal. Claude Code and Codex also get a team skill that explains when to hand work to a worker and how to brief one, and agents that take MCP servers get a send tool for messages.

Ask for a team

Tell your agent to split the work, for example “start a Codex worker to run the Linux tests and fix what fails”. The lead runs something like:

tenslo-code-agent spawn --agent codex --project my-app \
  "Run the Linux tests and fix what fails"

Without --worktree, the worker gets a new worktree and branch of its own, in the project's .worktrees folder, started from the lead's branch. When the worker's turn ends, its answer arrives in the lead's terminal as a new message.

Commands

CommandWhat it does
whoamiYour role, your lead, your models by role, and whether you may start workers
listThe agents you can message, with their addresses and states
send [--reply] <address> [text]Sends a message; --reply asks for an answer
wait <address>Prints the whole answer to your last message to that agent
spawn --agent <cli> --project <name|path> [task]Starts a worker in a tab you can see
set <address> --model --effortChanges an idle worker's model or effort for its conversation
resume <address>Restarts a stopped agent in its own conversation
close [address]Closes a finished worker, or your own tab at the end of the turn
handover <address>Hands your lead role and workers to another agent
projects [add <path>]Lists the worktrees a spawn can use, or registers a folder
accountsEach account's plan, how much of each limit is used, and when it resets
kit [--machine] [--json]The agent kit as the Agent kit page shows it, without changing anything
kit [--machine <name>] [--json]The agent kit as Settings shows it, per computer and CLI, changing nothing

spawn also takes --machine, --worktree (a folder, branch or path), --account, and for Claude Code and Codex --model, --effort and --role review|build|check, which picks the model and effort set for that role in Settings › Teams. A task can be up to 32 KiB, as arguments or on standard input. tenslo-code-agent help prints the full list.

Addresses look like machine/project/claude, with claude-2 and so on for the next ones.

How messages arrive

Every message starts with one line saying who sent it and how to answer, such as [from my-mac/my-app/claude via Tenslo, message 3f2a…, hop 1; …]. Delivery depends on the CLI:

  • Claude Code takes a message between tool calls, or starts a turn with it.
  • Codex queues it and runs it after the current turn.
  • Other CLIs have it typed in after a finished turn, once you have not typed for five seconds.

A message never answers a permission prompt or a question, and never types over your draft. Messages that cannot be delivered yet wait for up to 24 hours.

Limits and settings

Settings › Teams sets how far a team can grow:

  • Workers per lead: 8 by default, up to 24. More spawns wait their turn, and the whole app runs at most 32 agents started by agents.
  • Workers can start workers: off by default. On, Levels says how many levels below you may spawn (2 or 3).
  • Close idle workers after 30 minutes by default; a worker that is working is never closed.
  • Let agents choose accounts: on by default. Off, every spawn uses the active account.
  • Run workers on the least busy computer, the lead's, or one you name, with a cap per computer.
  • Models by role: a Claude model, a Codex model and an effort for Review, Build and Check.

A message chain stops after three hand-offs, and a message is at most 32 KiB.

Across machines

Apps that reach the same machine, such as a Mac over SSH and a PC through WSL, share its agents and terminals: an agent started in one app appears in the other with its live status, and either can type into it. A lead can start a worker on another machine with --machine. An app messages only agents it owns; to reach another app's agent, ask an agent in that app.

Reports

The team skill asks each worker to leave its report in .tmp/agents/ in its worktree and to start its answer with Done or Failed, so a lead can read results without filling its own context.

Next

Keep what agents make: Artifacts.

Checked against the app on .