|
|
4 months ago | |
|---|---|---|
| .github | 4 months ago | |
| .opencode | 4 months ago | |
| assets | 6 months ago | |
| scripts | 4 months ago | |
| .gitignore | 7 months ago | |
| CODE_OF_CONDUCT.md | 4 months ago | |
| CONTRIBUTING.md | 4 months ago | |
| README.md | 4 months ago | |
| env.example | 6 months ago | |
| install.sh | 4 months ago | |
| registry.json | 4 months ago | |
| update.sh | 4 months ago |
AI agent framework for plan-first development workflows with approval-based execution. Multi-language support (TypeScript, Python, Go, Rust) with automatic testing, code review, and validation.
Note: This repository has evolved since the demo video with continuous improvements to make it easier for others to use in their projects. The core concepts remain the same, but installation and component organization have been streamlined.
# Follow official guide
https://opencode.ai/docs
Option A: Interactive Installer (Recommended)
curl -fsSL https://raw.githubusercontent.com/darrenhinde/opencode-agents/main/install.sh | bash
The installer offers:
Option B: Profile-Based Install
# Core essentials only
curl -fsSL https://raw.githubusercontent.com/darrenhinde/opencode-agents/main/install.sh | bash -s core
# Balanced for daily development
curl -fsSL https://raw.githubusercontent.com/darrenhinde/opencode-agents/main/install.sh | bash -s developer
# Everything included
curl -fsSL https://raw.githubusercontent.com/darrenhinde/opencode-agents/main/install.sh | bash -s full
Option C: Manual Install
# Clone this repository
git clone https://github.com/darrenhinde/opencode-agents.git
cd opencode-agents
# Install to OpenCode directory (global)
mkdir -p ~/.opencode
cp -r .opencode/agent ~/.opencode/
cp -r .opencode/command ~/.opencode/
cp -r .opencode/context ~/.opencode/
# Start the main development agent (recommended for new users)
opencode --agent codebase-agent
# Tell it what to build
> "Create a React todo list with TypeScript"
What happens next:
User Request
↓
codebase-agent (main coordinator)
↓
├─→ @task-manager (breaks down complex features)
├─→ @tester (writes and runs tests)
├─→ @reviewer (security and code review)
├─→ @documentation (generates docs)
└─→ @build-agent (type checking and validation)
The workflow:
Context-aware: Agents automatically load patterns from .opencode/context/ to follow your coding standards.
core/essential-patterns.md - Universal coding patternsproject/project-context.md - Your project-specific patternsopencode --agent codebase-agent
> "Create a user authentication system with email/password"
# Agent will:
# 1. Propose implementation plan
# 2. Wait for your approval
# 3. Delegate to @task-manager (creates tasks/subtasks/user-auth/)
# 4. Implement step-by-step
# 5. Use @tester for tests
# 6. Use @reviewer for security review
# Make your changes
git add .
# Use the commit command
/commit
# Auto-generates: ✨ feat: add user authentication system
# Edit your project context
nano ~/.opencode/context/project/project-context.md
# Add your patterns:
# **API Endpoint Pattern:**
# ```typescript
# export async function POST(request: Request) {
# // Your standard pattern
# }
# ```
# Agents will automatically use these patterns!
Get notified when OpenCode sessions go idle.
# Copy plugin directory
cp -r .opencode/plugin ~/.opencode/
# Install dependencies
cd ~/.opencode/plugin
npm install
# Configure
cd ~/opencode-agents
cp env.example .env
# Edit .env with TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID
Get credentials: Message @BotFather on Telegram → /newbot → Save token
See .opencode/plugin/README.md for detailed documentation.
Generate and edit images using Gemini AI.
# Copy tool directory
cp -r .opencode/tool ~/.opencode/
# Install dependencies
cd ~/.opencode/tool
npm install
# Configure
cd ~/opencode-agents
cp env.example .env
# Edit .env with GEMINI_API_KEY
Get API key: https://makersuite.google.com/app/apikey
Key Differentiator: OpenCode Agents is the only framework that combines plan-first workflows, approval-based execution, and multi-agent coordination with your custom coding patterns.
Q: What's the main way to use this?
A: Use opencode --agent codebase-agent for development. It coordinates everything else.
Q: Do I need to install plugins/tools?
A: No, they're optional. Only install if you want Telegram notifications or Gemini AI features.
Q: Where should I install - globally or per-project?
A: Global (~/.opencode/) works for most. Project-specific (.opencode/) if you need different configs per project.
Q: How do I add my own coding patterns?
A: Edit ~/.opencode/context/project/project-context.md - agents automatically load this file.
Q: What languages are supported?
A: The agents work with any language (TypeScript, Python, Go, Rust, etc.) and adapt based on your project files.
Q: What's the AGENT-SYSTEM-BLUEPRINT.md for?
A: It's a teaching document explaining architecture patterns and how to extend the system.
Q: Can I use just one command or agent?
A: Yes! Use the installer's list feature to see all components:
./install.sh --list
Or cherry-pick individual files with curl:
curl -o ~/.opencode/agent/codebase-agent.md \
https://raw.githubusercontent.com/darrenhinde/opencode-agents/main/.opencode/agent/codebase-agent.md
The installer offers four pre-configured profiles:
Essential agents and commands for basic OpenCode usage.
Balanced setup for daily development work.
Complete installation with all available components.
Full installation plus experimental features and planning docs.
Keep your components up to date:
# Update all installed components
./update.sh
# Or re-run the installer
curl -fsSL https://raw.githubusercontent.com/darrenhinde/opencode-agents/main/install.sh | bash
Read AGENT-SYSTEM-BLUEPRINT.md to learn:
@ symbol).opencode/
├── agent/ # AI agents
│ ├── codebase-agent.md
│ ├── task-manager.md
│ └── subagents/ # Specialized helpers
├── command/ # Slash commands
│ ├── commit.md
│ └── optimize.md
├── context/ # Coding patterns
│ ├── core/ # Essential patterns
│ └── project/ # Your patterns
├── plugin/ # Optional: Telegram
└── tool/ # Optional: Gemini AI
This project is licensed under the MIT License.
Start with codebase-agent - it's your main development partner that handles planning, implementation, and quality assurance. It automatically delegates to specialized subagents when needed, so you don't have to manage multiple agents yourself.
opencode --agent codebase-agent
> "Your development task here"
The agent will guide you through the entire development workflow with a plan-first, approval-based approach.
If this helped you out and you're feeling generous, consider funding my coffee habit ☕
Totally optional, but appreciated.