Skip to content

markerikson/opencode-config-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenCode AI Development Workflow Config

Reference configuration for OpenCode, published alongside my blog posts on how I learned to use AI and my actual AI development workflow:

This is a sanitized snapshot of my actual daily-use config. API keys and personal paths have been replaced with placeholders.

Structure

config/

Drop-in contents for ~/.config/opencode/. Key pieces:

  • AGENTS.md — Global behavioral rules: response style, thinking protocols, git policy, coding standards, documentation workflow
  • opencode.json — Model preferences, MCP servers, permissions, plugin config
  • agent/ — Subagent definitions (docs writer, orchestrator, code reviewer, test engineer)
  • command/ — Slash commands (/context, /progress, /architecture, etc.)
  • skill/ — 23 domain-specific knowledge modules loaded on demand
  • plugin/ — Custom tool extensions (permission checker, context-aware caching, session search, token usage analysis)
  • scripts/ — Helper utilities for dev-plans management, session extraction, cost tracking

dev-plans/

Example structure for a separate work-tracking repo. See dev-plans/README.md.

Getting Started

  1. Copy config/ contents to ~/.config/opencode/
  2. Edit opencode.json — add your API keys, adjust model preferences
  3. Edit AGENTS.md — customize the "About the User" section and path references
  4. Edit scripts/config.json — set your dev-plans path and project mappings
  5. Search for YOUR_ placeholders across all files and replace with your values

License

MIT

About

A cleaned-up version of my own OpenCode config for use as a reference

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors