Skip to main content

Mesh network for AI coding agents - enables Claude Code, Codex, Gemini, and OpenCode sessions to communicate

Project description

Repowire Logo

Repowire

Mesh network for AI coding agents. Enables Claude Code, Codex, Gemini, and OpenCode sessions to communicate.

PyPI CI Python License Ask DeepWiki

Why?

AI coding agents work great in isolation, but real projects need agents that talk to each other. An agent in one repo needs answers from another repo. You need to dispatch work to multiple agents from your phone. A dedicated orchestrator needs to coordinate 10+ peers across projects.

Repowire connects your agents into a live mesh. Any agent can query, notify, or broadcast to any other. You manage the mesh from a dashboard, Telegram, or Slack. It's local-first, works across agent runtimes, and scales from 2 peers to 20+.

Read more: the context breakout problem and the idea behind Repowire.

Current release: v0.13.32 bundles the transport-router extraction for ask/notify delivery, the graphify architecture report, refreshed README/docs/images, and the session-scoped dashboard timeline that merges the selected peer/session Claude transcript with realtime events.

How does repowire compare?
Project Type How it works Best for
Repowire Sync Live agent-to-agent queries Cross-repo collaboration, 5-10 peers
Gastown Async Work orchestration with persistent mail Coordinated fleets, 20-30 agents
Claude Squad Isolated Session management with worktrees Multiple independent sessions
Memory Bank Async Structured markdown files Persistent project knowledge

Repowire is a phone call (real-time, ephemeral). Gastown is email + project manager (async, persistent). For 5-10 agents, emergence works. For 20-30 grinding through backlogs, you probably need structure.

https://github.com/user-attachments/assets/3755328a-e38a-45fb-b465-34526afbe44a

Installation

Requirements: macOS or Linux, Python 3.10+, tmux

# One-liner (detects uv/pipx/pip, runs interactive setup)
curl -sSf https://raw.githubusercontent.com/prassanna-ravishankar/repowire/main/install.sh | sh

# Or install manually
uv tool install repowire    # or: pipx install repowire / pip install repowire

Developing from source:

git clone https://github.com/prassanna-ravishankar/repowire
cd repowire
uv sync --extra dev
uv tool install . --force-reinstall

Hooks and MCP servers run the installed repowire executable, not your checkout. After changing daemon, hook, or MCP code locally, reinstall the tool and restart the daemon service so the live mesh uses the new code:

uv tool install . --force-reinstall
repowire setup --non-interactive   # rewrites hooks/MCP/service to the installed local build

# If only daemon code changed, restarting the service is enough:
launchctl unload ~/Library/LaunchAgents/io.repowire.daemon.plist && \
  launchctl load ~/Library/LaunchAgents/io.repowire.daemon.plist
# Linux: systemctl --user restart repowire

Quick Start

# One-time setup: detects your agents, installs hooks + MCP, starts daemon
repowire setup

Then open your agents in separate tmux windows:

# tmux window 1
cd ~/projects/project-a && claude

# tmux window 2
cd ~/projects/project-b && codex

Both sessions auto-register as peers and discover each other. In project-a:

"Ask project-b what API endpoints they expose"

