|
|
4 months ago | |
|---|---|---|
| .github | 4 months ago | |
| .opencode | 4 months ago | |
| assets | 6 months ago | |
| dev | 4 months ago | |
| docs | 4 months ago | |
| scripts | 4 months ago | |
| .gitignore | 4 months ago | |
| COMPATIBILITY.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 |
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.
📹 Following along with the video? The simplified structure shown in the tutorial is available on the
video-simplebranch.
https://opencode.ai/docs#
Option A: Interactive Installer
Note: Interactive mode requires downloading the script first (can't run through pipe)
macOS / Linux
# Download the installer
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh -o install.sh
# Run interactively
bash install.sh
Windows (Git Bash)
# Download the installer
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh -o install.sh
# Run interactively
bash install.sh
Windows (PowerShell)
# Download the script
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh" -OutFile "install.sh"
# Run with Git Bash
& "C:\Program Files\Git\bin\bash.exe" install.sh
# Or run with WSL
wsl bash install.sh
Note: Git Bash comes with Git for Windows. Download here
The installer offers:
Updating? The installer detects existing files and lets you choose: skip existing (keep your changes), overwrite all (get latest), or backup & overwrite (safe update). Learn more
Option B: Profile-Based Install (Recommended)
Fastest method: One command, no interaction needed
macOS / Linux / Git Bash / WSL
# Essential - Minimal essentials (9 components)
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh | bash -s essential
# Developer - Recommended for daily work (19 components)
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh | bash -s developer
# Business - Business automation and content creation (15 components)
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh | bash -s business
# Full - Everything included (25 components)
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh | bash -s full
# Advanced - Full + System Builder (32 components)
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh | bash -s advanced
Windows PowerShell
# Download script
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh" -OutFile "install.sh"
# Essential profile
& "C:\Program Files\Git\bin\bash.exe" install.sh essential
# Developer profile
& "C:\Program Files\Git\bin\bash.exe" install.sh developer
# Business profile
& "C:\Program Files\Git\bin\bash.exe" install.sh business
# Full profile
& "C:\Program Files\Git\bin\bash.exe" install.sh full
# Advanced profile
& "C:\Program Files\Git\bin\bash.exe" install.sh advanced
New! The
advancedprofile includes the System Builder - an interactive tool that generates complete custom AI systems tailored to your domain. Learn more
Option C: Manual Install
# Clone this repository
git clone https://github.com/darrenhinde/OpenAgents.git
cd OpenAgents
# 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 universal agent (recommended for new users)
opencode --agent openagent
# Ask questions or request tasks
> "Create a React todo list with TypeScript"
What happens next:
User Request
↓
openagent (universal coordinator)
↓
├─→ @task-manager (breaks down complex features)
├─→ @tester (writes and runs tests)
├─→ @reviewer (security and code review)
├─→ @documentation (generates docs)
├─→ @coder-agent (implementation tasks)
└─→ @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 openagent
> "Create a user authentication system with email/password"
# OpenAgent will:
# 1. Analyze the request (complex task)
# 2. Propose implementation plan
# 3. Wait for your approval
# 4. Delegate to @task-manager (creates task breakdown)
# 5. Coordinate implementation step-by-step
# 6. Use @tester for tests and @reviewer for security
# 7. Validate, summarize, and confirm completion
# 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!
Build complete custom AI systems tailored to your domain in minutes.
The System Builder is an interactive tool that generates complete .opencode architectures customized to your needs.
# Install advanced profile (includes system builder)
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh | bash -s advanced
# Run the interactive builder
/build-context-system
$ /build-context-system
Domain: E-commerce Operations
Purpose: Automate order processing and customer support
# After answering questions, generates:
# - ecommerce-orchestrator (main agent)
# - order-processor, ticket-router, report-generator (subagents)
# - 12 context files (domain knowledge, processes, standards)
# - 5 workflows (process-order, route-ticket, etc.)
# - 5 custom commands (/process-order, /route-ticket, etc.)
# - Complete documentation
Learn more: System Builder Documentation
Get notified when OpenCode sessions go idle.
# Copy plugin directory
cp -r .opencode/plugin ~/.opencode/
# Install dependencies
cd ~/.opencode/plugin
npm install
# Configure
cd ~/OpenAgents
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 ~/OpenAgents
cp env.example .env
# Edit .env with GEMINI_API_KEY
Get API key: https://makersuite.google.com/app/apikey
Q: What's the main way to use this?
A: Use opencode --agent openagent as your default. It handles both questions and tasks, coordinating with specialists as needed.
Q: Does this work on Windows?
A: Yes! Use Git Bash (recommended) or WSL. See Platform Compatibility Guide for details.
Q: What bash version do I need?
A: Bash 3.2+ (works on macOS default bash). Run bash scripts/tests/test-compatibility.sh to check your system.
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 for?
A: It's a teaching document explaining architecture patterns and how to extend the system. See docs/features/agent-system-blueprint.md
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/OpenAgents/main/.opencode/agent/codebase-agent.md
The installer offers five pre-configured profiles:
Minimal starter kit - universal agent with core subagents.
Complete software development environment with code generation, testing, review, and build tools.
Business process automation, content creation, and visual workflows.
Everything included - all agents, subagents, tools, and plugins.
Full installation plus System Builder for creating custom AI architectures.
Keep your components up to date:
# Update all installed components
./update.sh
# Or re-run the installer
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/install.sh | bash
Read Agent System Blueprint 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
We welcome contributions! Please see our Contributing Guide for details.
See also: Code of Conduct
This project is licensed under the MIT License.
Start with openagent - it's your universal assistant that handles everything from simple questions to complex multi-step workflows. It follows a systematic 6-stage workflow (Analyze → Approve → Execute → Validate → Summarize → Confirm) and automatically delegates to specialized subagents when needed.
opencode --agent openagent
> "How do I implement authentication in Next.js?" # Questions
> "Create a user authentication system" # Tasks
OpenAgent will guide you through with a plan-first, approval-based approach. For questions, you get direct answers. For tasks, you see the plan before execution.
Learn more: See the OpenAgent Guide for detailed workflow diagrams and tips.
If this helped you out and you're feeling generous, consider funding my coffee habit ☕
Totally optional, but appreciated.