Repository navigation
chord 0.3.0
OpenCode support
chord now runs OpenCode agents beside Claude Code and Codex:
chord opencode [--name <agent>] ...
- OpenCode is configured through
OPENCODE_CONFIG_CONTENT: chord's MCP server and a plugin, named by file URL, so your own config,OPENCODE_CONFIG_DIRand the project'sopencode.jsonstay in force. - The plugin routes OpenCode's
chat.message,tool.execute.before/afterandsession.idleto chord's hooks: the briefing and reminder arrive as synthetic parts, an unclaimed write is refused with the reason the model reads, messages that arrive mid-turn ride on the tool output, and idle agents are woken through the prompt. - Hooks know
edit,write,apply_patchand the bashworkdir. chord resumereopens an OpenCode session with-s;--pureis refused because it would unload the plugin.- The pty wrapper runs the binary behind a
.cmdshim that wraps an.exe, which is howopencode-aiinstalls on Windows.
Verified against OpenCode 1.19.5 with a scripted model: refusal, claim, write, claim clash with a message, wake-up, finish, resume and stop. chord's MCP tools run without a permission prompt.