Skip to content

chord 0.3.1

Latest

Choose a tag to compare

@Cedr1cSun Cedr1cSun released this 28 Oct 23:24
· 1 commit to main since this release

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 ~/.pi is written. The extension registers chord's MCP server for the session with direct exposure (pi's default, codemode, would hide the tools from the model) and a ten minute timeout for finish.
  • The extension routes pi's session_start, before_agent_start, tool_call, tool_result, agent_before_settle, agent_settled and session_shutdown to 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 edit and write, whose path is relative to the project folder or absolute.
  • chord resume reopens a pi session with --session; --no-mcp is 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.