mirror of
https://github.com/wesammustafa/opencode-primer.git
synced 2026-11-19 02:17:58 +00:00
Update the guide to the current release (v1.16.2, 2026-06-05), verified against opencode.ai/docs and github.com/anomalyco/opencode. Correctness fixes: - Plugins: tool.execute.before/after and shell.env are top-level hooks with an (input, output) signature, not event.type values. Rewrite both shipped example plugins plus the docs/migration examples so they fire. - Permissions: bash glob maps resolve last-matching-rule-wins (catch-all "*" first), not most-specific-wins. Fix prose, reorder examples, and fix the shipped opencode.json (rm -rf* deny was shadowed by a later rm *). - Drop non-existent permission keys repo_clone/repo_overview (15 keys, not 17); fix steps (integer), deprecate maxSteps/tools, move reasoningEffort into model options; fix the `mise` install command. Currency updates: - v1.15.4 -> v1.16.2; add v1.16 highlights and a changelog section. - Refresh OpenCode Zen lineup/pricing (Claude Opus 4.8, gpt-5.4, gemini-3.5-flash, qwen3.7, grok-build-0.1; correct free-tier IDs). - Add `opencode mcp add`, run --replay, extra skill paths, shift+tab, and native GitHub commands; correct the specialist-prompt count; bump dates. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
3.9 KiB
3.9 KiB
Further Reading
Curated external resources — official docs, primary sources, and adjacent tooling. Nothing speculative.
Official OpenCode
- opencode.ai — Home
- opencode.ai/docs — Full documentation
- opencode.ai/docs/zen — Zen model gateway
- opencode.ai/download — Desktop app (beta)
- github.com/anomalyco/opencode — Source code (MIT)
- github.com/anomalyco/opencode/releases — Release notes
- github.com/anomalyco/opencode/discussions — Community discussions
- opencode.ai/config.json — JSON schema for
opencode.json - opencode.ai/tui.json — JSON schema for
tui.json
Topic-specific OpenCode docs
- opencode.ai/docs/cli — CLI reference
- opencode.ai/docs/tui — TUI reference
- opencode.ai/docs/config — Config reference
- opencode.ai/docs/agents — Agents
- opencode.ai/docs/commands — Custom commands
- opencode.ai/docs/skills — Skills
- opencode.ai/docs/plugins — Plugins
- opencode.ai/docs/mcp-servers — MCP
- opencode.ai/docs/rules —
AGENTS.mdand rules - opencode.ai/docs/themes — Themes
- opencode.ai/docs/keybinds — TUI keybinds
- opencode.ai/docs/share — Session sharing
- opencode.ai/docs/permissions — Permission model
Model Context Protocol
- modelcontextprotocol.io — Protocol home
- registry.modelcontextprotocol.io — Official registry
- github.com/modelcontextprotocol/servers — Reference server implementations
Adjacent AI coding tools (for comparison or coexistence)
- Claude Code — Anthropic's CLI; shares the
.claude/skills/andCLAUDE.mdformats OpenCode reads as fallbacks - Aider — Earlier terminal AI coding tool
- Cursor — VS Code fork with embedded AI
Provider docs (for direct-provider setup)
- Anthropic API
- OpenAI API
- Google AI / Gemini API
- Groq
- OpenRouter
- Ollama — local model runner
- LM Studio — local model GUI
Prompt engineering — general background
These aren't OpenCode-specific, but the patterns transfer.
- Anthropic — Prompt engineering overview
- Anthropic — Building effective agents
- OpenAI — Prompt engineering guide
Spot a useful resource that should be here? Send a PR — see
../../CONTRIBUTING.md.
Last reviewed: 2026-06-08 · Canonical source: opencode.ai/docs.