🏋️ Challenges — Module 06 (Operations)¶
- Troubleshooting: force a model error and find the matching line in the log.
- Context: enable
compactionandtool_output, run a long session and compareopencode stats --costbefore/after. - Snapshots: make an edit, use
/undoand confirm the restore; then disablesnapshotsand repeat the test. - Network: configure a proxy with a loopback
NO_PROXYand validate withopencode api get /api/info. - Migration: ask OpenCode to migrate a piece of V1 config (e.g.
permission) to the V2 form and validate withopencode debug config.
💡 Solution (challenge 2)
{
"compaction": { "auto": true },
"tool_output": { "max_lines": 2000, "max_bytes": 51200 }
}
opencode stats --cost
💡 Solution (challenge 5)
// V1
{ "permission": { "bash": { "git push *": "ask" } } }
// V2
{ "permissions": [{ "action": "shell", "resource": "git push *", "effect": "ask" }] }
✅ Module complete! Head to the Capstone projects.