tongs-agents
tongs-agents is one workspace for the AI coding agents you run side by side. It starts Claude Code, Codex, Pi or any other command as real panes of a Zellij (or tmux) session, puts a sidebar next to them that shows which agent is working, done or waiting for you, and takes you to that pane.
It reads status from each harness's own hooks, so it does not care which
harness an agent runs in. There is no daemon and no telemetry: hooks write
small JSON records, and the sidebar, the monitor view and the MCP tools read
them.
tongs-agents is a standalone companion app in the
tongs family. It runs on its own;
tongs is an optional neighbour tab in the workspace, and the [tongs] extra
adds an Agents screen to tongs.
Formerly claude-fleet-monitor; see
Upgrading from claude-fleet-monitor.
Quick start
You need Python 3.11 or newer. The workspace needs Zellij 0.44.2 or newer on Linux (tongs-agents can download a pinned build for you) or tmux 3.2 or newer.
Install tongs-agents from PyPI as a tool:
pipx install tongs-agents # or: uv tool install tongs-agents
pip install tongs-agents into a virtual environment works too. For the
Agents screen in tongs, install the [tongs] extra into the environment tongs
runs from (pip install "tongs-agents[tongs]", or pipx inject tongs tongs-agents when tongs came from pipx). The hooks and MCP registrations that
tongs-agents install writes point at the environment you installed into, so
run tongs-agents install again if you move or recreate it. Contributors
install from a clone instead; see Contributing.
Describe the agents you want as profiles in
~/.config/tongs-agents/config.toml:
[profiles.claude-main]
command = ["claude"]
[profiles.claude-alt]
command = ["claude"]
config_dir = "~/.claude-alt" # a second Claude Code config dir
[profiles.codex-review]
command = ["codex"]
[profiles.pi-local]
command = ["pi", "--provider", "ollama", "--model", "qwen3-coder"]
Then install the hooks, check the setup and open the workspace:
tongs-agents install # hooks for Claude Code, Codex and every profile's config dir
tongs-agents doctor # what is missing, and how to fix it
tongs-agents doctor --fix zellij # only if doctor says Zellij is missing (Linux x86_64)
tongs-agents workspace --profile claude-main --profile codex-review
The sidebar lists each pane with its status. Enter jumps to the selected
agent, n jumps to the next one that needs you. In Codex, review and trust
the new hooks once with /hooks.
The first workspace tutorial walks through all of this step by step.
What you can do
| Feature | Commands | Docs |
|---|---|---|
| A workspace with one pane per agent and a status sidebar | workspace, sidebar |
workspace |
| Profiles: any argv command, its own config dir, cwd, env and model arguments | profiles |
profiles |
| Status for scripts, builds and agents without hooks | notify |
profiles |
| A fleet-wide session list, outside any workspace too | monitor, status, focus |
app settings |
| One dotfiles directory for instructions, skills and MCP servers, emitted into every harness | config status, config apply, config capture |
config layer |
| Drive agent panes from a script: paste a prompt, read the screen, wait for done | send, read, wait, agent-status |
driving agent panes |
| Let one agent start and prompt others (opt-in) | MCP agents_* tools |
MCP agent control |
| A chat between you and the agents you grant, with mentions and wake | chat |
agent chat |
| Watch the workspace read-only from a browser or phone | web |
web watching |
| Run an agent inside an NVIDIA OpenShell sandbox, still as a pane, and approve its access requests one at a time | profile sandbox table, sandbox |
tutorial, sandboxed profiles |
| MCP tools that let agents read the fleet and focus sessions | MCP fleet_* tools |
MCP tools |
| A pinned, checksum-verified Zellij download | zellij, doctor --fix zellij |
Zellij pins |
Everything that acts on your agents is opt-in. MCP agent control needs
[control] mcp_enabled = true plus mcp_control = true on each profile;
chat needs a grant per pane; web watching starts only with web enable and
binds 127.0.0.1 only.
Sandboxed profiles have instrumented evidence only: every OpenShell call has been checked against a fake CLI, and the live run on a real gateway is pending. The sandbox tutorial walks through setup, and sandboxed profiles is the reference.
Support
| Status | |
|---|---|
| Harnesses | Claude Code and Codex through native hooks; Pi 0.84.4 or newer through a packaged extension (chat tools need Pi 0.99.0 or newer); any other command through notify |
| Multiplexers | Zellij 0.44.2 to 0.45.1 validated on Linux x86_64 (newer releases run with a doctor warning); tmux 3.2 or newer |
| Platforms | Linux. The workspace on macOS is unvalidated. Windows has no workspace; the hooks, monitor and status are cross-platform but only mocked there |
| Terminal focus | Konsole, tmux, Zellij, Kitty and GNU screen validated live on Linux; Ghostty, GNOME Terminal, iTerm2, macOS Terminal and Windows Terminal are mocked or inspected only; Terminator is detection only |
Evidence for each claim, and what is not validated yet, is in the support matrix. Some harness behaviours that chat and the sandbox rely on are read from harness documentation and binaries but not observed live; those pages say so where it matters.
Documentation
Start at the documentation index. It has tutorials, how-to guides, reference pages and background, grouped by what you want to do.
MCP tools
tongs-agents install registers the tongs-agents MCP server with Claude
Code (claude mcp add --scope user) and Codex (a [mcp_servers.tongs-agents]
table in its config.toml) when those CLIs are on PATH. These read-only tools are always available:
| Tool | Description |
|---|---|
fleet_status |
All sessions with summary counts |
fleet_session |
One session by ID or prefix |
fleet_sessions_needing_attention |
Sessions waiting for input, or idle for more than 2 minutes |
fleet_focus |
Focus a session's terminal |
fleet_cleanup |
Run session store maintenance now |
The agents_* control tools and the chat_* tools appear only when you turn
them on; see MCP agent control
and agent chat.
Upgrading from claude-fleet-monitor
Install tongs-agents, then run tongs-agents install (add --agent all if
you used Pi). It removes the claude-fleet-monitor hooks, its fleet MCP
entries and its Pi extension, and keeps everything else. Then run
pip uninstall claude-fleet-monitor and tongs-agents doctor, which reports
anything left over, including the old ~/.claude/fleet/ directory and the
command to remove it. Old session records are not migrated. See the
migration guide.
Uninstall
tongs-agents uninstall # hooks, MCP entries and session records
tongs-agents uninstall --keep-data # keep the sessions directory
tongs-agents uninstall --agent pi # only the Pi extension
pipx uninstall tongs-agents # or uv tool uninstall, or pip uninstall, matching how you installed it
Session records are kept while the Pi extension is still installed. The
<name>.tongs-agents.bak copies that install kept of your settings.json and
hooks.json stay; delete them yourself when you no longer need them.
Contributing
To work on tongs-agents, install it editable from a clone:
git clone https://github.com/andre-motta/tongs-agents.git
cd tongs-agents
python3 -m venv .venv
. .venv/bin/activate
pip install -e ".[dev]" # add ,tongs for the tongs plugin tests
Hooks installed from this checkout point at its .venv. See
CONTRIBUTING.md
for development setup and the PR process. Harness contributors should follow
the adapter author guide.
Agent-led initiatives follow the SDLC profile.
License
Metadata
Release files for tongs-agents 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tongs_agents-0.10.0.tar.gz | 1.0 MB | With provenance | Details for tongs_agents-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tongs_agents-0.10.0-py3-none-any.whl | Python 3 | none | any | Details for tongs_agents-0.10.0-py3-none-any.whl |
Total release size: 1.4 MB
Release files / tongs_agents-0.10.0.tar.gz
| Download URL | tongs_agents-0.10.0.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30fbec7abc4edbdda51246d92c3d733382231709e3f4bf9f858399454dd4749f
|
|
BLAKE2b-256 checksum How to use checksums |
841f2f4579a23a4d71f0574d7f63a665474ea6120bc2299b65b34d180d775b5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / tongs_agents-0.10.0-py3-none-any.whl
| Download URL | tongs_agents-0.10.0-py3-none-any.whl |
|---|---|
| Size | 371.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
297feb722e53f80839b52f74720978801ede2020043751035af64de0b34d0944
|
|
BLAKE2b-256 checksum How to use checksums |
ed56219409329839265aa6024ccc7df6fe5372e3afc06010fe24e224fcc95068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for tongs-agents 0.10.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for tongs_agents-0.10.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.