CodeGrid — agent operating manual
CodeGrid runs many coding agents side by side on an infinite 2D canvas. Each
pane is one process (claude, codex, gemini, cursor-agent, grok, or a
shell) with its own working directory, git branch, and stable session_id. The
agent bus lets any pane discover, read, and message any other pane locally.
This skill is the umbrella entry point. Two references cover the full surface:
Operating CodeGrid — the mental model
(canvas / pane / workspace / agent / bus), MCP tools (list_agents,
read_pane, message_agent), the control-socket JSON-RPC API
(agent_list, agent_read, agent_send, open_folder, new_session,
new_workspace), the codegrid:// deep-link scheme, and an operating
playbook with recipes.
Agent-bus collaboration — the
read → message → read protocol, identifying agents by role and
session_id, orchestration patterns (delegate, review, pipeline, parallel
fan-out, monitor, debate), etiquette and scope safety, loop/runaway
prevention, failure recovery, and worked end-to-end examples.
When to load which reference
| You're about to… |
Load |
| Discover what's running, open a folder, spawn a session, or drive CodeGrid from outside |
using-codegrid |
| Hand work to / consult / review with another agent already running in CodeGrid |
codegrid-agent-bus |
| Both |
Load using-codegrid first, then codegrid-agent-bus |
Quickstart (inside a CodeGrid pane)
list_agents() # discover panes (session_id, role, status)
read_pane(<session_id>) # see what they're doing — always safe
message_agent(<session_id>, "[from <you>] <self-contained request>")
… wait, then read_pane(<session_id>) for the reply.
Quickstart (from outside CodeGrid, e.g. another tool)
SOCK="$(cat ~/.codegrid/socket-path 2>/dev/null || echo ~/.codegrid/socket)"
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"agent_list"}' | nc -U "$SOCK"
# Or deep-link the installed app:
open "codegrid://open?path=/abs/path/to/repo&type=codex"
open "codegrid://new"
Install
install the codegrid skill from https://github.com/BankrBot/skills/tree/main/codegrid
Source
- Canonical source of truth lives in the CodeGrid repo under
skills/
(skills/using-codegrid/SKILL.md, skills/codegrid-agent-bus/SKILL.md).
This Bankr Skills provider is a published copy kept in sync.
- App download + full docs: https://codegrid.app.
- Token (Base):
0x6B456E66524aEC1792013eF9DFE87e3F84311ba3 —
see https://codegrid.app/token.
Safety defaults an agent should respect
- Read before you write.
read_pane is free; never message a busy agent.
- Address by
session_id, never pane number — pane numbers shift.
- Be explicit about scope. Other agents may be in YOLO/autonomous mode and
will act on whatever you send. Say "propose only, do not edit files" when you
want analysis.
- One message, then wait. Multiple messages interleave into the target's
input box and corrupt it.
- Bound debates and don't spawn unbounded helpers. Converge and report to
the user.
- Stay local. Everything is same-machine IPC; there is no remote bus.
Full guidance: see the two reference files.
1---2name: codegrid3description: Operate inside a CodeGrid pane, drive the workspace from outside, and coordinate multi-agent workflows with local IPC.4---56# CodeGrid — agent operating manual78CodeGrid runs many coding agents side by side on an infinite 2D canvas. Each9pane is one process (`claude`, `codex`, `gemini`, `cursor-agent`, `grok`, or a10shell) with its own working directory, git branch, and stable `session_id`. The11agent bus lets any pane discover, read, and message any other pane locally.1213This skill is the umbrella entry point. Two references cover the full surface:1415- **[Operating CodeGrid](./references/using-codegrid.md)** — the mental model16 (canvas / pane / workspace / agent / bus), MCP tools (`list_agents`,17 `read_pane`, `message_agent`), the control-socket JSON-RPC API18 (`agent_list`, `agent_read`, `agent_send`, `open_folder`, `new_session`,19 `new_workspace`), the `codegrid://` deep-link scheme, and an operating20 playbook with recipes.2122- **[Agent-bus collaboration](./references/codegrid-agent-bus.md)** — the23 `read → message → read` protocol, identifying agents by role and24 `session_id`, orchestration patterns (delegate, review, pipeline, parallel25 fan-out, monitor, debate), etiquette and scope safety, loop/runaway26 prevention, failure recovery, and worked end-to-end examples.2728## When to load which reference2930| You're about to… | Load |31|---|---|32| Discover what's running, open a folder, spawn a session, or drive CodeGrid from outside | `using-codegrid` |33| Hand work to / consult / review with another agent already running in CodeGrid | `codegrid-agent-bus` |34| Both | Load `using-codegrid` first, then `codegrid-agent-bus` |3536## Quickstart (inside a CodeGrid pane)3738```text39list_agents() # discover panes (session_id, role, status)40read_pane(<session_id>) # see what they're doing — always safe41message_agent(<session_id>, "[from <you>] <self-contained request>")42… wait, then read_pane(<session_id>) for the reply.43```4445## Quickstart (from outside CodeGrid, e.g. another tool)4647```bash48SOCK="$(cat ~/.codegrid/socket-path 2>/dev/null || echo ~/.codegrid/socket)"49printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"agent_list"}' | nc -U "$SOCK"5051# Or deep-link the installed app:52open "codegrid://open?path=/abs/path/to/repo&type=codex"53open "codegrid://new"54```5556## Install5758```text59install the codegrid skill from https://github.com/BankrBot/skills/tree/main/codegrid60```6162## Source6364- Canonical source of truth lives in the CodeGrid repo under `skills/`65 (`skills/using-codegrid/SKILL.md`, `skills/codegrid-agent-bus/SKILL.md`).66 This Bankr Skills provider is a published copy kept in sync.67- App download + full docs: <https://codegrid.app>.68- Token (Base): `0x6B456E66524aEC1792013eF9DFE87e3F84311ba3` —69 see <https://codegrid.app/token>.7071## Safety defaults an agent should respect7273- **Read before you write.** `read_pane` is free; never message a busy agent.74- **Address by `session_id`**, never pane number — pane numbers shift.75- **Be explicit about scope.** Other agents may be in YOLO/autonomous mode and76 will act on whatever you send. Say "propose only, do not edit files" when you77 want analysis.78- **One message, then wait.** Multiple messages interleave into the target's79 input box and corrupt it.80- **Bound debates and don't spawn unbounded helpers.** Converge and report to81 the user.82- **Stay local.** Everything is same-machine IPC; there is no remote bus.8384Full guidance: see the two reference files.