Skip to content

chord 0.3.0

Choose a tag to compare

@Cedr1cSun Cedr1cSun released this 28 Oct 17:18
· 5 commits to main since this release

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_DIR and the project's opencode.json stay in force.
  • The plugin routes OpenCode's chat.message, tool.execute.before/after and session.idle to 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_patch and the bash workdir.
  • chord resume reopens an OpenCode session with -s; --pure is refused because it would unload the plugin.
  • The pty wrapper runs the binary behind a .cmd shim that wraps an .exe, which is how opencode-ai installs 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.