$ lexprog.com

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

[November 10, 2026] OpenCode

Define role-specific agents: on an untrusted clone

Give each agent its own prompt and tool access instead of restating the role every session. Keep network and write on ask until you read skills and MCP.

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

Define role-specific agents: on an untrusted clone

Tip: A reviewer is not a writer

Give each agent its own prompt and tool access instead of restating the role every session. Keep network and write on ask until you read skills and MCP.

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

Gotcha: One god-agent (on an untrusted clone)

A single agent that can commit, push, and talk to prod MCP will eventually do all three. A malicious skill is an install script; YOLO permissions are how it runs.

{ "tools": "*" }

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

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