OpenCode
Connect OpenCode to Trurlic so every implementation task is constrained by your architectural decisions.
Prerequisites
Section titled “Prerequisites”- Trurlic installed and
.trurlic/initialized in your project - OpenCode installed
The fastest way:
trurlic install --ide opencodeThis writes to ~/.config/opencode/opencode.json (or $XDG_CONFIG_HOME/opencode/opencode.json if set).
Manual setup
Section titled “Manual setup”Add to your opencode.json:
{ "mcp": { "trurlic": { "type": "local", "command": "trurlic", "args": ["serve"] } }}Agent instructions
Section titled “Agent instructions”Add Trurlic instructions to your project’s agent rules so OpenCode queries the decision graph before generating code. See MCP Server for the recommended instruction block.
Verification
Section titled “Verification”- Start an OpenCode session in the project directory.
- Ask OpenCode to implement a feature — it should query
get_contextand follow your recorded decisions. - Check
trurlic statusfor consistency.