OpenCode agent system configuration for AI-assisted software development workflows.
This repository contains a comprehensive OpenCode configuration implementing a multi-agent system for software development, testing, documentation, and DevOps workflows. It provides structured, reproducible AI-assisted development through agents, skills, and commands.
.
├── AGENTS.md # Core agent system documentation
├── agents/ # Agent definitions (17 agents)
├── commands/ # Slash commands (47 commands)
├── skills/ # Skill library (154 skills)
├── plugins/ # OpenCode plugins and extensions
├── scripts/ # Automation scripts
├── tests/ # Test suite
├── opencode.json # Core configuration
└── oh-my-opencode.jsonc # Extended configuration
Specialized agents for domain-specific tasks:
- Senior-Engineer - Software engineering and implementation
- QA-Engineer - Testing strategy and quality assurance
- Tech-Lead - Architecture and technical leadership
- DevOps - CI/CD and infrastructure
- Security-Engineer - Security auditing
- Data-Analyst - Data analysis and metrics
- Writer - Documentation and content
- Editor - Editorial review
- Knowledge Base Curator - Knowledge management
- VHS-Director - Terminal recordings
- Embedded-Engineer - Embedded systems
- Researcher - Research and investigation
- Code-Reviewer - PR review
- SysOp - System operations
- Linux-Expert - Linux administration
- Nix-Expert - Nix package management
- Model-Evaluator - Model testing
Workflow automation commands including:
/commit- AI-assisted git commits/pr- Pull request creation/test- Test generation and execution/review- Code review/refactor- Refactoring workflows/debug- Debugging assistance/research- Investigation workflows/vhs- Terminal recording- And 39 more...
Comprehensive skill library covering:
- Development: golang, ruby, javascript, cpp, python
- Testing: ginkgo-gomega, jest, cypress, rspec, cucumber
- Architecture: design patterns, clean code, api-design
- DevOps: docker, aws, heroku, nix, automation
- Documentation: writing-style, api-documentation, accessibility-writing
- Workflows: bdd-workflow, git-master, pr-review-workflow
- Communication: email-communication, incident-communication
- And 140+ more...
- OpenCode installed
- Git
- Node.js/Bun (for plugins)
# Clone the repository
git clone https://github.com/baphled/dotopencode.git
# Symlink to OpenCode config directory
ln -s "$(pwd)/dotopencode" ~/.config/opencode
# Or add as git submodule to your dotfiles
cd ~/dotfiles
git submodule add https://github.com/baphled/dotopencode.git .config/opencode# Use slash commands
/commit "feat: add new feature"
/test path/to/file.go
/pr "Feature implementation"
# Or invoke agents directly via OpenCode CLI
opencode --agent Senior-Engineer "Implement authentication"Agents automatically delegate to specialists:
// Orchestrator delegates to specialist
task(
subagent_type="Senior-Engineer",
load_skills=["golang", "clean-code", "bdd-workflow"],
description="Implement user service",
prompt="Create user service with CRUD operations following repository pattern"
)Skills use progressive disclosure - load only what's needed:
// Mandatory always-active skills
["pre-action", "memory-keeper", "discipline"]
// Task-specific skills
task(
category="quick",
load_skills=["golang", "ginkgo-gomega"],
description="Add unit tests"
)Core OpenCode configuration with MCP server setup:
{
"mcpServers": {
"memory": {...},
"vault-rag": {...},
"websearch": {...}
}
}Extended configuration with:
- Model routing (T1/T2/T3 tiers)
- Agent definitions
- Provider health monitoring
- Category-based delegation
- Always-Active Skills - Mandatory skills loaded on every task
- Parallel Execution - Independent tasks run simultaneously
- Progressive Disclosure - Load skills only when needed
Hybrid approach combining git-master planning + make ai-commit execution:
# Plan commit structure
/commit
# Executes: task(load_skills=["git-master"], ...)
# Writes to tmp/commit.txt
# Runs: make ai-commit FILE=tmp/commit.txtThree-tier system optimized for task complexity:
- T1 (gpt-5-mini, Haiku) - Exploration, search
- T2 (gpt-4.1, Sonnet 4) - Implementation, tests
- T3 (gpt-5.2, Opus 4.6) - Architecture, novel problems
# BATS tests for skill import pipeline
bun test
# Plugin tests
cd plugins && bun test/new-skill "skill-name" "Description of skill"Create agent definition in agents/:
---
name: agent-name
model: claude-sonnet-4-5
tier: T2
---
## Description
...See CONTRIBUTING.md for contribution guidelines.
MIT License - see LICENSE
Built with OpenCode and inspired by:
- The Cascade methodology
- AI-assisted development workflows
- Knowledge management best practices
Extracted from: baphled/dotfiles
Created by: Yomi Colledge (@baphled)