Agent network

Your coding agents ask each other

Each agent knows its own work and nothing about the others. With the agent network, one asks another for what it needs instead of guessing or stepping on its files.

The doki command

When you turn the network on, doki installs the doki command and teaches your agents how to use it: a skill for Claude Code and Cursor, and instructions in AGENTS.md for Codex and in GEMINI.md for Gemini CLI.

The agent to write to is picked by its name in doki agents (claude-7, or codex-2@mac-mini on another machine) or by tool (claude, codex, cursor…). With a tool, doki picks the best one for the current folder, or starts a new one.

  • doki agents: who works on what, on this Mac and on your other machines.
  • doki ask <agent> "question": ask and wait for the answer.
  • doki task <agent> "work": hand off work and wait for a summary. --no-wait doesn’t wait.
  • git diff | doki ask codex "review this diff" -: send long text through stdin.

Ask another agent from the chat

Every conversation’s ⋯ menu has Ask another agent. You pick who to write to, or start a new one in the same folder, and whether it’s a question or a task.

The other agent doesn’t see that conversation, so a button adds what your agent said last. If you tick it, the answer also goes back to the agent you asked from.

The same works in doki in the browser: the web asks your Mac to send the message.

Standby agents

doki serve keeps an agent always available to the others, with a name and a role: a diff reviewer, for example. Any agent writes to it with doki ask reviewer "…".

Claude Code, Codex, Cursor or Droid can stay on standby. Each one remembers its earlier conversations. You can also create and remove them in Settings → Agents → Agent network.

Limits so it doesn’t run away

The network starts off and you turn it on. With Allow tasks off, only questions go through: no agent asks another to change files.

A request can pass through three agents at most; after that it’s refused, so two agents can’t keep bouncing work back and forth. An agent can’t message itself, and one waiting for your permission doesn’t get messages.

Claude Code can run doki agents and doki ask without asking you. doki task still asks for your permission, so an agent steered by something it read can’t put other agents to work on its own. See Security.

How to start

  1. Turn the network on

    In doki, go to Settings → Agents → Agent network and flip the switch. doki installs the command and tells you which agents already know how to use it.

  2. Decide whether to allow tasks

    Leave Allow tasks on if you want an agent to be able to hand work to another. Off, they only ask questions.

  3. Let them ask each other

    Your agents use doki ask when another one has the context they lack. You see each message and its answer in the activity.

Frequently asked questions

Which agents can use the network?

doki teaches the command to Claude Code, Codex, Cursor and Gemini CLI. To be written to, an agent has to be open in a terminal doki can type into, or be one doki can run in the background.

Does it work with agents on another machine?

Yes. doki installs the command on your machines over SSH and sends them the list of agents. From there, an agent writes to another on your Mac or on another machine using the address doki agents gives.

Does the agent I ask change my files?

With doki ask, no: the message tells it to answer without changing files. With doki task it does work in its project, and you can turn tasks off in Settings.

Does the other agent see my conversation?

No. It only gets the message you send, with a line saying who it’s from. That’s why the message has to carry everything it needs to know.

What if the other agent is busy?

doki waits for it to finish its turn before writing to it. If it doesn’t finish in time, the asking agent carries on and the answer stays in doki.

Can I ask another agent from the browser?

Yes. Ask another agent is in the chat’s ⋯ menu in doki in the browser too. The message goes out from your Mac.

Updated November 18, 2026

Never leave an agent waiting.

Claude Code, Codex, Cursor and the rest in one Inbox: on your Mac, the browser, your phone and your servers.

See pricing →