Most OpenCode users only scratch the surface of what this open-source AI coding agent can do. With 160K GitHub stars and support for 75+ LLM providers, OpenCode packs powerful features that can dramatically boost productivity. Here are seven hidden capabilities that can transform your workflow.
1. AGENTS.md Auto-Injection
Automatically load project context by placing an AGENTS.md file in your repo. OpenCode will inject this context every time you start a session, saving you 30 minutes daily.
2. Tab-Cycle Custom Agents Quickly switch between specialist agents during code reviews. Tab-cycling lets you pull in a security expert, a performance reviewer, or a style enforcer—giving you 5x better feedback.
3. LSP Semantic Navigation OpenCode's built-in LSP servers reduce hallucinations by 40%. Jump to definitions, find references, and refactor with confidence using semantic understanding of your codebase.
4. Hooks for Zero-Touch Workflow Define pre- and post-tool hooks in a single JSON config to automate formatting, linting, and testing. Eliminate manual steps entirely.
5. Mine SQLite Session History OpenCode stores all session data in a local SQLite database. Query it to extract your most effective prompts and reuse them across projects.
6. Non-Interactive CI/CD Mode Integrate OpenCode into your CI/CD pipeline for automated AI code review on every pull request. Run it non-interactively with pre-defined rules.
7. Multi-Model Cost Routing Assign different tasks to different models to cut token costs by up to 70%. Use a cheap model for simple formatting and a powerful one for complex logic—all within the same agent.
Start using these features today and unlock the full potential of OpenCode.