A comprehensive agent framework and installer for the OpenCode CLI ecosystem, designed to streamline development workflows with specialized agents, reusable skills, and structured command patterns.
Super-OpenCode provides a structured framework for AI-assisted software development, featuring:
- Specialized Agent Personas: Pre-configured agents for different domains (Backend, Frontend, Architecture, Security, QA, etc.)
- Reusable Skills: Modular capabilities for confidence checking, self-correction, debugging, and more
- Slash Commands: Pre-built workflows for common development tasks
- MCP Integration: Built-in support for Model Context Protocol servers
- Quality Standards: Enforced best practices and documentation standards
- Node.js 18+
- npm, pnpm, or yarn
npm install -g super-opencodeThen run the interactive installer:
super-opencodeThe installer will guide you through:
- Choosing installation scope (global or project)
- Selecting components to install (agents, commands, skills, core)
- Configuring optional MCP servers (Context7, Serena, Tavily, etc.)
After npm install, the framework files will be available at:
Global Installation:
- Linux/macOS:
~/.config/opencode/ - Windows:
%APPDATA%\opencode\
Project Installation:
- All Platforms: Files are copied to the current working directory under
.opencode/andAGENTS.md
Super-OpenCode includes specialized agents for different domains:
| Agent | Purpose |
|---|---|
| pm-agent | Project orchestration, PDCA cycles, documentation |
| architect | System design, architecture, technical strategy |
| backend | APIs, databases, server-side logic |
| frontend | UI/UX, components, styling |
| security | Security review, threat modeling |
| quality | Testing, code review |
| researcher | Deep research, fact-checking |
| writer | Technical documentation |
| reviewer | Code review, quality assurance |
| optimizer | Performance optimization |
Reusable capabilities that agents can invoke:
- confidence-check: Pre-execution risk assessment
- self-check: Post-implementation validation
- security-audit: OWASP Top 10 vulnerability detection
- reflexion: Post-action analysis and learning
- debug-protocol: Root cause analysis workflow
- simplification: Complexity reduction
- package-manager: Multi-language package manager detection (npm, yarn, pnpm, poetry, cargo, and 40+ more)
Pre-built workflows for common tasks:
/soc-implement- Code implementation with best practices/soc-design- System design and architecture/soc-test- Test generation and execution/soc-research- Deep research and documentation/soc-review- Code review and quality checks/soc-brainstorm- Idea generation and problem-solving/soc-analyze- Codebase analysis/soc-cleanup- Code cleanup and refactoring/soc-explain- Code explanation/soc-workflow- PDCA workflow management/soc-pm- Project management tasks/soc-git- Git operations/soc-improve- Continuous improvement/soc-help- Help and documentation
Super-OpenCode includes a powerful multi-language package manager detection system that automatically identifies the correct package manager for any project:
Supported Languages: JavaScript/TypeScript, Python, Go, Rust, Java, Ruby, PHP, .NET, Elixir, Haskell, C/C++, Swift, Scala, Clojure, Julia, R
Quick Usage:
# After installing super-opencode
detect-pm
# Or use directly from node_modules
npx super-opencode detect-pm
# Get JSON output for CI/CD
detect-pm --json
# Detect specific language
detect-pm python
detect-pm javascriptExample Output:
{
"languages": [
{
"language": "javascript",
"package_manager": "pnpm",
"confidence": 95,
"commands": {
"install": "pnpm install --frozen-lockfile",
"add": "pnpm add"
}
}
]
}CI/CD Integration:
- name: Detect Package Manager
run: |
PM=$(npx detect-pm --recommend)
$PM installThe framework supports configuration of various MCP servers:
Recommended (Core):
- Context7 - Official documentation lookup
- Serena - Codebase analysis and navigation
- Tavily Search - Web search for research
- Filesystem - File system access
- Sequential Thinking - Multi-step reasoning
Optional:
- GitHub - GitHub API integration
- SQLite - Database operations
- Chrome DevTools - Browser debugging
- Playwright - Browser automation
super-opencode/
├── src/
│ └── cli.ts # Main installer CLI
├── .opencode/
│ ├── agents/ # Agent persona definitions
│ │ ├── architect.md
│ │ ├── backend.md
│ │ ├── frontend.md
│ │ └── ...
│ ├── commands/ # Slash command definitions
│ │ ├── soc-implement.md
│ │ ├── soc-design.md
│ │ └── ...
│ └── skills/ # Reusable skill modules
│ ├── confidence-check/
│ ├── self-check/
│ ├── security-audit/
│ └── ...
├── AGENTS.md # Core principles and guidelines
├── package.json
├── tsconfig.json
└── biome.json # Linting configuration
- Read AGENTS.md - This file contains core principles, development workflows, and quality standards
- Configure MCP Servers - Set up the MCP servers you need for your workflow
- Use Slash Commands - Invoke the appropriate command for your task
/soc-implement "User Authentication" --agent backend/soc-design "Microservices Architecture"/soc-review/soc-research "Best practices for React state management"Super-OpenCode enforces a structured development approach:
- Always verify with official sources
- Use context7 MCP for documentation lookup
- Check existing code before implementing
- Never guess or make assumptions
- Check confidence before starting work
- ≥90%: Proceed with implementation
- 70-89%: Investigate more, present alternatives
- <70%: STOP - ask questions, gather context
- Use Wave → Checkpoint → Wave pattern
- Batch read operations together
- Analyze together before editing
- 3.5x faster than sequential execution
When errors occur:
- STOP - Don't retry immediately
- INVESTIGATE - Research root cause
- HYPOTHESIZE - Form theory with evidence
- REDESIGN - New approach
- EXECUTE - Implement based on understanding
- LEARN - Document for prevention
After installation, configuration is stored in platform-specific locations:
Global Configuration:
- Linux:
~/.config/opencode/opencode.json(follows XDG Base Directory Specification) - macOS:
~/Library/Application Support/opencode/opencode.json - Windows:
%APPDATA%\opencode\opencode.json(typicallyC:\Users\<username>\AppData\Roaming\opencode\opencode.json)
Project Configuration:
- All Platforms:
./opencode.jsonin your project root
Environment Variables:
OPENCODE_CONFIG_DIR: Override the global config directoryOPENCODE_CONFIG: Override the full path to the config fileOPENCODE_CONFIG_CONTENT: Provide inline JSON configuration
When installing Super-OpenCode globally:
- Linux:
~/.config/opencode/(follows XDG Base Directory Specification) - macOS:
~/.config/opencode/(same as Linux for consistency with OpenCode) - Windows:
%APPDATA%\opencode\(typicallyC:\Users\<username>\AppData\Roaming\opencode\)
Note: Framework files (agents, commands, skills) are stored alongside the OpenCode config file for easy access.
Project Installation:
- All Platforms: Current working directory (where you run the installer)
MCP servers are configured in the mcp section of your config. According to the OpenCode MCP documentation:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"context7": {
"type": "local",
"command": ["npx", "-y", "@upstash/context7-mcp"],
"enabled": true
},
"filesystem": {
"type": "local",
"command": [
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/project"
]
},
"tavily": {
"type": "local",
"command": ["npx", "-y", "tavily-mcp@latest"],
"environment": {
"TAVILY_API_KEY": "your-api-key"
}
}
}
}Note: MCP servers can be enabled/disabled per agent by modifying the agent configuration. For more details, see the official OpenCode MCP docs.
- All public functions require docstrings
- Use type hints where supported
- Follow existing project patterns
- Include usage examples for complex functions
- Current with "Last Verified" dates
- Minimal but necessary information
- Clear with concrete examples
- Practical and copy-paste ready
- Write tests for new functionality
- Aim for >80% code coverage
- Include edge cases and error conditions
- Run full test suite before major changes
# Install dependencies
npm install
# Build
npm run build
# Lint
npm run lint
# Format
npm run formatContributions are welcome! Please follow these guidelines:
- Read AGENTS.md to understand the framework philosophy
- Follow existing code patterns and quality standards
- Add tests for new functionality
- Update documentation as needed
- Submit pull requests with clear descriptions
MIT License - See LICENSE file for details.
Created by lst97
Built with ❤️ for the AI-assisted development community