opencode-bridge
SKILL.md
Overview
OpenWork communicates with OpenCode via three mechanisms:
- CLI invocation: Spawn
opencodewith prompts and get JSON responses. - Database access: Read OpenCode's SQLite database for sessions and messages.
- MCP bridge: Real-time bidirectional communication for streaming and permissions.
CLI Invocation
Non-interactive mode
opencode -p "your prompt" -f json -q
Returns JSON with the response content.