@chamba/opencode-extras
v1.4.0
Published
Optional OpenCode extras for chamba: slash commands + subagents installer
Maintainers
Readme
@chamba/opencode-extras
Optional OpenCode extras for chamba: slash commands and subagents on top of the chamba MCP server.
Only need the tools? Point OpenCode at
@chamba/mcpdirectly (see the OpenCode setup guide). This package adds the/commandsand subagents on top — the same ones Claude Code gets.
Usage
npx @chamba/opencode-extras@latest install # commands + subagents + register the MCP server
npx @chamba/opencode-extras@latest install --global # + npm i -g @chamba/mcp; launch the binary, not npx
npx @chamba/opencode-extras@latest install --force # overwrite existing files
npx @chamba/opencode-extras uninstall # remove them
npx @chamba/opencode-extras --versionIt installs into ~/.config/opencode/ (or $OPENCODE_CONFIG_DIR):
- Commands →
commands/:/ticket,/triage,/qa,/design,/orq,/map,/workspace,/worktrees,/recall,/vault. - Subagents →
agents/(mode: subagent):planner,implementer,reviewer,tester,qa,diagnostician. - MCP server →
chambaunder"mcp"inopencode.json(preserves any others).
Then restart OpenCode and run /ticket ABC-123 (or /triage, /qa, …) in the TUI.
How it relates to Claude Code
The command and subagent prompts are shared with @chamba/claude-extras — one source
of truth, translated to OpenCode's format on install:
- Commands keep
descriptionand the$ARGUMENTSbody; the Claude-Code-onlyargument-hintis dropped. - Subagents become
mode: subagent, with the model emitted as OpenCode's provider-scoped string (anthropic/<model>) taken from your chamba per-agent config (~/.chamba/config.json). A non-Anthropic model is left unset so OpenCode uses its own default. chamba'sefforthas no OpenCode equivalent, so it's dropped.
chamba never calls a model — this only tells OpenCode's model how to delegate. Configure
the per-agent reparto with npx @chamba/claude-extras config <show|set|preset|…>; both
editors read the same ~/.chamba/config.json.
--global — a steadier launch
By default the MCP server is registered as npx -y @chamba/mcp, which re-resolves the
package from npm on every spawn. install --global runs npm i -g @chamba/mcp and
registers the chamba-mcp binary instead — no per-launch npm, so the connection is far
less likely to drop. Falls back to the npx launcher if the global install can't run.
License
MIT
