🏋️ Challenges — Module 01 (Fundamentals)¶
- Installation: install OpenCode V2 using two different methods and confirm
opencode --helpworks with both. - TUI: in a session, use
@to attach a file with a line range and ask a question about that snippet. - Config: create an
opencode.jsoncwith$schema, amodeland anaskpermission forgit push *. - CLI settings: change the theme and a keybind in
cli.jsonand confirm they only apply to the terminal (not the server). - Models: connect a provider and run the same prompt with the
#lowand#highvariants, comparing latency.
💡 Solution (challenge 3)
{
"$schema": "https://opencode.ai/config.json",
"model": "anthropic/claude-sonnet-4-5",
"permissions": [
{ "action": "shell", "resource": "git push *", "effect": "ask" }
]
}
💡 Solution (challenge 5)
opencode run --model anthropic/claude-sonnet-4-5#low "Explain this repository"
opencode run --model anthropic/claude-sonnet-4-5#high "Explain this repository"
➡️ Module 02