🏋️ Challenges — Module 03 (Advanced)¶
- Agent: create a read-only subagent that denies
editandshell, and run it withopencode run --agent. - Plugin (tool): write a plugin with a
git_branch_nametool and call it from the TUI. - Plugin (RPC): expose an RPC method and call it from an HTTP client with
POST /api/rpc/.... - Websearch: configure a provider and run a search that cites sources; force
askon the permission. - Context: configure a Git reference and a local one, attach them and ask to summarize a specific path.
💡 Solution (challenge 1)
---
description: Read-only reviewer
mode: subagent
permissions:
- action: edit
resource: "*"
effect: deny
- action: shell
resource: "*"
effect: deny
---
Review the changes and list findings by severity.
opencode run --agent reviewer "Review the last commit"
💡 Solution (challenge 5)
{
"references": {
"docs": { "path": "../product-docs", "description": "Product behavior" },
"effect": { "repository": "Effect-TS/effect", "branch": "main" }
}
}
➡️ Module 04