Repository navigation
pi support
chord now runs pi agents beside Claude Code, Codex and OpenCode:
chord pi [--name <agent>] ...
- chord loads an extension into pi with
-e, so nothing under~/.piis written. The extension registers chord's MCP server for the session withdirectexposure (pi's default,codemode, would hide the tools from the model) and a ten minute timeout forfinish. - The extension routes pi's
session_start,before_agent_start,tool_call,tool_result,agent_before_settle,agent_settledandsession_shutdownto chord's hooks: the briefing and reminder arrive as one custom message, an unclaimed write is blocked with the reason the model reads, messages that arrive mid-turn ride on the tool result, a message waiting at the end of a run makes pi take one more run, and an agent is idle once pi has settled, after an Esc too. - Hooks know pi's
editandwrite, whosepathis relative to the project folder or absolute. chord resumereopens a pi session with--session;--no-mcpis refused because chord's tools would go with it. The exit command is/quit; pi's OSC 7501 state reports are read as Codex's are.- Both READMEs link to the short film on Bilibili.
Verified against pi 1.4.0 with a scripted model on Windows: briefing, refusal, claim over MCP, write, a peer message holding the agent for one more run, idle, session end and resume. Not yet run with a live model through the terminal wrapper, nor on Linux or macOS.