$ lexprog.com

// notes from an old coder -- php, databases, and the occasional rant

[November 13, 2026] OpenCode

Define role-specific agents: with a live SQLite db

Give each agent its own prompt and tool access instead of restating the role every session. Point tools at a copy or a read-only replica, not data/blog.db.

────────────────────────────────────────────────────────

Define role-specific agents: with a live SQLite db

Tip: A reviewer is not a writer

Give each agent its own prompt and tool access instead of restating the role every session. Point tools at a copy or a read-only replica, not data/blog.db.

{ "agents": { "reviewer": { "prompt": "Report only. Do not edit." } } }

Gotcha: One god-agent (with a live sqlite db)

A single agent that can commit, push, and talk to prod MCP will eventually do all three. An agent 'cleaning up' the live file can drop hundreds of posts.

{ "tools": "*" }

Source: https://opencode.ai/docs/agents

────────────────────────────────────────────────────────
<-- back to posts