Personal opencode configuration with development guidelines and custom agents for enhanced AI-assisted development.
This configuration keeps opencode focused on a few core ideas:
- A hierarchical config model where local
AGENTS.mdoverrides remote defaults - Clear development rules for safer, more consistent AI-assisted changes
- Lightweight optional tooling for validation and repo hygiene
- opencode CLI installed
- API keys for your preferred model providers
websearchsupport via OpenCode provider or Exa (OPENCODE_ENABLE_EXA=1)
# Clone to opencode config directory
git clone https://github.com/joaomj/opencode.git ~/.config/opencodeopencode.json includes opinionated model and provider settings, including a small model, provider-specific limits, and a fast read-only explore agent pinned to openai/gpt-5.4-mini. They work in my setup, but other users may need to adjust them if they do not have the same API keys, subscriptions, or model access.
Install quality checks in any project:
curl -sSL https://raw.githubusercontent.com/joaomj/opencode/master/setup-hooks.sh | bashThe installer will ask for confirmation before proceeding.
For detailed architecture and workflow notes, see tech-context.md.
Clone to ~/.config/opencode/ on each machine for consistent configuration. Update with:
cd ~/.config/opencode && git pullThis is not built by the OpenCode team and is not affiliated with them in any way.
MIT - see LICENSE for details.