The agent calls ask, project-b receives the question and acks back with ack(corr_id, "..."). The reply lands in project-a as a notification framed [ack #cid from @project-b] .... Works across Claude Code, Codex, Gemini CLI, and OpenCode in any mix.

Or use the CLI helper to spawn sessions in tmux:

repowire peer new ~/projects/project-a
repowire peer new ~/projects/project-b

How It Works

All peers connect to a central daemon via WebSocket. The daemon routes addressed messages between peers. No pub/sub, no topics. Messages go from peer A to peer B by name.

Repowire architecture

Message types:

  • ask - non-blocking. Returns a correlation_id immediately; the recipient closes the thread with ack(corr_id) (bare close, "seen, no action") or ack(corr_id, message) (close with reply, delivered to the asker as a notification framed [ack #cid from @peer] message). Chain follow-ups with ask(reply_to=corr_id, ...).
  • ack - close an open ask thread. Bare or with a reply message.
  • notify_peer - fire-and-forget (no lifecycle, no response expected)
  • broadcast - fan-out to all peers in your circle

Circles are logical subnets (mapped to tmux sessions). Peers can only communicate within their circle unless explicitly bypassed.

Current Direction: Session-Native Mesh

Repowire's v0.13 architecture train is incrementally shifting the product boundary from a transient peer connection to a durable session. The ask/notify transport-router extraction has landed; the remaining sequence adds a session/timeline store, updates the dashboard to render persisted and realtime conversation state together, moves composer and control actions onto session commands, and centralizes runtime lifecycle plus approval events. The goal is compatibility first: existing peer, hook, MCP, and dashboard workflows should keep working while the internals become session-native.

This is roadmap/current direction, not a claim that every item is fully shipped today:

  • Session-first mesh. Repowire is moving toward sessions as the durable unit of work, with peers acting as live runtime executors.
  • Transport-neutral routing. Ask/notify delivery now goes through a transport router. WebSocket hooks, experimental ACP, relay, and future transports continue moving toward the same message/control boundary.
  • Timeline-centered dashboard. The roadmap is to merge persisted history and realtime events into one session timeline instead of separate live/history views.
  • Shared command surface. Controls such as send message, switch backend/model, resume, schedule, and approvals should target sessions and be reusable from dashboard, MCP, Telegram, and other surfaces.
  • Incremental v0.13 train. Compatible v0.13.x slices preserve current hooks/MCP/HTTP behavior while the session-native model hardens.
  • Human approval path. Permission and plan approval events are expected to become first-class timeline/control events instead of transport-specific callbacks.

The current public surface still exposes peers, circles, asks, notifications, and schedules. Do not assume model switching, plan approval, reliable delivery across every transport, production-ready ACP, or fully transport-neutral routes/control paths are complete today.

Supported Agents

Agent Transport How it connects
Claude Code Hooks + MCP Lifecycle hooks register peer, MCP tools for messaging
OpenAI Codex Hooks + MCP Same pattern (requires codex_hooks feature flag, auto-enabled)
Google Gemini CLI Hooks + MCP Uses BeforeAgent/AfterAgent events (mapped to prompt/stop hooks)
OpenCode Plugin + WebSocket TypeScript plugin with persistent WS connection

repowire setup auto-detects which agents are installed and configures each one.

All agents use hooks + tmux injection for message delivery:

  • SessionStart - registers peer, spawns WebSocket hook, injects peer list
  • UserPromptSubmit / BeforeAgent - marks peer BUSY
  • Stop / AfterAgent - marks peer ONLINE, extracts response for dashboard

Skills and Plugin Marketplaces

Repowire installs its own hooks, MCP server, daemon service, and OpenCode plugin. It does not currently install third-party agent skills or publish a Claude Code plugin marketplace entry.

Those ecosystems are complementary:

  • Vercel Labs skills installs reusable SKILL.md packages across agents with commands like npx skills add vercel-labs/agent-skills -a claude-code or -a codex.
  • Claude Code plugin marketplaces distribute Claude Code plugins that can bundle skills, agents, hooks, MCP servers, and related config. Manage them from Claude Code's /plugin UI or claude plugin ... commands.

Use those when you want reusable agent behavior on top of the Repowire mesh. Use repowire setup for Repowire's transport and routing layer.

Experimental: Claude Code channel transport

On Claude Code v2.1.80+ with claude.ai login and bun, an experimental channel transport delivers messages directly via MCP, with no tmux injection.

repowire setup --experimental-channels
  • Messages arrive as <channel source="repowire"> tags in Claude's context
  • Claude replies via reply tool instead of transcript scraping
  • Requires claude.ai login (not available for API/Console key auth)

Patterns

Multi-repo coordination

Agents in different repos ask each other questions in real time. Project-a needs to know project-b's API shape? ask("project-b", "what endpoints do you expose?") opens a thread; project-b replies with ack(corr_id, "POST /users, GET /users/:id, ...") and project-a sees a live answer from the actual codebase, not stale docs.

Cross-agent review

Have a different agent review your work. Peer A builds a feature, peer B runs a review pass (code quality, security, simplification). Works especially well with different agent runtimes reviewing each other's output.

Orchestrator

A dedicated coordinator peer manages the mesh. It dispatches tasks, tracks progress, runs review cycles, and coordinates releases across multiple project peers. The pattern that makes 10+ agents manageable.

The orchestrator loop:

  1. Scan a GitHub project board for Todo items.
  2. Claim by notify_peer-ing the target project peer with the task brief; flip the board item to In Progress.
  3. Receive ask/notify updates as work progresses (set_description keeps the dashboard honest).
  4. On peer reports done, review the PR (review_queue surfaces open PRs the peer touched), merge after sign-off, flip the board item to Done.
  5. Roll a release tag when a batch lands.

A second orchestrator peer can co-exist as an observer/learner without colliding — use orchestrator_status to see open asks and avoid double-claiming. Pair a claude-code orchestrator with a codex or gemini one to keep the mesh moving when one runtime hits credit limits.

Worktree isolation

Spawn peers on git worktrees for parallel, isolated work. Each peer works on a branch, creates a PR, another peer reviews. Clean separation with no merge conflicts during development.

Mobile mesh management

The Telegram bot lets you dispatch work, check peer status, and coordinate from your phone. Send a message to any peer from anywhere.

Infrastructure-as-peer

A dedicated peer for infrastructure (k8s, DNS, cloud config) that other project peers coordinate with directly. Need a namespace created? Ask the infra peer. Need a deploy? Notify it.

Overnight autonomy

Give peers tasks and disconnect. They work autonomously, report back via Telegram or dashboard when you return. Long-running tasks (migrations, refactors, test suites) complete while you sleep.

Control Plane

Web Dashboard

Peer grid overview

Monitor your agent mesh at http://localhost:8377/dashboard, or remotely via repowire.io:

  • Peer overview - online/busy/offline status, descriptions, project paths
  • Chat view - selected-session timeline with Claude transcript history merged with realtime chat events and tool call details
  • Compose bar - send notifications or queries to any peer from the browser
  • Mobile responsive - hamburger menu, touch-friendly compose

Roadmap: the dashboard is moving toward fuller durable session controls. The current v0.13 slice merges Claude transcript history with realtime stream events for the selected peer/session; controls that change runtime behavior should attach to session commands as they land, while peer IDs remain implementation details of the runtime executor currently doing the work.

For remote access: repowire setup --relay connects your daemon to repowire.io via outbound WebSocket. Access your dashboard from any browser. No port forwarding, no VPN.

More screenshots

Activity and message detail

Chat view with relay

Telegram Bot

Control your mesh from your phone. A Telegram bot registers as a peer. Notifications from agents appear in your chat, messages you send get routed to peers.

# Tokens configured via `repowire setup`, or via env vars:
repowire telegram start
  • /peers - shows online peers with inline buttons
  • Tap a peer → type your message → sent as notification
  • Sticky routing: /select repowire → all messages go there until /clear
  • Agents know @telegram is you. They can notify_peer('telegram', ...) to reach your phone

MCP Tools

Tool Type Description
list_peers Query List peers with status, circle, path, description, last_seen, turn_state. Defaults to online + caller's circle + hides self. Pass circle='*' for mesh-wide, show_offline=True + include_self=True to widen. Orchestrator-role callers default to mesh-wide
ask Non-blocking Open a thread. Returns a correlation_id immediately. Defaults to caller's circle; falls back to global lookup only when the target's role bypasses circles. Optional reply_to=cid chains a follow-up that closes the prior thread
ack Close Close an open ask thread. Bare ack(cid) is "seen, no action"; ack(cid, message) delivers a reply to the asker
notify_peer Fire-and-forget Send a notification (no lifecycle, no reply tracking)
broadcast Fire-and-forget Message all online peers in your circle
whoami Query Your own peer identity
set_description Mutation Update your task description, visible to all peers and the dashboard
spawn_peer Mutation Spawn a new agent session (requires allowlist config)
kill_peer Mutation Kill a previously spawned session
orchestrator_status Query Check whether a live orchestrator is present in a circle (present, peer_name, last_seen)
mark_reviewed Mutation Mark a PR as reviewed at a given SHA. New commits on that PR re-surface it in your review queue
review_queue Query List PRs awaiting your review (or another peer's). Filter by peer_name=...
schedule_create Mutation Schedule a notification or ask to a peer at a future time (one-shot)
schedule_self Mutation Schedule a one-shot or recurring reminder to yourself (fire_at or cron)
schedule_cron Mutation Schedule a recurring cron notification or ask to another peer
schedule_list Query List your active schedules. mine_only=False shows all; include_cron=True appends recurrence
schedule_delete Mutation Remove a schedule

list_peers and whoami return TSV (more token-efficient than JSON).

Reminder injection. If an agent receives an ask but doesn't ack/reply, repowire injects a reminder block at the start of every subsequent prompt until the ask is acked. Tool-call detection is the source of truth — prose [ack #cid] mentions don't close anything, only a real ack() call does. If a peer appears paused at the prompt (idle but with unhandled work), the daemon detects this and surfaces it on the dashboard.

Misroute refusal. Ambiguous peer names (multiple peers sharing a display name across circles) cause ask/notify_peer to refuse with a hint, instead of routing to the wrong peer. Always pass explicit circle=... to disambiguate. When several same-path peers have similar display names (agentbox-codex, agentbox-2-codex, ...), address the peer by the peer_id column from list_peers; ask/ack state is pinned to peer IDs once opened.

Circle scoping. As of v0.13.4, the MCP surface defaults to the caller's own circle. Peers with role service, orchestrator, or human (e.g. the Telegram bot, the orchestrator, you) bypass circles and are always visible. Pass circle='*' to widen any call to mesh-wide. Orchestrator peers default to mesh-wide automatically — they need the full view.

CLI Reference

repowire setup                    # Install hooks, MCP server, daemon service
repowire setup --relay            # Same + enable remote dashboard via repowire.io
repowire setup --experimental-channels  # Use channel transport (needs claude.ai login + bun)
repowire status                   # Show what's installed and running
repowire doctor                   # Diagnostic checks (daemon, hooks, runtimes, relay, ...)
repowire serve                    # Run daemon in foreground
repowire serve --relay            # Run daemon with relay connection

repowire peer new PATH            # Spawn new peer in tmux
repowire peer new . --circle dev  # Spawn with custom circle
repowire peer list                # List peers and their status (god-view, includes offline)
repowire peer describe NAME       # Show full state for one peer (open asks, last seen, recent activity)
repowire peer describe NAME --circle 5    # Disambiguate when name exists in multiple circles
repowire peer prune               # Remove offline peers

repowire schedule self 10m "check CI"       # Wake this peer later
repowire schedule self "0 9 * * 1-5" "standup prep" --cron
repowire schedule create PEER 2026-05-19T18:00:00Z "handoff" --from-peer ME
repowire schedule create PEER "@hourly" "status?" --from-peer ME --cron --kind ask
repowire schedule list             # Show pending one-shot and recurring schedules
repowire schedule delete sched-12345678

repowire telegram start           # Run Telegram bot (config or env vars)
repowire slack start              # Run Slack bot (config or env vars)
repowire update                   # Upgrade package, reinstall hooks, restart daemon
repowire uninstall                # Remove all components (--yes to skip prompts)

repowire peer list is god-view: it returns every peer regardless of circle and includes the calling shell. The MCP list_peers tool defaults to a peer-facing view (online only, caller's circle, caller hidden) — see Circle scoping.

Configuration

Config file: ~/.repowire/config.yaml

daemon:
  host: "127.0.0.1"
  port: 8377
  auth_token: "optional-secret"     # Require auth for WebSocket connections

  # Allow agents to spawn new sessions via MCP (both lists must be non-empty)
  spawn:
    allowed_commands:
      - claude
      - codex
      - gemini
    allowed_paths:
      - ~/git
      - ~/projects

relay:
  enabled: true                     # Connect to hosted relay
  url: "wss://repowire.io"
  api_key: "rw_..."                 # Auto-generated on first `repowire serve --relay`

telegram:                           # Optional, configured via `repowire setup`
  bot_token: "..."
  chat_id: "..."

slack:                              # Optional, configured via `repowire setup`
  bot_token: "xoxb-..."
  app_token: "xapp-..."
  channel_id: "C..."

Peers auto-register via WebSocket on session start. No manual config needed.

Remote relay details
repowire setup --relay
# ✓ Relay enabled
#   Dashboard: https://repowire.io/dashboard

Your daemon opens an outbound WebSocket to repowire.io. The relay bridges messages between daemons on different machines and proxies HTTP requests (dashboard, API) back through a cookie-authenticated tunnel.

Browser → repowire.io → enter key → cookie set → relay tunnels to local daemon
Daemon A ←WSS→ repowire.io ←WSS→ Daemon B (cross-machine mesh)

Self-host the relay: repowire relay start --port 8000

Security
  • WebSocket auth - set daemon.auth_token in config to require bearer token for connections
  • CORS - restricted to localhost origins (plus repowire.io when relay is enabled)
  • Spawn allowlist - daemon.spawn.allowed_commands and allowed_paths must both be non-empty for MCP spawn to work
  • Channel gating - channel transport is opt-in (--experimental-channels), requires claude.ai login

Uninstall

# Remove hooks, MCP server, channel transport, and daemon service
repowire uninstall

# Remove the package itself
uv tool uninstall repowire
# or: pip uninstall repowire

repowire uninstall removes:

  • Claude Code hooks + MCP server + channel transport
  • Codex hooks + MCP config from ~/.codex/
  • Gemini hooks + MCP config from ~/.gemini/settings.json
  • OpenCode plugin
  • Daemon launchd/systemd service

Not removed automatically (contains your data/config):

  • ~/.repowire/ - config, session mappings, events, attachments
  • Relay API key in ~/.repowire/config.yaml

To fully clean up: rm -rf ~/.repowire

Contributing

See CONTRIBUTING.md.

License

MIT

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repowire-0.13.32.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

repowire-0.13.32-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file repowire-0.13.32.tar.gz.

File metadata

  • Download URL: repowire-0.13.32.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for repowire-0.13.32.tar.gz
Algorithm Hash digest
SHA256 f263444c53c536288c86ba43baa72bb294fa29a83432bb16044b633e8ddf8d32
MD5 07dceefceb3e2291ee808724261264b5
BLAKE2b-256 84115dbedbc435bc638de9f1552aa61453e9aee0c2ecbe8f0c41daa3cc6e562d

See more details on using hashes here.

Provenance

The following attestation bundles were made for repowire-0.13.32.tar.gz:

Publisher: publish.yml on prassanna-ravishankar/repowire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file repowire-0.13.32-py3-none-any.whl.

File metadata

  • Download URL: repowire-0.13.32-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for repowire-0.13.32-py3-none-any.whl
Algorithm Hash digest
SHA256 def3f39d4ff4a9426edee4e44c2e2b459ae603506f58cea3a5279fb1f543cd7a
MD5 a0fe4fbefd484355e1898d34358499f9
BLAKE2b-256 2480c58df20430528189139287e80a8d9ab0c732bf3954b69bdd2183b86021ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for repowire-0.13.32-py3-none-any.whl:

Publisher: publish.yml on prassanna-ravishankar/repowire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page