Using chezmoi for dotfile management.
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply athal7Then fill in machine-specific details:
~/.env- environment variables and API keys (loaded by direnv)~/.config/opencode/opencode.json- model configuration (merged with chezmoi-managed MCP settings)~/.config/opencode/AGENTS.local.md- machine-specific context (auto-discovered)
Automatic setup includes:
- Homebrew packages via Brewfile (including
opencodeandopencode-desktop)
See AGENTS.md for structure and conventions when editing this repo.
Global agent instructions deploy to ~/.config/opencode/AGENTS.md and auto-generate lists of:
- CLI tools (from Brewfile comments)
- Subagents (from
agent/*.mdwithmode: subagent) - Local agents (from
agent/*.mdwithmodel: ollama/*) - Commands (from
command/*.md)