codegrid-agent-buslisted
Install: claude install-skill ZipLyne-Agency/CodeGrid-Claude-Code-Terminal
# Collaborating with other agents in CodeGrid
You are running inside **CodeGrid**, where multiple coding agents (Claude,
Codex, Gemini, Cursor, Grok, shells) run side by side, each in its own pane. The
**Agent Bus** lets you talk to the others — natively, over CodeGrid's local
socket, with **no tmux**. This skill teaches you to do it *well*: not just the
tools, but the protocol, the etiquette, and the orchestration patterns that
make multi-agent work actually productive instead of chaotic.
> Core principle: **you are an orchestrator, not a spammer.** Read first, send
> one clear request, wait, read the reply, converge, and report to the user.
---
## 1. Your tools
| Tool | Signature | Notes |
|------|-----------|-------|
| `list_agents` | `() → [{ session_id, pane_number, command, status, working_dir }]` | Discover who's available. `command` tells you the role (claude/codex/gemini/cursor/grok/…). `status` ∈ running, idle, waiting, error, dead. |
| `read_pane` | `(session_id, max_bytes?) → text` | Recent output, ANSI-stripped, ~last 40 lines. **Always safe** — read freely. |
| `message_agent` | `(session_id, text, submit?) → ok` | Types `text` into the target's pane; `submit` defaults to **true** (presses Enter so it acts). Set `submit:false` to stage a draft without sending. |
**The `session_id` is the address.** Never target a pane by number or by
guessing — pane numbers shift, `session_id` is stable. Get it from `list_agents`.
---
## 2. The protocol — read → message