rysh-cli-code Connects Codex Agents

By Rogier Muller08.30.26
rysh-cli-code Connects Codex Agents

rysh-cli-code is rysh-ai’s open-source Go project for running an agentic terminal multiplexer where panes can act like AI agents. It deals with a real coordination problem: once you have Codex CLI, OpenAI’s terminal coding agent, and Claude, Anthropic’s assistant family, running side by side, how do you make them talk without turning your terminal into soup? The useful takeaway is simple: Rysh is interesting less because it adds another agent, and more because it treats agent coordination as a visible terminal graph. For people arriving from a codex cli github search, the project is a concrete example of Codex CLI workflows moving from one chat window to many cooperating panes.

Rysh is a terminal multiplexer where tabs, panes, and splits behave like normal terminal surfaces, but each pane can also receive prompts, answer, and call tools. As of August 2026, the repository is Apache-2.0 licensed, written mainly in Go, and small enough to read before trusting it with serious work. GitHub Copilot Workshop is part of Harness Institute.

See the trick before copying the architecture

The neat idea in Rysh is not “more agents.” We already have plenty of that.

The trick is that the terminal layout becomes the coordination model. A tab can hold several lanes. A stack can hold independent Claude sessions. The project description sketches a hierarchy like CEO → managers → workers, where the top agent delegates and the lower agents report progress on an agent board.

That matters because most multi-agent demos hide the boring part: where state goes, who is doing what, and how a human notices drift. Rysh makes the graph visible. You can watch messages move, inspect panes, and restart a session with agents still there because the session is daemonized rather than bound to one terminal process.

The trap is assuming a hierarchy makes the work better. A CEO agent with five manager agents and twenty worker agents can multiply confusion as easily as throughput. The first useful test is not “can it run twenty agents?” It is “can I tell which agent changed which file, why, and how to verify it?”

Why developers paid attention

The Hacker News appeal was easy to understand. Developers are already juggling terminals, tmux, Codex CLI, Claude sessions, test runners, logs, and issue context. Rysh aims at that messy middle layer where the work is not one prompt, but a swarm of small loops.

The project also lands in a moment where Codex workflows are getting more operational. OpenAI Codex can work from repository instructions, and Codex users increasingly keep durable rules in files such as AGENTS.md. That pairs naturally with a terminal harness: one pane can investigate, another can edit, another can run tests, and a coordinating pane can keep the plan honest.

A concrete example: in a Go service, one agent can inspect internal/billing, another can read failing tests under pkg/invoices, and a coordinator can ask Codex CLI to propose the smallest patch. The win is not that every agent is brilliant. The win is that each one has a smaller, bounded job.

The objection is also fair. Multi-agent tools can become theater. If the graph does not produce a better patch, a clearer review trail, or faster failure discovery, it is just a busier terminal.

Put a boundary around Codex before adding a graph

If you try Rysh with Codex, start with a boring boundary. Give Codex a repository rule, a verification loop, and one allowed slice of the codebase.

Here is a small AGENTS.md pattern that fits a Codex CLI experiment:

# AGENTS.md

## Scope
Work only in `internal/billing/**` unless the user approves a wider change.

## Verification
Before proposing a final answer, run:

- `go test ./internal/billing/...`
- `go test ./pkg/invoices/...`

If a command fails, summarize the failure and stop before broad edits.

## Review note
End with:

- files changed
- tests run
- remaining risk

That instruction does two useful things. It narrows the agent’s search space, and it makes the final response reviewable without replaying the whole chat.

This is where the codex cli github path becomes practical rather than just navigational. Use the official Codex CLI docs and repository to understand the normal single-agent workflow first, then use Rysh to test whether pane-to-pane coordination adds anything.

The trap is connecting every tool too early. If you add MCP access to GitHub, Slack, a database, and a document store before the basic edit-test-review loop works, you will not know whether Rysh helped or merely gave agents more places to wander.

Try Rysh when the work splits cleanly

Rysh looks most promising when the job naturally decomposes. A migration with independent packages, a flaky-test investigation, or a codebase archaeology task can benefit from multiple panes that each hold context.

It is overkill for a two-line bug fix. It is also a poor fit when the repository has weak tests, unclear ownership, or hidden production assumptions. Multi-agent coordination does not rescue a repo that cannot tell you when it is broken.

A good first experiment is read-heavy. Ask one pane to map the code path, one to find tests, and one to propose a patch plan. Do not let any agent write files until the graph has produced a plan a human can check.

If you want a neighboring example of Codex used to process developer discussion rather than write code, see Rundown Summarizes Hacker News with Codex. It is a quieter pattern, but the same lesson applies: the workflow matters more than the model count.

A safe first Rysh experiment

Use this as a small fit check before trusting an agent graph with a real change.

Step Do this Stop if
Pick a repo slice Choose one package, service, or feature folder with tests The task needs broad edits across the repo
Add local instructions Put scope and verification rules in AGENTS.md The repo cannot name a reliable test command
Start read-only Ask agents to map code paths and risks before editing Agents disagree and cannot cite files
Assign panes by job Use one coordinator, one investigator, one tester Everyone is doing the same work
Require a receipt Ask for files changed, commands run, and remaining risk The final answer is only a prose summary
Compare to one agent Run the same task once with plain Codex CLI The graph is slower without a clearer result

For a deeper Codex-specific path, keep the experiment tied to CLI workflows: prompt, inspect, edit, test, summarize. Rysh should make that loop more observable, not replace it.

One methodology lens

One useful way to read this through our methodology is the Plan step: delegate first-pass decomposition and dependency mapping, review the sequencing and assumptions, and keep ownership of scope and priorities. If that split is still fuzzy, the workflow usually is too.

Common questions

What should teams know about codex cli github?

Start by writing down one visible team rule for Codex, not a loose preference. That usually means a short repository convention, a review checklist, and one owner who can reject agent output when the evidence is missing.

Which Codex artifact should teams standardize first?

Standardize the smallest artifact that reviewers already touch: a AGENTS.md instruction, MCP note, or verification checklist. The point is not documentation volume; it is a shared place where scope, allowed tools, expected tests, and rollback notes are visible before generated code reaches review.

How do teams know the convention is working?

The convention is working when reviewers can approve or reject agent output from the artifact and evidence alone. Track whether pull requests name the rule used, include the promised checks, and avoid replaying long sessions just to understand what changed.

Best ways to use this research

  • Best for: Codex teams deciding which AGENTS.md instruction, CLI workflow, MCP boundary, or verification loop to standardize next around “rysh-cli-code Connects Codex Agents.”
  • Best first artifact: turn the named fix into an AGENTS.md rule, verification checklist, MCP note, or review receipt before the next automated run.
  • Best comparison angle: compare the workflow against the current Codex CLI review loop, shell boundary, and evidence trail; keep the path that leaves the shortest auditable trail.

Further reading

Next move

Take this into the related training topic and test whether a new reviewer can defend the merge without replaying the chat.