agenttalk
In plain words: agenttalk lets you run a team of AI coding assistants, such as
Claude Code and Codex, on one project. They hand work to each other and review it
across AI companies; on any operating system, a start script and the lead’s timers
keep them working while you are away, though a seat that crashes stays down until it is
started again (on Windows the optional supervisor can do that); and a shared, curated
memory brings lessons from past work back into later turns. The
messages and the team’s shared records are files in your project, so the messaging
needs no server and no account; a few things, such as logs and signing keys, live in
per-user folders on the same computer. This front page is for anyone deciding whether
agenttalk suits them, including readers who have never programmed, and the detailed
guide and reference follow further down.
On this front page
The detailed guide and reference
- How it works, including what it does well that you might not
guess, what stays on your
machine and what agenttalk is
not
- Quick setup, including running a team
unattended and leads that report to a
lead
- Use cases
- In depth: how a migration works
- Technical reference and FAQ
Who it is for, and what you need first
agenttalk is for people who already use an AI coding assistant on real code and want
more than one: a second assistant, ideally from another AI company, to review or carry
on the first one’s work, or a small team in which a lead hands out the work. It suits
one developer with two assistants as well as an operator who keeps a whole team
running all day.
What you need:
-
At least one AI coding assistant that runs in a terminal (the text window where
you type commands): Claude Code, Codex, or both. Each needs working access to its AI
model: often a subscription, or an account the AI company bills by how much you use
it; either way, that cost is yours. agenttalk does not supply AI models or pay for
them. Give the agents a subscription of their own and keep separate ones for people,
and give each agenttalk team its own pay-per-use key. A Claude seat’s usage reading
covers the whole account, so a person’s own use on the same subscription eats into
the team’s allowance and nobody can tell who used what; a key used by one team only
lets you compare the provider’s bill with that team’s own spending record. Its
optional managed gateway can give a wrapped Claude Code seat (one that
agenttalk wrap runs, turn by turn) one other model (Qwen, through OVH AI Endpoints,
with your own key). To have work reviewed across AI
companies, you need assistants from two companies.
-
Python 3.10 or newer, to install agenttalk.
-
Windows, Linux or macOS. The project’s tests run on all three, with Python 3.10
to 3.13. Some optional parts are tied to one system:
- The bundled supervisor, an optional watcher that restarts a seat after a crash or
an outage, needs Windows and PowerShell 7. You do not need it to run a team
unattended. A monitor that restarts seats on Linux and macOS is not built yet;
#356 tracks it.
- The optional managed gateway runs as a background service through Windows Task
Scheduler, or through a systemd user service on other systems. macOS has no
systemd, so that service cannot be installed on a Mac.
On Linux and macOS, a wrapped Codex seat whose shell (the program that reads the
commands you type) is bash or zsh needs one setting, "reply_shell": "bash" in
.agenttalk/supervisor.json, because the wrapper gives Codex its reply instructions
in PowerShell form by default. A Codex assistant you start yourself does not use
this setting.
-
git, because reviews, deliveries and release checks name exact versions of the
code (commits).
Does setup need technical help? A pair of assistants needs a terminal. You run a
few commands to install agenttalk and set up the project, set one setting (an
environment variable) in each terminal, and start the assistants; Get
started shows them. If that is new to you, ask someone who has done it
before. An unattended team, started by a script and kept going by the lead’s timers,
is a bigger job for someone technical; Run a team unattended
shows what it takes.
A normal day with a small team
Picture three seats. A seat is one AI assistant with its own name on the team; in
the simplest setup, each runs in its own terminal. Here they are a lead, a builder called claude-dev (a Claude Code
seat) and a reviewer called codex-rev (a Codex seat). The lead can be you, or an AI
assistant that talks to you.
- The lead hands out work. It writes a work order that stands on its own: what to
build, how to check it, and what not to touch. An assistant may still be busy with
its current job when the order arrives, and may remember nothing of earlier
conversations, so everything it needs goes into the order.
- One assistant builds.
claude-dev does the work on its own branch, runs the
checks and replies that it is done, naming the exact commit it built.
- Another assistant, from a different AI company, checks it. The lead sends that
commit to
codex-rev. The reviewer reads it without the builder’s reasoning, tries
to break it, and replies with GO (go ahead) or with findings. Findings go back to
the builder for a fix, and the reviewer reads the new commit.
- A person decides anything risky: merging, releasing, deleting. agenttalk itself
does not merge code or make releases. A person does, or a lead that person has
allowed to, and the lead’s own instructions say to merge only on a GO for that exact
commit. Before such a step, the assistant should run agenttalk’s pre-action check
with the epoch and gates options:
agenttalk check --for <seat> --to-request <request-id> --epoch --gates. It says
stop if the request was withdrawn, if it was sent before the team’s latest epoch
barrier (set with agenttalk barrier bump, which starts a new epoch), or if a
gate still says HOLD; a gate is a named check the team records as HOLD (not
yet) or GO. Without --epoch the check does not look at the barrier, and without
--gates it does not look at the gates. Sending a newer request
in place of an old one does not stop the old one: to stop it, withdraw it
(agenttalk rescind). A question only a person can answer goes to them with
agenttalk escalate.
- It is written down. Work orders, replies and reviews are messages, kept as
files in the project’s
.agenttalk/ folder, and the team’s lessons are kept there
too. When an assistant forgets, crashes or restarts, it can find its open work
again in those records rather than in its memory, and you can look up who asked
what and who answered.
Honest limits
- It coordinates; it does not add capacity. The team works on one machine and
within the usage limits of your AI accounts. When a company’s usage limit runs out,
the seats on that account cannot work, sometimes for hours. A wrapped assistant
handles one message per turn. When one lead hands out and checks all the work, as in
the normal day above, that lead becomes the bottleneck as the team grows. A separate service that keeps track of AI usage across
subscriptions and pay-per-use accounts, and shares it out between teams, is being
developed alongside agenttalk, and agenttalk will be its first user. The service is
not released yet.
- More assistants do not mean correct work. A person still writes clear work
orders, insists on review before anything merges, and keeps an eye on disk space;
agenttalk does not enforce any of these.
- Delivered, done and recorded are three different things. A message can be
delivered and read while the work is still running. The work can be finished while
the reply that says so has not been sent yet. A work order closes when its reply
says it is done or declined. When the reply has no status field, a verdict closes it
too. A reply that only accepts the work keeps it open. A seat can also close it for
itself by hand, with
agenttalk ack --for <seat> --to-request <request-id>, and
withdrawing it (agenttalk rescind) closes it for everyone. So closed does not
always mean completed: read the reply. agenttalk threads lists what is still open,
and a quiet screen does not mean nothing is outstanding. A withdrawn request stays
closed, even if an answer arrives later, but withdrawing it does not stop an
assistant that is already working on it.
- Known gaps today.
- Lanes do not work when the bus lives outside the code. Lanes are the delivery
check for a scoped piece of work. They need the bus folder inside the code
repository; otherwise they cannot find the branch to start from, and shared notes
tied to a file path are marked out of date at once
(#245).
- Temporary files still land in the shared temp folder. The wrapper tells each
wrapped assistant to keep its temporary files in its own scratch folder, but
agenttalk does not yet point the programs they run there; by default those files still go to the user’s
temp folder (#336).
- There is no completion record for a work order yet. Since 0.100.0 a wrapped
seat replies under its own name: the reply command the wrapper prints for each message
carries
--from <seat>, and the wrapper sets the seat’s AGENTTALK_SELF for the
assistant it starts, so every other agenttalk command the seat runs uses that name too
(#354, fixed). What is still
missing is a completion record, so that a finished work order is never run twice or
lost (#178).
Get started
New here? Give your assistant docs/LEAD-SETUP-BRIEF.md and ask it to set up
agenttalk: it sets up a first team without the supervisor and tells you what only a person can decide.
Once agenttalk is installed, the brief and the other guides for leads are on your machine too. After the steps below, which set AGENTTALK_PY,
& $env:AGENTTALK_PY -I -m agenttalk doctor in PowerShell, or "$AGENTTALK_PY" -I -m agenttalk doctor on Linux and macOS, prints the installed module path, and the brief is docs/LEAD-SETUP-BRIEF.md under it.
To do it yourself, follow the steps below.
Give agenttalk its own Python environment, a folder that keeps its packages separate from your other software.
Open a terminal in a folder outside your project’s code and team folder. The following commands create a new
agenttalk-env folder there, install a released version and install the instructions each assistant reads. If that
folder already exists, choose another name and use it throughout.
Windows (PowerShell):
python -m venv agenttalk-env
$env:AGENTTALK_PY = (Resolve-Path .\agenttalk-env\Scripts\python.exe).Path
& $env:AGENTTALK_PY -m pip install "git+https://github.com/zoolok17/[email protected]"
& $env:AGENTTALK_PY -I -m agenttalk install-skills
If Windows refuses to start agenttalk.exe or pip.exe (a security policy such as Device Guard can do
this, with exit code 4551), keep using the & $env:AGENTTALK_PY -m pip and & $env:AGENTTALK_PY -I -m agenttalk forms shown here.
Ask your assistant to use them too, instead of a plain agenttalk. If Python itself is refused, ask the machine’s administrator.
Linux and macOS (sh):
On Debian or Ubuntu, install the venv package first: sudo apt install python3-venv (on Python 3.14 this brings python3.14-venv).
python3 -m venv agenttalk-env
export AGENTTALK_PY="$(pwd)/agenttalk-env/bin/python"
"$AGENTTALK_PY" -m pip install "git+https://github.com/zoolok17/[email protected]"
"$AGENTTALK_PY" -I -m agenttalk install-skills
AGENTTALK_PY names the Python you just installed agenttalk into. Keep using that Python after you change folders.
In the first terminal, type $env:AGENTTALK_PY in PowerShell or echo "$AGENTTALK_PY" in sh to see its full path.
In each new terminal, set AGENTTALK_PY again to that same full path. Then put its command folder first on PATH,
so assistants that run a plain agenttalk use this environment too. Do this in every terminal before starting an assistant.
Windows (PowerShell):
$env:PATH = (Split-Path $env:AGENTTALK_PY) + ';' + $env:PATH
Linux and macOS (sh):
export PATH="$(dirname "$AGENTTALK_PY"):$PATH"
This also makes python and pip in that terminal the ones in agenttalk-env. If your project has its own Python environment, do not activate it in any terminal where you or an assistant run agenttalk: activating puts that environment’s folder first on PATH, and an older agenttalk installed there would then run instead of this one, against the same team folder. Call the project’s Python by its full path instead, for example & "<project-env>\Scripts\python.exe" in PowerShell or "<project-env>/bin/python" in sh, where <project-env> stands for the full path of that environment’s folder. To check which agenttalk a terminal runs, type (Get-Command agenttalk).Source in PowerShell or command -v agenttalk in sh: the path it shows must be inside agenttalk-env.
The steps below show PowerShell; on Linux or macOS, replace & $env:AGENTTALK_PY with "$AGENTTALK_PY".
Then, in your project’s top folder:
- Name the seats:
& $env:AGENTTALK_PY -I -m agenttalk init --here --agents claude-dev,codex-rev.
- In each terminal, set that seat’s name before you start the assistant, for example
$env:AGENTTALK_SELF = 'claude-dev' in PowerShell, or
export AGENTTALK_SELF=claude-dev in bash or zsh.
- For Codex, read what
& $env:AGENTTALK_PY -I -m agenttalk codex-config --enable allows, then run it.
- Start one assistant and tell it to add itself as the lead. Start the other and tell
it to join as a reviewer and wait for the lead.
- Ask the lead to hand a piece of work to the other assistant for review.
This two-terminal pair is the simplest first try. For a bigger team you still start
only one assistant, the lead. The lead adds the teammates to the roster and writes a
start script that runs each of them in the background, and you run that script once.
Start one agent as a self-guiding lead and
Run a team unattended explain how; the supervisor is an
optional extra on Windows.
Quick setup explains each step. After that, Use
cases shows the shapes a team grows into,
the migration method describes the flagship use,
and the technical reference has the command tables
and the FAQ. For a concept-first introduction, read the new-user
manual.
1. How it works
agenttalk is a small message bus: a shared place where agents leave
messages for each other. You install it with one pip command, set up the
project once, give each terminal an agent name, and the agents can then hand
work to each other and reply; everything else, from team roles to a read-only
web dashboard, is optional. Coding agents that run as command-line tools
(CLIs), such as Claude Code and Codex, use it to talk to each other
directly and work on the same repository, as a pair or as a named team.
The messaging needs no background service and no server: every message
is a JSON file under a project-local .agenttalk/ directory. Each CLI
runs in its own terminal window, so you can watch the whole conversation
as it happens.
Why a bus instead of copy-paste
The default way to get a second opinion from another agent is to copy
a diff out of one chat window and paste it into another, then copy the
review back. agenttalk removes the copy-paste: one agent sends a
message, the other wakes up, does the work, and replies. You stay in
the loop the whole time and can interrupt either side whenever you
want.
Vendor diversity is a review property, not a preference
agenttalk treats “which vendor implemented this” and “which vendor
reviews it” as independent choices. Claude-implements-Codex-reviews
and Codex-implements-Claude-reviews are equally supported, and nothing
about the bus favors either direction. The reason to pair different
model vendors, rather than running two instances of the same one, is
that a reviewer with a different training lineage (a model trained by a
different company) is less likely to share the first agent’s blind spots. The bus is symmetric; which agent
plays which part on a given task is your call.
If you have only one vendor. Some teams have assistants from one AI
company only, and a team with two can lose one for a while, for example
when its allowance runs out. agenttalk’s procedures still give such a
team a defined way to review and merge. Wait for another vendor if the
work can wait. Otherwise ask a second team whose reader is from another
vendor. Otherwise have the work read by a fresh assistant of the same
vendor that had no part in it, backed by checks that no model judges:
the automatic tests and, for a change to code, a test that fails before
the change and deliberately broken versions the tests must catch. Such an approval is
labelled review_independence=same-vendor, and another vendor reads the
work again when one is available. It is never enough for money or paid
spend; security, credentials or privacy; deleting data or another step
that cannot be undone; a release; the settings of the automatic checks
(CI workflows, linters, scanners and secret-scan settings); or this review
rule and the shipped instructions that state it. Those need another vendor’s read, or, for a team with no other
vendor at all, the operator’s recorded approval. The cost is real: a reviewer from the same company
shares more of the builder’s blind spots, so this review is weaker than
one across companies, and the label says so. agenttalk does not enforce
any of this by itself; the lead’s instructions do. The full rule is in
the merge gate.
What it does well that you might not guess
- Review across AI companies catches real bugs. An assistant from a different
company has different blind spots. In this project’s own development, such reviews
regularly find real bugs in work that its author’s checks had passed. In this
project’s own reviews, hundreds of passing tests still missed concrete problems that
a careful reviewer found.
- A lead insists on a fresh GO for the exact commit. When a lead follows
agenttalk’s lead instructions, it merges only on a GO that names the exact commit
being merged; a GO for an earlier commit does not count, so a later change needs a
new review. agenttalk does not enforce this for every review: a quick review need
not name a commit, and agenttalk cannot stop a person’s own merge command. The release
check (
agenttalk dev-gate) also ties its evidence to the commit it tested.
- A restarted assistant can carry on. After a restart, the wrapper
(
agenttalk wrap) tries to resume the assistant’s own session. When that session
cannot be used, for example because it is missing or damaged, or after a change of
model, it starts a fresh session instead. Either way the assistant’s open requests
are on the bus. A checkpoint (agenttalk checkpoint save, run by the assistant or a
hook) also records what it was working on before its conversation history gets
trimmed to make room: its open threads, its git state and how full its memory was.
That is not its whole conversation, only what it needs to find its place.
- Lessons come back as reminders. When the team learns something the hard way, an
assistant publishes it as a lesson in a shared store (
agenttalk knowledge). Once a
curator, a person or seat trusted to review lessons, has accepted it, it can come
back by itself: a wrapped seat (one the wrapper runs, turn by turn) gets up to five
selected lessons that match its task, and a seat run by hand sees them through
agenttalk sync. They are reminders;
they make it less likely that the next assistant repeats the mistake, but they do not
prevent it.
What grows around that core
The two-agent handoff is the whole essence, and it stays simple: one agent
hands work to another and waits for the answer (send/reply, or the
/agenttalk.handoff skill). Everything past that is optional, added as a
pair grows into a team or starts running unattended: named teams and roles,
safety checks before anything risky, a supervisor that restarts crashed
assistants, a register of who owns which part of the code, a shared memory
for lessons, and a read-only dashboard for watching it all.
Optional features at a glance in the
technical reference describes each one, and the command tables there list the
actual commands.
Local-first: what reaches the network
The bus itself makes no network calls: messages are files on disk. Your
agent CLIs (Claude Code, Codex) keep talking to their own model providers,
as they would without agenttalk. These are agenttalk’s built-in network
integrations, and when they connect:
- DEFAULT: none. The bus, the dashboard and the supervisor open no
outbound connections.
- OPT-IN, the managed model gateway (
agenttalk gateway): while it is
installed and running, it sends gateway-backed agents’ model calls to
OVH AI Endpoints at https://oai.endpoints.kepler.ai.cloud.ovh.net/v1.
- OPT-IN, the contributor check
agenttalk dev-gate (this project’s
CI runs it too): when you run it, it installs the package it built
locally, fetching that package’s dependencies and the test tools from
the Python package index (https://pypi.org/simple), downloads the live
Semgrep rule sets p/python and p/security-audit
from the Semgrep registry, and checks dependencies against the PyPI
advisory database through pip-audit.
- OPT-IN, the assurance tool (
python -I -m agenttalk.assurance): the
OSV vulnerability database (through osv-scanner), the PyPI advisory
database (through pip-audit) and remote Semgrep configurations are all
off by default; each runs only when the scan profile’s network_allowed
setting lists that tool. A release-profile scan also builds the
package with python -m build. That build is not gated by
network_allowed: it can download the project’s build backend from the
Python package index even when network_allowed allows nothing.
Commands you configure yourself, such as the assurance tool’s test,
coverage and tool commands or a project’s build backend, can reach
anything, and network_allowed is not an operating-system network
sandbox.
The bundled dashboard binds to loopback only (it listens only on this
computer) and has no flag to expose it — reach it from another machine
over an SSH tunnel if you need to, not by opening the port. The dashboard also answers
requests addressed to a loopback address (for example 127.0.0.1, localhost or [::1]) with the
dashboard’s own port; an omitted port means 80. Anything else gets a 403. A request with no Host header,
with more than one, or with one that is not exactly a host and an optional port gets a 400, and so does a
malformed full-URL request target. A full-URL target (GET http://host:port/...) is checked the same way for
every request type. This stops a web page from reading the dashboard through DNS rebinding. With an SSH
tunnel, use the same port number on both ends (-L 8765:127.0.0.1:8765).
Where agenttalk keeps its files, including the few it keeps outside your
project, is listed under Where agenttalk keeps files
in the technical reference.
What stays on your machine
- The team’s records are files in your project. Messages, the team roster, open
requests, decisions and lessons live in the project’s
.agenttalk/ folder. A few
things live in per-user folders on the same computer: signing keys, backups,
supervisor logs, the optional turn journal and the optional gateway’s files, and
agenttalk codex-config --enable adds a block to Codex’s own settings file.
Where agenttalk keeps files lists them, which matters
when you back up or move a project.
- agenttalk itself sends nothing over the network by default. Your AI assistants
keep talking to their own companies, as they would without agenttalk. Three optional
parts use the network when you turn them on: the managed model gateway, the project’s
own build-and-test check and the assurance scanner. What reaches the
network says exactly what each one contacts.
- No server and no account, but an unattended team needs more than the bus. The
messages need nothing running in the background. A team that keeps working while you
are away also needs:
- the wrapper (
agenttalk wrap --loop), which hands each assistant its messages one
turn at a time and tries to keep its session;
- a start script that starts each wrapped assistant once, in the background. agenttalk
does not ship one; Run a team unattended shows what it
contains;
- the lead’s timers, which remind it to check on the team and to write a handover
note. They live in the lead’s own interactive session;
- optionally, the supervisor, an independent watcher that restarts an assistant
after a crash or an outage. It runs on Windows only today;
#356 tracks a monitor for Linux
and macOS, and the supervisor tutorial explains how
to start it.
What agenttalk is not
-
Not a model. The bus doesn’t choose or run a model and has no
opinion on which model a CLI uses — it moves messages between whatever
agent CLIs (the assistants’ command-line programs) you start. The intelligence is entirely in the agents; the
bus just lets them talk. The one model-specific part is the optional
managed gateway, which supports a single route, pinned in code: OVH AI
Endpoints with the Qwen3.8-27B model. It refuses any other address or
model.
-
Not an IDE plugin (an add-on for a code editor). There’s no editor
integration to install. agenttalk is a CLI-level bus, used from the
command line: it works with whatever terminal or editor-embedded terminal
you already run your agent CLIs in.
-
Not a hosted service. No account, no server to sign up for, no
cloud component. agenttalk’s own files stay on your own machine: the
coordination store in your project’s .agenttalk/ directory, and the
per-user files listed under Where agenttalk keeps
files.
-
Not a task queue. There’s no central scheduler deciding what
runs next; agents decide what to do and message each other about it.
If you want an explicit “what’s next” driver, pair agenttalk with a
planning/work-breakdown tool of your choice — agenttalk carries the
wake signal, the planning tool remains the source of truth for state.
-
Not a replacement for git. No agenttalk command merges work into
your main branch; that merge is done outside agenttalk, with git or your
code host. Some optional features do create branches or commits:
- Lanes. By default,
lane assign creates a branch and a working
folder (a git worktree) for one piece of work; an advisory lane assigned
with --advisory --no-worktree --worktree-waiver-reason <reason> creates
neither. lane abandon ordinarily removes that
folder if it is clean and idle, and keeps the branch unless you add
--delete-branch and git confirms the branch’s work is already in the
target. Even then, it keeps the branch while any other checkout still has
it checked out. lane gc --delete is a separate cleanup with its own checks.
- The cleanup tool’s apply mode (
agenttalk janitor --apply). It can
stage every change in a worktree, new files included, and save it as a
commit on that worktree’s branch, to preserve the work before cleaning up.
lane and domain gate who may deliver what, using git diffs as
evidence; they don’t perform the merge.
-
Not a multi-machine system. Both agents are expected to share one
project directory on one machine (or a directory synced by a
mechanism you already trust). There’s no transport, no server
process, and no attempt to solve distributed consensus (keeping copies on
several computers in agreement).
2. Quick setup
Install (tag-pinned)
Follow Get started to create a private Python environment and install agenttalk and its skills.
Use that same Python in every terminal. The examples below shorten the command to agenttalk; write
& $env:AGENTTALK_PY -I -m agenttalk in PowerShell or "$AGENTTALK_PY" -I -m agenttalk on Linux and macOS.
The install command pins a released tag (@v0.106.0 in Get started), rather than a branch: commands and the message
format can change between releases, and a tag keeps every agent in a project on the same version.
The install-skills command installs the skills, the instructions each agent CLI
reads to use agenttalk. It writes Claude Code’s bus commands under
~/.claude/commands and Codex’s under ~/.codex/skills, and the
dev-discipline pack (the devkit) under both ~/.claude/skills and
~/.codex/skills. --claude-only and --codex-only choose which
side gets the bus commands; the devkit still goes to both sides unless
you add --no-devkit, so --claude-only --no-devkit installs Claude
Code’s bus commands and nothing else. --devkit-only installs only the
devkit, and --dry-run previews without writing.
When you upgrade an existing install, a plain agenttalk install-skills
leaves alone every skill file that differs from the new version, so
updated skills would not arrive. Preview with
agenttalk install-skills --dry-run --force, back up any local edits you
want to keep, then run agenttalk install-skills --force.
Initialize a project
Do this once per project, from the project’s top folder. Name the agents
you will run, one per terminal; use real names rather than the default
claude and codex (the next section explains why):
agenttalk init --here --agents claude-dev,codex-rev
agenttalk codex-config --enable # see "Let Codex call agenttalk" below
init --here is shorthand for init --path .; it writes
.agenttalk/config.json with the roster you named.
A one-window project is valid too: initialize with a single agent name
and add peers later with agenttalk roster add.
Give each terminal its identity
Every agenttalk command needs to know which agent it’s running as.
Set AGENTTALK_SELF in each terminal before starting the CLI, so
every bus command that CLI runs (directly or through a skill) resolves
to the right identity automatically:
# Terminal A (PowerShell)
$env:AGENTTALK_SELF = 'claude-dev'
claude
# Terminal B (PowerShell)
$env:AGENTTALK_SELF = 'codex-rev'
codex
# Terminal A (bash)
export AGENTTALK_SELF=claude-dev
claude
# Terminal B (bash)
export AGENTTALK_SELF=codex-rev
codex
This matters even for the self-guided flow below: an agent that “picks
its own name” still needs AGENTTALK_SELF set in its terminal (or an
explicit --from <name> on every bus command it runs). Without either, a
bus command run directly stops with “no agent identity” (exit code 2).
The bundled skills behave differently: when AGENTTALK_SELF is unset they
use a default name, claude in Claude Code and codex in Codex. If the
roster has an agent of that name, the skill’s messages go to or from that
agent with no error. agenttalk init prints this same reminder after it
runs; don’t skip it.
Let Codex call agenttalk
agenttalk codex-config --enable writes a per-project block into
Codex’s own ~/.codex/config.toml:
trust_level = "trusted"
approval_policy = "never"
sandbox_mode = "workspace-write"
This is broader than just agenttalk: it removes Codex’s approval
prompts for every command it runs in this project, not only bus
commands, and grants workspace-write sandbox access. Without it, Codex
prompts for approval on each agenttalk invocation, which breaks
unattended listen loops. Consent to this knowingly — check the current
state with agenttalk codex-config --status, and undo it with
agenttalk codex-config --disable (this keeps trust_level, only
clearing approval_policy/sandbox_mode).
Start one agent as a self-guiding lead
You don’t have to pre-declare a roster or learn commands to get the
first agent onto the bus. Start a fresh CLI — with AGENTTALK_SELF set
in that terminal, as above — in the project root and tell it, in plain
language:
We use agenttalk in this project. Add yourself as the human-facing
lead, then check whether the team is up and running.
The agent reads its bus skill, picks a name (matching the
AGENTTALK_SELF you set, or its own choice if you left it unset —
which the identity note above explains why to avoid), runs agenttalk roster add <name> --role lead and agenttalk roster set-operator-facing <name> (so it becomes the one agent you talk to, and the one
escalations route to), then runs agenttalk roster / agenttalk status / agenttalk sync to see who else is online. From there it
coordinates the rest of the team on your behalf.
You do not have to set up each teammate by hand. You start one
assistant, the lead, and ask it to set up the team. It adds each teammate
to the roster (agenttalk roster add) and writes a start script that runs
each teammate through the wrapper, in the background. You run the script
once; Run a team unattended shows what it contains.
You watch the team in the read-only dashboard, agenttalk dashboard, which
runs only on your own computer. This works on Windows, Linux and macOS. On
Windows with PowerShell 7 you can add the supervisor as well, an optional
watcher that restarts a seat after a crash: the lead writes its settings
(agenttalk supervise --init writes a starting .agenttalk/supervisor.json
whose placeholders the lead renames to the roster names and fills in for each
teammate, then checks with agenttalk supervise --bootstrap-check) and you
start it with the PowerShell command in
the supervisor tutorial. The supervisor then
starts the seats in its settings itself, so the start script is not needed for
them. The two-terminal pair in the next section stays the simplest first try.
Add a second agent of another vendor
Open a second CLI — from the other vendor, so the two agents don’t
share a training lineage, with AGENTTALK_SELF set in that terminal —
in the same project root and tell it:
We use agenttalk in this project. Add yourself to the roster as a
developer using the name already in your AGENTTALK_SELF, then wait
for the lead to contact you.
It runs agenttalk roster add <name> --role developer, then drops into
listen mode: /agenttalk.listen on Claude, $agenttalk-listen on
Codex. Roles are free-form labels — developer, reviewer,
tester, or anything else you name works; the CLI doesn’t special-case
any particular string.
If you’d rather wire this up yourself instead of talking the agents
through it:
agenttalk roster add claude-dev --role developer
agenttalk roster add codex-rev --role reviewer
agenttalk roster
If a CLI was already open when you ran agenttalk install-skills,
restart it — skills are loaded at startup, so an already-running
session won’t see newly installed ones.
First review round
With both agents up, ask the lead (or either agent directly) to hand
off a piece of work and block on the reply. On Claude:
Implement , then use /agenttalk.handoff to send it to
for review.
On Codex, the equivalent skill is hyphenated: $agenttalk-handoff.
Both wrap the same underlying commands — Claude’s dotted names
(agenttalk.send, agenttalk.listen, agenttalk.handoff, …) and
Codex’s hyphenated names (agenttalk-send, agenttalk-listen,
agenttalk-handoff, …) are two spellings of identical behavior.
Under the hood this is one agenttalk send --kind review-request (or
the handoff skill, which wraps send and then waits) from the
implementer, a wake for the reviewer’s listen loop, and an agenttalk reply back. Watch both terminals — each shows the full exchange as it
happens, since send prints to the sender’s stdout and the receiver’s
wait prints the same message on the other side.
To check in on a rejoined or idle session without re-explaining
context, run:
agenttalk roster
agenttalk status
agenttalk sync --for <agent>
sync summarizes roster identity, open request threads, unread
traffic, and deterministic next-action hints — it’s the fastest way
for an agent (or you) to answer “what’s outstanding right now.”
Run a team unattended
In plain words. A team keeps working while nobody watches when two things are in
place. Every assistant runs in the background through agenttalk’s wrapper, started once
by a small script, and the lead keeps two timers that remind it to look after the team.
This works on Windows, Linux and macOS. The supervisor is an optional extra on top.
What this does not do: a seat that crashes, and every seat after the computer restarts,
stays stopped until a person starts it again with the start script (on Windows, the
optional supervisor can do that instead). And if the lead’s own session closes, its
timers go with it, so nobody is reminded to look after the team.
Before you leave a team alone, know one limit: agenttalk does not prove who sent a
message. A seat accepts a work order when the message names the lead or the
operator-facing seat as its sender, and any seat on the team can write such a message.
Message signing (agenttalk hmac-init) shows when a message file was changed by someone
who cannot read the key, but every seat run by the same user can read that key, so
signing cannot tell one seat from another. Put only assistants you trust on one team,
and give each one only the permissions its work needs.
-
A start script. agenttalk ships none; the lead writes one for your team, and a
person runs it once. It starts the teammates only: the lead already runs in your own
session (step 2), and a second process under the lead’s name would read the same
mailbox. For each teammate it starts the wrapper in the background, from that seat’s
own folder:
agenttalk --root <project> wrap --for <seat> --cli <claude-or-codex> --loop -- <command that starts the assistant>
For example, on Windows (PowerShell, no window):
Start-Process -FilePath agenttalk -WorkingDirectory '<seat-folder>' -WindowStyle Hidden `
-ArgumentList '--root','"<project>"','wrap','--for','claude-dev','--cli','claude','--loop','--','claude','--permission-mode','<mode>'
Keep the double quotes inside the single quotes around the project path:
Start-Process joins the list with spaces, so a path with a space in it would
otherwise break apart.
On Linux or macOS (bash):
(cd '<seat-folder>' && nohup agenttalk --root '<project>' wrap --for codex-rev --cli codex --loop -- codex -a never -s workspace-write -c "sandbox_workspace_write.writable_roots=['<project>/.agenttalk']" > /dev/null 2>&1 &)
This line sends the wrapper’s console output nowhere, as the hidden window does on
Windows; if you keep it in a file instead, rotate that file, because it grows without
limit. A Codex seat whose bus lies outside its own folder must be allowed to write the
bus’s .agenttalk folder, as writable_roots does here; otherwise it receives its
work but cannot reply. Add any other folder the seat must write to the same list.
An unattended assistant cannot answer a permission question, so choose what each
one may do on purpose: the words after -- are the assistant’s own command and its
permission settings. Start each seat once: two wrappers for one seat read the same
mailbox. On Linux and macOS a wrapped Codex seat also needs
"reply_shell": "bash" (see what you need).
-
The lead’s timers. The lead runs as an ordinary interactive session that you
start and leave open, not through the wrapper. That session holds its timers: a
wrapped seat starts its assistant afresh for each message (a Claude Code seat as a
one-shot claude -p that exits again), so a timer set there never fires. The lead
keeps two timers: a check-in, for example every 30 minutes, and a handover note, for
example every two hours. In Claude Code these are scheduled prompts (/loop 30m and
/loop 2h with the routine as the prompt; the lead’s instructions describe both).
They live only in that session and lapse after about seven days, so renew them before
then and after every restart of the lead: ask the lead to list its scheduled tasks
and re-create the ones that are missing, replacing a timer rather than adding a
second one. A Codex lead has
no built-in timer; an operating-system scheduled task that reminds it does the same
job. agenttalk does not keep these reminders itself yet.
-
Stopping a seat. Stop a seat between turns with
agenttalk release --from <relay> --to <seat> --relay-human -m "<the decision>",
where the relay is the operator-facing seat (or the lead when the team has none),
never by killing its process. If the supervisor runs, put its kill switch in place
first, or it starts the seat again
(Operations guide).
-
Optionally, the supervisor. It watches from outside and restarts a seat after a
crash or an outage, within a restart budget. Its scheduled task also starts when you
log on, so after the computer restarts it brings back the seats in its settings once
someone logs on. Without it, a crashed seat stays down until someone runs its line of
the start script again. It needs Windows and PowerShell 7 today
(#356 tracks Linux and macOS);
the supervisor tutorial explains how to start it.
Leads that report to a lead
One team, meaning one project’s .agenttalk/ store, has one lead: making a second
seat the lead removes the role from the first. It also has at most one
operator-facing seat, set with agenttalk roster set-operator-facing <seat>: the
seat that speaks for the person. Escalations go to it, it may hand out work orders, and
when a team has one, only it can relay a person’s decision to stand a seat down. A
chain of leads is built from that rule:
- Inside one team, a separate liaison seat can talk to the person while the lead
runs the work (the split-identity setup).
- Across teams, each team has its own project and its own lead. For a team whose
lead reports to another lead, add the upper lead to that team’s roster and make it
that team’s operator-facing seat. Escalations from that team then go to the upper
lead, and only the upper lead can relay a stand-down there. The upper lead works in
that team’s store with
agenttalk --root <that team's folder> ... on the same
computer, and its own check-in must cover that team: nothing in its own team’s store
tells it what happens in the other one.
- Only the top of the chain talks to the person. A person’s decision reaches a lower
team through the leads above it; a message that only claims to carry one is data, not
a decision.
What’s next
This covers a working pair with one review round. For fan-out to a
whole team, unattended 24/7 operation, shared ownership over repo
areas, and the full command reference, see Use
cases and the Technical
reference.
3. Use cases
Four shapes cover most projects that adopt agenttalk. Each is a
starting point, not a fixed track — teams mix and match as the work
changes.
Ad hoc: a quick implement-then-review loop
The smallest useful shape: one agent implements, another reviews, no
pre-declared roster. Tell a fresh CLI the minimal-start
instructions, or
wire it up directly:
agenttalk roster add claude-dev --role developer
agenttalk roster add codex-rev --role reviewer
Then hand off with /agenttalk.handoff (send + block on reply) or
/agenttalk.consult (confer with the peer before answering you), and
let the reviewer’s /agenttalk.listen loop pick it up. This is the
right shape for a single feature, a bug fix, or any task where you
don’t need named teams, gates, or unattended operation — just a fast,
observable second opinion from a different model vendor.
Migrating an old codebase (the flagship use case)
agenttalk was built for exactly this: a legacy codebase nobody fully
trusts yet, worked by more than one agent over more than one session,
where the risk isn’t writing code — it’s writing code against a wrong
belief about what the old code does.
Three features compose for this:
agenttalk onboarding is a durable ledger for the first pass:
agents record which segments of the codebase they read, claims they
believe (with evidence pointers), drift between docs and actual
behavior, and open unknowns — optionally marked --blocking so a
migration step can’t quietly proceed past an unanswered question.
This is evidence capture, not an analyzer: it doesn’t decide what’s
true, it makes sure disagreements and gaps are visible instead of
silently assumed away.
agenttalk domain turns “who owns this part of the legacy tree”
into a checkable registry instead of tribal knowledge, so a second
agent joining mid-migration can ask domain check-path instead of
guessing.
agenttalk lane gates delivering a change against that
registry: a lane is a scoped assignment (a domain subset, a base
SHA, a target ref), and lane check computes the actual diff,
checks it against domain bounds and other active lanes, and runs a
real merge check — HOLD or GO, never an inferred “probably clean.”
Today lanes need the bus folder inside the code repository: with the
bus elsewhere, lane assign cannot resolve the branch to start from,
and knowledge notes anchored to a file path are marked stale at once
(#245).
A fourth command, agenttalk comprehension, gives a migration
surface accounting instead of a guess: comprehension scan builds a
local, offline, immutable inventory of the repository by feature and
unit, and comprehension report/status query one run at a time.
Feature and unit ids are deterministic hashes over each item’s kind,
path, and qualified name — not run-specific — so rescanning the same
paths is directly comparable: an unchanged file re-derives the same
id, and the diff between two runs’ id sets shows which ids appeared or
disappeared — not what changed inside them, since no content goes into
an id, only kind/path/name. A file move, a package or class rename, or
a framework change re-keys every id derived from it, so a real stack
migration’s diff reads as removals and additions you pair up yourself,
not silent reappearance — explain each one, the same way section 4
already treats a rename or split (see
§4). Set equality is surface
accounting, not behavioral evidence; it says nothing about whether a
feature still works. (A built-in cross-run comparison command is not
yet shipped — you diff the two runs’ id sets yourself today.)
Together, this gives a migration a paper trail: what was read before
it was changed, who owns the part being touched, a deliver gate that
composes with close/gate review evidence instead of trusting a
change is safe because nobody objected, and a surface-level accounting
of what moved, was added, or was removed. See Technical
reference for the full command
tables, and §4 for the method in
full.
Greenfield: spec, plan, build, with review from round one
For a new project, there’s no legacy-belief risk to guard against, so
the emphasis shifts to keeping a growing team’s roles straight from
the start, and getting review into the loop before the first feature
lands rather than after. Wire up roles directly:
agenttalk init --here --agents claude-dev,codex-dev,claude-rev,codex-rev,claude-lead
agenttalk roster set-role claude-dev developer
agenttalk roster set-role codex-rev reviewer
agenttalk roster set-group devs claude-dev,codex-dev
agenttalk roster set-group reviewers claude-rev,codex-rev
agenttalk roster --json
Route implementation handoffs to a reviewer that didn’t write the
code (fresh review), and use agenttalk broadcast --to-group reviewers --kind question for anything the whole review group should weigh in
on. A domains.json is worth authoring early here too — it’s cheap to
write against a codebase you’re still designing, and it means the
lane deliver-gate is available from the first PR instead of being
retrofitted later.
Operating an existing project day to day
Once a project is past its initial migration or greenfield push, the
steady-state pattern is mostly agenttalk sync and agenttalk status
at the start of a session, ordinary handoffs for day-to-day changes,
and agenttalk gate / agenttalk close around anything release-shaped.
For a project that needs to keep working unattended — overnight,
across an outage, or simply longer than you want to watch a terminal —
run every seat through the agenttalk wrap progress wrapper, started by
a start script, so agents try to resume their session context instead of
starting over; when a session cannot be resumed, the wrapper starts a
fresh one. Run a team unattended shows the
script, the lead’s timers and the optional supervisor. The reply
command the wrapper prints for each message carries --from <seat>, and the
wrapper sets the seat’s AGENTTALK_SELF for the assistant it starts, so every
other agenttalk command the seat runs uses that name too and a seat’s reply
goes out under its own name, gateway-backed (ovh-qwen) seats included; no
setting is needed for that since 0.100.0
(#354, fixed; a completion
record, so that a finished work order is never run twice or lost, is still open,
#178). A team that runs
while you are away also needs the lead’s timers, which remind it to check on
the team. See docs/supervisor-tutorial.md for
the optional supervisor, and Technical
reference for the assurance-gate
command tables.
4. In depth: how a migration works
This section is for a team planning a migration of an existing application.
It explains how to preserve behavior while changing the stack beneath it.
For the method itself, read the migration playbook first.
It collects what our own practice migrations taught, in seven stages, each rule with why it
matters and how to check it, and starts with the twelve rules to apply first.
A migration needs more than a successful build on newer dependencies.
You need an account of what existed, what changed, and how each claim was checked.
Agenttalk helps the team share that account and coordinate independent work.
The team remains responsible for the measurements and the release decision.
Start with a map of the application
Before changing a legacy application, freeze an identifiable baseline revision.
Capture the application surface while its original behavior is still available.
Keep the source revision, scan inputs, and extraction limitations with the map.
Three inventories answer different questions:
| Inventory |
Question it helps answer |
| Features |
Which user-visible capabilities must survive? |
| Entry points |
Where can requests, jobs, messages, or other inputs enter? |
| Calls and dependencies |
Which collaborators and data operations does the code rely on? |
The comprehension producer supplies a bounded static inventory for supported inputs.
It records candidate features, recognized entry points, and coarse dependencies.
It also exposes exclusions, unsupported shapes, and unresolved relationships.
The team supplements those results where the application exceeds the adapter’s scope.
A feature inventory is not automatically a complete list of business capabilities.
A static call inventory is not a complete runtime call graph.
Scheduled work, framework binding, and indirect calls need particular care.
Read the comprehension limitations
before treating an empty result as proof that a mechanism does not exist.
At each slice close, capture the integrated revision again.
Compare the feature and entry-point identities with the baseline identities.
Equal totals alone are insufficient: one removed feature can hide behind one addition.
Compare the actual sets and explain every addition, removal, rename, or split.
Byte-identical sorted identity lists establish equality of those lists.
They support a claim that the captured surface remains accounted for one-to-one.
They do not prove that each feature still behaves correctly.
Behavioral tests and independent review supply that separate evidence.
Keep comparisons meaningful by recording scope and extractor versions.
A changed parser can alter an inventory even when application code is unchanged.
Keep source-byte identity separate from normalized inventory identity.
Capture metadata can differ between two scans of the same source.
The team performs the cross-revision reconciliation as part of this method.
Automatic multi-run fact comparison and richer runtime joins are planned
but not yet tracked by a dedicated issue. The
comprehension design
describes those boundaries; its proposed surfaces are not an implementation checklist.
The current Java extraction layer has documented parsing and binding limits.
Its parser replacement is planned in
the extraction upgrade.
A scan completing does not erase those limits or certify migration readiness.
Measure a baseline before changing behavior
The baseline register connects the inventory to observations.
Each in-scope behavior gets a reproducible case before the implementation changes.
Include failure behavior, not only successful requests.
Useful cases cover responses, authorization decisions, persisted values,
session transitions, scheduled work, and interactions with external systems.
Choose the cases from the application’s actual entry points and call sites.
Record what remains unmeasured instead of giving it an implied pass.
Each register entry identifies the behavior, revision, input, and expected result.
It links the observed result to retained evidence.
It also names the owner of any unresolved decision.
Keep original observations when later measurements supersede them.
An appended correction explains why the current interpretation changed.
Deleting the earlier result would hide the path by which the team learned it was wrong.
“Pre-existing” is a measured attribution, not an excuse or a guess from a diff.
Run the same probe at the migration base and the candidate revision.
If the mechanism is older, also run it at the original application baseline.
Quote the revision and result beside the attribution.
Positive controls matter when comparing different generations of a stack.
A login that fails because an old driver cannot query a new server
does not prove that the old authorization rules safely deny an attacker.
Record the incompatibility separately from the permission being tested.
When a compatible historical environment is required, identify that qualification.
When the older implementation lacks the mechanism, report the comparison unavailable.
A skipped case or a compilation failure is not a passing behavioral baseline.
An inherited defect still needs a fix or an explicit owner disposition.
Turn guardrails into a living contract
Guardrails state the boundaries within which the migration may run.
They cover source identity, test isolation, data ownership, evidence, and cleanup.
They also identify actions reserved for the operator.
Give each rule a stable identifier, a reason, and a way to check it.
Link an incident to the rule that prevents its recurrence.
A rule without an observable check is easy to repeat and difficult to enforce.
Keep related rules together:
| Family |
Evidence the team needs |
| Source identity |
The exact revision and any temporary probe changes |
| Test sensitivity |
A known fault makes the intended assertion fail |
| Environment isolation |
Owned services, fresh data, and identified toolchains |
| External effects |
Network boundaries and actions that remain prohibited |
| Artifact integrity |
Fresh outputs and comparisons against recorded inputs |
| Cleanup |
Owned processes stopped and temporary work accounted for |
The register carries project-specific measurements.
Reusable documentation explains the method without carrying client identities,
private machine details, account names, or internal work identifiers.
Generated structure can also be sensitive even when it contains no source text.
The development methodology
explains the reasoning behind mutation checks, cold reads, and retained limitations.
These practices require explicit execution records.
Describing a practice does not prove that a particular run followed it.
Prove that the tests can detect the fault
For a defect fix, first demonstrate the failure with a focused behavioral case.
Apply the fix and demonstrate the expected result.
Then temporarily remove the mechanism that makes the fix work.
The associated assertion must fail for the intended reason.
A compilation error or an unrelated connection failure does not validate that assertion.
Restore the mechanism and confirm the case passes again.
Target the decision being protected, not merely a nearby line of code.
Removing a compare-and-set condition should expose a stale writer in its own case.
Two threads serialized by a shared lock cannot establish a multi-process guarantee.
The test must create the competing history that the mechanism is meant to reject.
Inspect the inputs that cross a test seam.
A fake database that ignores its query can keep passing after a filter is removed.
An assertion about an exit status can miss a false statement in the result payload.
Check the decision, its data, and the positive controls together.
Keep the mutation, command, observed failure, and restored result together.
That record lets another reviewer reproduce the claim without trusting its author.
Small deterministic cases make later fix rounds cheaper to verify.
Build slices that can be closed independently
A slice is a bounded change with a defined acceptance bar.
Its steps have owners, dependencies, and concrete proof obligations.
Separate a database compatibility question from an application rewrite when possible.
Separate a source change from the deployment action that may eventually use it.
Authors work in isolated branches or workspaces.
Each proof travels with an identifiable revision and its evidence.
The lead integrates the reviewed steps into one candidate revision.
Integration is another boundary to test.
Passing step branches do not establish that their combination is correct.
Shared configuration, dependency resolution, and initialization order can change there.
Even a final configuration value or packaging edit belongs in the reviewed diff.
Before a long run, the worker sends a checkpoint with the actual inputs.
The checkpoint identifies the revision, environment, planned check, and evidence location.
It is a progress record, not a result.
The worker retains the exit status and delivery receipt when the work finishes.
Keep the acceptance bar and the cold sweep separate
The acceptance bar repeats the agreed checks against the integrated revision.
It can cover clean builds, tests, packaged contents, and isolated smoke checks.
It answers whether the candidate satisfies the contracts already encoded in that bar.
The cold sweep starts from the same frozen revision with a different question:
which claims or failure paths has the team not adequately tested?
The reviewer reads the diff and runs independent probes without an expected verdict.
Use a different model vendor to add another source of independent judgment.
Keep the reviewer separate from the author of the affected change.
Provide scope and safety constraints without leading with the implementer’s conclusions.
Withhold the other review’s verdict until both independent records are complete.
Model diversity supports independence; it does not replace evidence.
Record the acceptance result and the cold-sweep verdict side by side.
A green bar can coexist with a rejected sweep because they test different claims.
For example, an existing suite may pass while a new stale-state probe exposes a fault.
When that happens, retain both results and reopen the affected slice.
Assign each finding a fix, an owner decision, or a justified residual disposition.
Reintegrate the fixes and repeat the affected probes at the new revision.
Recheck the acceptance bar required by the changed scope.
A release remains a separate authorized action.
The assurance policy explains the project’s release evidence
and review requirements in more detail.
Neither a scan nor a favorable review is permission to deploy.
Record which way each error points
Severity and direction answer different questions.
Severity describes the impact; direction describes what the system gets wrong.
Record both when deciding whether a finding blocks the slice.
| Direction |
Example consequence |
| False grant |
A caller receives access it should not have |
| False completion |
Work is marked finished before its effects succeed |
| False classification |
Stale state causes the wrong transition |
| Refusal or unknown |
The system visibly declines to make an unsupported claim |
A visible refusal still has an availability cost that needs an owner.
It is different from silently returning a confident but false result.
Renew accepted limitations by measurement at the current close.
Retire them with evidence rather than quietly removing their register entries.
Route models deliberately
One concrete fleet pattern uses a mid-tier model for workers, a
stronger model for the reviewer, and a different vendor at its highest
reasoning effort for the closing cold sweep on each slice. This is a
selected operating profile, not an agenttalk-enforced default — see
the routing table in the agent operating manual
for concrete model/effort choices.
Keep the model profile stable enough to preserve useful working context.
Change effort when the task’s risk or observed difficulty warrants it.
Do not turn routine coordination into an expensive review task by defau
README 内容过长,已截取前 64 KB。完整内容请前往 GitHub 仓库查看。
评论