β οΈ ALPHA SOFTWARE - USE AT YOUR OWN RISKThis is 100% vibe-coded alpha software. Expect breaking changes, bugs, and incomplete features. Feedback and contributions welcome to help shape the development of this workflow kit.
Status: Early Development β’ Stability: Experimental β’ Support: Community-driven
A specialized agent suite and automation framework for development workflows, designed to eliminate setup pain and provide AI-driven development capabilities.
OpenCode Workflow Kit provides a modular, cross-platform system of specialized agents and automated workflows for AI-driven development. The framework supports both global and project-level settings with cascading configuration from project-specific to global defaults.
- Modular Structure: Separate configurations for agents, MCP servers, and permissions
- Cross-Platform Support: Works seamlessly on macOS, Linux, and Windows
- Cascading Configuration: Project β Global β Defaults hierarchy
- Shareable: Easy to distribute and reuse configurations across teams
- Validated: JSON Schema validation ensures configuration integrity
- :cody Integration: Complete OpenCode commands and subagents for :cody workflows
- uv (recommended): Fast Python package installer and environment manager
# Install uv curl -LsSf https://astral.sh/uv/install.sh | sh
-
Clone this repository:
git clone https://github.com/pwarnock/opencode-workflow-kit.git cd opencode-workflow-kit -
Set up the environment with uv:
uv sync
-
Run the setup script:
./setup.sh
-
Create virtual environment:
uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
Install dependencies:
uv pip install -e . -
Copy global configurations to
~/.opencode/:cp -r config/global/* ~/.opencode/
-
For project-specific usage, copy project configurations:
cp -r config/project/.opencode ./your-project/
opencode-config/
βββ config/
β βββ global/ # Global configurations (~/.opencode/)
β β βββ agent/ # Agent settings
β β βββ mcp/ # MCP server configurations
β β βββ permissions/ # Permission matrices
β βββ project/ # Project-level configurations (.opencode/)
β βββ .opencode/
βββ schemas/ # JSON Schema validation files
βββ examples/ # Example configurations
βββ docs/ # Documentation
This package includes complete integration between OpenCode and :cody framework:
/cody plan- Execute :cody planning workflow/cody build- Execute :cody build workflow/cody version add- Add new version/cody version build- Build specific version/cody refresh- Refresh project state
# Install :cody integration
uv run python scripts/install-cody-integration.py
# Validate installation
uv run python scripts/validate-cody-integration.pyπ See docs/CODY_INTEGRATION.md for complete documentation
π Agent Architecture Diagrams - Visual representation of the enhanced agent system:
- Enhanced Agent Architecture - Complete system overview with delegation patterns and governance
- Architecture Diagrams - Multiple diagram views including process flows and delegation matrices
These diagrams illustrate the specialized subagent system with proper separation of concerns, delegation patterns, and checks/balances governance model.
The project uses uv for fast Python environment management:
# Create and activate virtual environment
uv sync
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Or use uv run for one-off commands
uv run python scripts/test-compatibility.pyUse pre-built environment templates for different development scenarios:
# List available templates
uv run python scripts/environment-templates.py list
# Apply a web development template
uv run python scripts/environment-templates.py apply web-development ./my-web-project
# Apply a Python development template
uv run python scripts/environment-templates.py apply python-development ./my-python-project
# Create your own template
uv run python scripts/environment-templates.py create my-template "Description" ./config-sourceGlobal configurations are stored in ~/.opencode/ and apply to all opencode sessions unless overridden by project-specific settings.
Project-specific configurations are stored in .opencode/ directory in your project root and override global settings.
- Project-level (
.opencode/) - Highest priority - Global (
~/.opencode/) - Medium priority - Defaults - Built-in defaults - Lowest priority
# Test compatibility across platforms
uv run python scripts/test-compatibility.py
# Validate specific configuration
uv run python scripts/config-validator.py config/global/agent/default.json
# Validate all configurations
uv run python scripts/config-validator.py config/
# Use the CLI tool
uv run opencode-config validate config/
uv run opencode-config test- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
β v0.1.0 MVP Complete - All core functionality implemented and tested.
- β Cross-platform configuration structure
- β Global and project-level configurations
- β Configuration inheritance system
- β JSON Schema validation
- β Path normalization utilities
- β Permission matrix system
- β MCP server configurations
- β Example configurations for web and Python development
- β Comprehensive testing suite
- β uv and .venv support for fast environment management
- β Environment template system for quick project setup
- β Automated setup script with cross-platform support
- web-development: React, Node.js, TypeScript projects
- python-development: Python, data science, web frameworks
- minimal: Basic configuration for general use
- Environment Setup: Run
uv syncto create .venv and install dependencies - Global Setup: Copy
config/global/to~/.opencode/ - Project Setup: Use environment templates or copy
config/project/.opencode/to your project root - Validate: Run
uv run python scripts/test-compatibility.py - Customize: Modify configurations as needed
opencode-config/
βββ config/
β βββ global/ # Global configurations
β β βββ agent/ # Agent settings
β β βββ mcp/ # MCP server configs
β β βββ permissions/ # Permission matrices
β βββ project/ # Project-specific configs
β βββ .opencode/ # Project config template
βββ schemas/ # JSON Schema definitions
βββ examples/ # Example configurations
βββ scripts/ # Utility scripts
βββ docs/ # Documentation
Issue: uv: command not found
# Solution: Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.bashrc # or restart terminalIssue: ./setup.sh: Permission denied
# Solution: Make script executable
chmod +x setup.sh
./setup.shIssue: Python module import errors
# Solution: Ensure virtual environment is activated
source .venv/bin/activate # Linux/macOS
# or
.venv\Scripts\activate # Windows
# Or use uv run
uv run python scripts/test-compatibility.pyIssue: Schema validation failed
# Check specific configuration file
uv run python scripts/config-validator.py config/global/agent/default.json
# Common fixes:
# - Missing required fields (name, description, version)
# - Invalid file paths (use forward slashes)
# - Incorrect JSON syntaxIssue: Template application fails
# Validate template before applying
uv run python scripts/environment-templates.py list
# Check generated files
uv run python scripts/config-validator.py ./output-directoryIssue: Configuration not loading
# Check file locations and permissions
ls -la ~/.opencode/
ls -la ./.opencode/
# Ensure correct paths in configuration files
# Use ~ for home directory, not full pathsWindows:
- Use PowerShell instead of bash for setup script
- Replace
~with%USERPROFILE%in manual configuration - Use
.venv\Scripts\activatefor virtual environment
macOS:
- If Homebrew Python conflicts, use
/usr/bin/python3 - Gatekeeper may block scripts:
xattr -d com.apple.quarantine setup.sh
Linux:
- Install system dependencies:
sudo apt install python3-venv(Ubuntu/Debian) - Check file permissions in
/home/user/.opencode/
Issue: Compatibility test failures
# Run detailed compatibility check
uv run python scripts/test-compatibility.py --verbose
# Common fixes:
# - Install missing dependencies: uv sync
# - Check Python version: python3 --version
# - Verify file permissionsIssue: Path resolution errors
# Test path utilities
uv run python scripts/test-path-utils.py
# Fix path issues:
# - Use forward slashes (/) in all configs
# - Use ~ for home directory expansion
# - Avoid relative paths in global configsIssue: Slow configuration loading
# Check for large files in config directories
find ~/.opencode/ -type f -size +1M
# Remove cache files if needed
rm -rf ~/.cache/opencode/Issue: Memory errors with large projects
# Adjust configuration limits
# Edit agent config: max_file_size, max_concurrent_operations
# Use project-specific configs instead of global for large repos- Check logs: Look for error messages in terminal output
- Validate configuration: Use
uv run python scripts/config-validator.py - Test compatibility: Run
uv run python scripts/test-compatibility.py - Review examples: Check
examples/for working configurations - Open an issue: Include error messages and system information
Enable verbose output for troubleshooting:
# Set environment variable
export OPENCODE_DEBUG=1
# Or use verbose flags
uv run python scripts/config-validator.py --verbose config/
uv run python scripts/test-compatibility.py --verboseMIT License - see LICENSE file for details.
β οΈ ALPHA SOFTWARE - USE AT YOUR OWN RISKThis is 100% vibe-coded alpha software. Expect breaking changes, bugs, and incomplete features. Feedback and contributions welcome to help shape the development of this workflow kit.
Status: Early Development β’ Stability: Experimental β’ Support: Community-driven
For issues and questions:
- Open an issue on GitHub (feedback especially welcome!)
- Check documentation in
docs/ - Review example configurations in
examples/ - Report bugs and breaking issues to help improve alpha quality