Separate worktrees. Shared context. One screen.
Run several coding agents at once and know who owns what.
Every claim, handoff and refusal is recorded, attributed and visible.
See it · Install · Run · Enforce · Filter · Providers · Docs · Limits
See it
Launch a lane, see who owns what, watch every lane at once, narrow to one provider, and watch a hook refuse a branch switch inside an assigned lane.
One screen for every lane: session state, branch drift, issues owned, handoffs
pending, unread mail, held reservations, delivered context, and what enforcement
denied. Read-only, no model call, q quits.
Every frame on this page is real command output from a demo project. Only the state and project paths are shortened.
Install
Linux or macOS, Git, and uv. No clone. The wheel needs no third-party runtime packages.
uv tool install agent-parley
# to track the default branch instead:
# uv tool install git+https://github.com/suneel944/agent-parley
Then add the plugin to whichever CLI you drive. One marketplace serves both.
claude plugin marketplace add suneel944/agent-parley
claude plugin install agent-parley@agent-parley
codex plugin marketplace add suneel944/agent-parley
codex plugin add agent-parley@agent-parley
The plugin carries the shared coordinate skill, so an agent can read
coordination state, claim an issue and hand work off in its own words. It is deliberately
skill-only: the launcher supplies MCP configuration and lifecycle hooks per
session, and it is also what creates the worktrees and runs the coordination
service. The plugin alone gives an agent the skill and nothing to coordinate
through.
For a pinned, checksummed install, take a wheel from Releases instead.
Run it
From a committed, clean checkout, one terminal per agent:
# Terminal 1
agent-parley run claude
# Terminal 2
agent-parley run codex
That is the whole setup. The first run registers the repository, creates that participant's worktree and branch, starts the coordination service, and hands you the native CLI. Prompt it exactly as you always do.
A new name creates its own lane, so a second account of the same provider, or another provider, is one more terminal:
agent-parley credentials add account-2 --config-home ~/.claude-account-2
agent-parley run claude-2 --provider claude --credentials account-2
Then watch the work:
agent-parley status # ownership, activity and reported results
agent-parley top # every lane live, including what enforcement denied
Steer one lane without taking over its terminal:
agent-parley say claude-2 "Rebase onto main before you open the pull request."
The message lands in that lane's inbox beside peer traffic, so the agent reads
it at its next checkpoint. It comes from operator, a command-line identity: no
participant can be named operator, and no MCP tool sends as it, so an agent
cannot write in its name. Repeating the same message delivers nothing further,
and --ack asks the lane to acknowledge it.
When a lane's work is ready, integrate it from the base checkout:
agent-parley participant merge claude-2
It always records a merge commit, refuses on a running session, a dirty tree or a drifted lane, and leaves a conflict in place for you to resolve. It never resets, cleans, stashes or force-switches.
To see what that would bring in, and everything that would refuse it right now, ask for a preview first:
agent-parley participant merge claude-2 --preview
The preview only reads. It changes nothing, and it never takes the lane's session lock, so it is safe while that agent is still working. It attempts no merge, so it cannot predict conflicts.
A repository can also require its own command to pass before any merge. The command is recorded in coordination state, not in the repository:
agent-parley verify set 'make check' # require it from now on
agent-parley verify show # report what is required
agent-parley verify set '' # remove the requirement
With one configured, participant merge runs it in the base checkout first and
refuses the merge on a non-zero exit, reporting the exit status and the tail of
the output. It runs as an argument list, never through a shell, and no flag
skips it. It reports the base checkout as it stands before the merge, which is
not a claim about the merged result.
Or send it for review instead:
agent-parley participant pr claude-2
That pushes the lane's branch and opens one pull request whose body is the
lane's own recorded report, under the headings your pull-request template asks
for, referencing the issue the lane claimed. It opens assigned to you and
labelled from that issue, so it arrives owned and classified rather than needing
repair. It uses your own gh sign-in, refuses when there is no report, no
claimed issue, no change type on that issue or nothing to push, and reports an
already-open pull request rather than opening a second one.
What it enforces
Ownership changes only through explicit claims and accepted handoffs. No
timeout and no process exit moves an issue. agent-parley status reports who
owns what, which handoff is waiting on an offer ID, and any lane that left its
assigned branch. An owner can record that one issue waits on another with
agent-parley issue block 42 --on 17; the listing then names who holds the
blocking issue, and every lane sees the change at its next checkpoint. A
recorded dependency informs, it does not gate.
Native hooks decide before the tool runs. They block branch changes inside an assigned lane, catch drift after any bypass, and deliver short updates only when coordination state actually changes. Each notice is capped at 1,536 UTF-8 bytes; an unchanged checkpoint adds no context at all.
Nine scoped MCP tools carry the coordination. Conflicting reservations grant nothing and name the blocking owner with that owner's declared reason. Sends need an idempotency key, so a retry returns the original message instead of a duplicate. Fetching an inbox never marks a message read. A send can answer another message, which puts both in one thread, and a participant can read a thread in order or search its own mail:
agent-parley mail thread t12
agent-parley mail search "reservation conflict"
Enforcement is recorded, not discarded. Every hook decision carries an
enumerated reason and lands in that participant's event log; every served call
is recorded inside the transaction that carried its effect. That is why top
can show what was denied, to whom, and how often.
That history is bounded, and it can leave the state directory. A lane keeps two
event files and discards records older than fourteen days, so top reports
recent enforcement rather than the whole project. --since narrows any count
to a window, and events export writes the retained records as JSON Lines you
can keep for as long as you need:
agent-parley top --since 6h
agent-parley events export --since 7d --output enforcement.jsonl
Watch one provider
With a dozen lanes open, the whole table is rarely what you want. --provider
narrows the view to the participants driven by one provider, and the header
counts only the rows it shows:
agent-parley top --provider codex
agent-parley top --provider claude --provider codex
Providers and accounts
A provider states which native CLI drives a participant and how that CLI reaches a model. Every provider drives one of two adapters, which is why two plugin installations cover all of them:
| Provider | Native CLI it drives | Plugin that carries coordinate |
|---|---|---|
claude |
claude |
Claude Code |
codex |
codex |
Codex |
copilot |
copilot |
GitHub Copilot CLI |
deepseek, kimi, grok, gemini |
claude or codex, vendor endpoint |
that adapter's plugin |
your own, via agent-parley provider add |
the adapter you name | that adapter's plugin |
claude and codex work out of the box. The deepseek, kimi, grok and
gemini presets carry no endpoint, so their base URL and key must be exported in
the launching shell; the launcher refuses to start when a required variable is
unset rather than falling back to another account. Coordination state records
variable names and config directories, never credential values.
A preset names the vendor whose models answer, not a vendor's own agent CLI:
gemini reaches Gemini models through the codex CLI, exactly as grok and
kimi do for theirs.
Credential profiles point a provider's config-home variable at a separate directory, so one provider can run under several logins. Up to 32 participants per project.
Other agent CLIs
Three adapters cover three ways of accepting configuration. claude and
codex take MCP servers, the coordination prompt and lifecycle hooks as
command-line arguments. copilot reads them from files instead, so Agent
Parley writes mcp-config.json and settings.json into that lane's own
Copilot configuration directory; a copilot lane therefore requires a
credential profile, and the launcher refuses without one rather than writing
hooks into the configuration directory your own sessions use.
Gemini CLI, OpenCode and Amp are not covered. Gemini CLI publishes no variable
that relocates ~/.gemini, so it cannot be given a lane of its own; OpenCode
runs plugins rather than hook commands; Amp accepts no system-prompt argument.
Operations records what each one
supports and where its MCP and hook configuration lives.
How it fits together
flowchart TD
Repo[Your repository] --> Launcher[Agent Parley launcher]
Launcher --> Claude[Participant · own worktree]
Launcher --> Codex[Participant · own worktree]
Claude <-->|Nine scoped MCP tools| Server[Local coordination service]
Codex <-->|Nine scoped MCP tools| Server
Server --> DB[(SQLite WAL · mail and reservations)]
Claude --> Claims[Atomic issue claims and handoffs]
Codex --> Claims
DB --> Hooks[Native checkpoints · bounded updates]
Claims --> Hooks
Hooks -.-> Claude
Hooks -.-> Codex
The coordination engine is built in-house with Python's standard library. It has no runtime dependencies and makes no model calls. Your existing logins and permission settings still apply.
What it does not do
Worktrees and reservations are coordination boundaries, not OS sandboxes. Agent
Bridge does not merge branches, approve commands, or wake idle agents. Reported
ready is ready for review, not verified completion. Token usage still depends
on the native agents; the bridge reports injected bytes rather than claiming a
token-saving percentage.
Contributing
Run make check before opening a PR. It checks formatting, lint, typing,
documentation rules, package builds, and behavior tests.
Contributing · Architecture · Operations · Security · Code of Conduct · MIT license
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_parley-0.2.0.tar.gz.
File metadata
- Download URL: agent_parley-0.2.0.tar.gz
- Upload date:
- Size: 363.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37031fecf8306ec247d4b998c6a67319d1e0ce9a89f3964589359a853dad3ec7
|
|
| MD5 |
77460569e0c9fae4c456d0cefa918706
|
|
| BLAKE2b-256 |
b6927d45fe59a9f6b2d037921594086659ecd550248cad5480bf6e329c4f1cac
|
Provenance
The following attestation bundles were made for agent_parley-0.2.0.tar.gz:
Publisher:
release.yml on suneel944/agent-parley
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_parley-0.2.0.tar.gz -
Subject digest:
37031fecf8306ec247d4b998c6a67319d1e0ce9a89f3964589359a853dad3ec7 - Sigstore transparency entry: 2792400931
- Sigstore integration time:
-
Permalink:
suneel944/agent-parley@449ab0badb6b631b2dc89bf9bfee6c25067c7fc7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/suneel944
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@449ab0badb6b631b2dc89bf9bfee6c25067c7fc7 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file agent_parley-0.2.0-py3-none-any.whl.
File metadata
- Download URL: agent_parley-0.2.0-py3-none-any.whl
- Upload date:
- Size: 78.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6254e41dfdd8af306b93505e3bfc112d82bc150725d7ae3b0df2699292a954aa
|
|
| MD5 |
0d30f825d4c3e6b426d54f911a89b2e8
|
|
| BLAKE2b-256 |
59057f822af1cded833a3c62324cf91c8a2ea25c83029402711e3f6d12336ce3
|
Provenance
The following attestation bundles were made for agent_parley-0.2.0-py3-none-any.whl:
Publisher:
release.yml on suneel944/agent-parley
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_parley-0.2.0-py3-none-any.whl -
Subject digest:
6254e41dfdd8af306b93505e3bfc112d82bc150725d7ae3b0df2699292a954aa - Sigstore transparency entry: 2792400974
- Sigstore integration time:
-
Permalink:
suneel944/agent-parley@449ab0badb6b631b2dc89bf9bfee6c25067c7fc7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/suneel944
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@449ab0badb6b631b2dc89bf9bfee6c25067c7fc7 -
Trigger Event:
workflow_dispatch
-
Statement type: