No Description

Darren Hinde 5c78f35c4b fix(ci): remove [skip ci] from version bump commits (#50) 4 months ago
.github 5c78f35c4b fix(ci): remove [skip ci] from version bump commits (#50) 4 months ago
.opencode 784ffadf92 chore: verify and stabilize main branch (#42) 4 months ago
assets e073c5bb2e ๐Ÿ—‘๏ธ chore: remove deprecated Gemini tool files and update package configuration for improved structure 6 months ago
dev fc29fa3dc4 feat: add PR template and automated doc sync workflow (#40) 4 months ago
docs 784ffadf92 chore: verify and stabilize main branch (#42) 4 months ago
evals 784ffadf92 chore: verify and stabilize main branch (#42) 4 months ago
scripts 784ffadf92 chore: verify and stabilize main branch (#42) 4 months ago
src 784ffadf92 chore: verify and stabilize main branch (#42) 4 months ago
.gitignore c19d8c5480 Merge main into dev: sync subagent invocation improvements and context guide 4 months ago
CHANGELOG.md c940fa1f1b chore: version and docs sync v0.3.1 (#47) 4 months ago
COMPATIBILITY.md ca323285b2 Rename to OpenAgents, remove model specs, and update documentation 4 months ago
Makefile fc29fa3dc4 feat: add PR template and automated doc sync workflow (#40) 4 months ago
QUICK_START.md aebd68e046 feat: add monorepo structure with versioning and CI/CD 4 months ago
README.md c6775bbc40 chore: consolidate development changes and refactor agent system 4 months ago
ROADMAP.md fc29fa3dc4 feat: add PR template and automated doc sync workflow (#40) 4 months ago
VERSION c940fa1f1b chore: version and docs sync v0.3.1 (#47) 4 months ago
env.example 25e6e919be โœจ feat: add Gemini API key configuration to env.example for integration 6 months ago
install.sh e428f4ecfd Update install.sh (#30) 4 months ago
package-lock.json 784ffadf92 chore: verify and stabilize main branch (#42) 4 months ago
package.json c940fa1f1b chore: version and docs sync v0.3.1 (#47) 4 months ago
registry.json 79110ed3fb Add Production-Ready Eval Framework for OpenAgent (#25) 4 months ago
test-agent-manual.mjs f773b290ce chore(evals): comprehensive cleanup, documentation, and test infrastructure improvements 4 months ago
update.sh ca323285b2 Rename to OpenAgents, remove model specs, and update documentation 4 months ago

README.md

# OpenAgents ### AI agent framework for plan-first development workflows with approval-based execution [![GitHub stars](https://img.shields.io/github/stars/darrenhinde/OpenAgents?style=social)](https://github.com/darrenhinde/OpenAgents/stargazers) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub last commit](https://img.shields.io/github/last-commit/darrenhinde/OpenAgents)](https://github.com/darrenhinde/OpenAgents/commits/main) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](docs/contributing/CONTRIBUTING.md) [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-support-yellow.svg?style=flat&logo=buy-me-a-coffee)](https://buymeacoffee.com/darrenhinde) **Multi-language support:** TypeScript โ€ข Python โ€ข Go โ€ข Rust **Features:** Automatic testing โ€ข Code review โ€ข Validation > **๐Ÿš€ Future Plans:** Currently optimized for OpenCode CLI. Support for other AI coding tools (Cursor, Claude Code, etc.) will be added after stabilizing the OpenCode integration.

Watch Demo

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-simple branch.

Why Use This?

  • โœ… Multi-language support - Works with TypeScript, Python, Go, Rust, and more
  • โœ… Plan-first workflow - Agents propose plans before implementing
  • โœ… Incremental execution - Step-by-step implementation with validation
  • โœ… Quality built-in - Automatic testing, type checking, and code review
  • โœ… Your patterns - Agents follow your coding standards from context files

Quick Start

Step 1: Install OpenCode CLI (Follow official guide)

https://opencode.ai/docs# 

Step 2: Install Agents & Commands

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:

  • ๐ŸŽฏ Quick Profiles: Essential, Developer, Business, Full, or Advanced
  • ๐ŸŽจ Custom Selection: Pick exactly what you need
  • ๐Ÿ“ฆ Smart Dependencies: Auto-installs required components
  • โœจ Interactive Menus: User-friendly component browser
  • ๐Ÿ›ก๏ธ Collision Detection: Safely handles existing files with 4 strategies (skip/overwrite/backup/cancel)
  • ๐Ÿ–ฅ๏ธ Cross-Platform: Works on macOS, Linux, and Windows (Git Bash/WSL)

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 advanced profile 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/

Step 3: Start Building

# 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:

  1. OpenAgent analyzes your request (question or task)
  2. For tasks: proposes a plan and asks for approval
  3. Executes step-by-step with validation
  4. Delegates to specialists (@task-manager, @tester, @reviewer) when needed
  5. Confirms completion and offers cleanup

How It Works

User Request
    โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Main Agents (User-Facing)           โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  openagent     โ”‚ General tasks        โ”‚
โ”‚  opencoder     โ”‚ Complex coding       โ”‚
โ”‚  system-builderโ”‚ AI system generation โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
    โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Specialized Subagents                โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Core:         task-manager, docs     โ”‚
โ”‚  Code:         coder, tester, reviewerโ”‚
โ”‚  Utils:        image-specialist       โ”‚
โ”‚  Meta:         domain-analyzer, etc.  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The workflow:

  1. You describe what you want to build
  2. Agent plans the implementation steps
  3. You approve the plan
  4. Agent implements incrementally with validation
  5. Quality checks run automatically (tests, types, linting)
  6. Subagents handle specialized tasks (testing, review, docs)

Context-aware: Agents automatically load patterns from .opencode/context/ to follow your coding standards.


What's Included

๐Ÿค– Main Agents

  • openagent - Universal coordinator for general tasks, questions, and workflows (recommended default)
  • opencoder - Specialized development agent for complex coding, architecture, and refactoring
  • system-builder - Meta-level generator for creating custom AI architectures

๐Ÿ”ง Specialized Subagents (Auto-delegated)

Core Coordination:

  • task-manager - Task breakdown and planning
  • documentation - Documentation authoring

Code Specialists:

  • coder-agent - Quick implementation tasks
  • reviewer - Code review and security analysis
  • tester - Test creation and validation
  • build-agent - Build and type checking
  • codebase-pattern-analyst - Pattern discovery

Utilities:

  • image-specialist - Image generation with Gemini AI

System Builder (Meta-Level):

  • domain-analyzer - Domain analysis and agent recommendations
  • agent-generator - XML-optimized agent generation
  • context-organizer - Context file organization
  • workflow-designer - Workflow design
  • command-creator - Custom command creation

โšก Commands

  • /commit - Smart git commits with conventional format
  • /optimize - Code optimization
  • /test - Testing workflows
  • /clean - Cleanup operations
  • /context - Context management
  • /prompt-enchancer - Improve your prompts
  • /worktrees - Git worktree management
  • /validate-repo - Validate repository consistency

๐Ÿ“š Context Files

  • core/essential-patterns.md - Universal coding patterns
  • project/project-context.md - Your project-specific patterns

Example Workflows

Build a Feature

opencode --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 a Commit

# Make your changes
git add .

# Use the commit command
/commit

# Auto-generates: โœจ feat: add user authentication system

Add Your Patterns

# 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!

๐Ÿ—๏ธ System Builder (New!)

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.

Quick Start

# 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

What It Does

  • ๐ŸŽฏ Interactive Interview - Asks about your domain, use cases, and requirements
  • ๐Ÿค– Generates Complete System - Creates orchestrator, subagents, context files, workflows, and commands
  • ๐Ÿ”— Integrates with Existing - Detects and reuses your existing agents
  • ๐Ÿ›ก๏ธ Safe Merging - Won't overwrite your work, offers merge strategies
  • ๐Ÿ“š Production-Ready - Includes documentation, testing guides, and examples

Example

$ /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


Optional Add-ons

๐Ÿ“ฑ Telegram Notifications

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.

๐ŸŽจ Gemini AI Image Tools

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


Common Questions

Q: What's the main way to use this?
A: Use opencode --agent openagent as your default for general tasks and questions. For complex multi-file coding work, use opencode --agent opencoder. Both coordinate 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/opencoder.md \
  https://raw.githubusercontent.com/darrenhinde/OpenAgents/main/.opencode/agent/opencoder.md

Installation Profiles

The installer offers five pre-configured profiles:

๐ŸŽฏ Essential (Minimal - 9 components)

Minimal starter kit - universal agent with core subagents.

  • Agents: openagent
  • Subagents: task-manager, documentation
  • Commands: context, clean
  • Tools: env
  • Context: essential-patterns, project-context
  • Config: env-example
  • Best for: Learning the system, lightweight tasks, minimal setup

๐Ÿ’ผ Developer (Recommended - 30 components)

Complete software development environment with code generation, testing, review, and build tools.

  • Everything in Essential, plus:
  • Agents: opencoder
  • Subagents: coder-agent, reviewer, tester, build-agent, codebase-pattern-analyst
  • Commands: commit, test, optimize, validate-repo
  • Context: All standards and workflow files (code, patterns, tests, docs, analysis, delegation, sessions, task-breakdown, review, context-guide)
  • Config: readme
  • Best for: Most developers, daily use, full-featured development

๐Ÿ“Š Business (15 components)

Business process automation, content creation, and visual workflows.

  • Agents: openagent
  • Subagents: task-manager, documentation, image-specialist
  • Commands: context, clean, prompt-enhancer
  • Tools: env, gemini (AI image generation)
  • Plugins: notify, telegram-notify
  • Context: essential-patterns, project-context
  • Config: env-example, readme
  • Best for: Business automation, content creation, non-developers

๐Ÿ“ฆ Full (36 components)

Everything included - all agents, subagents, tools, and plugins.

  • Everything in Developer and Business combined, plus:
  • Commands: worktrees (git worktree management), validate-repo
  • Best for: Power users, exploring all features

๐Ÿš€ Advanced (43 components)

Full installation plus System Builder for creating custom AI architectures.

  • Everything in Full, plus:
  • Agents: system-builder
  • System Builder Subagents: domain-analyzer, agent-generator, context-organizer, workflow-designer, command-creator
  • Commands: build-context-system
  • Best for: Building custom AI systems, contributors, learning the architecture

Updating Components

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

Advanced

Understanding the System

Read Agent System Blueprint to learn:

  • How context loading works (the @ symbol)
  • Agent architecture patterns
  • How to create custom agents and commands
  • How to extend the system for your needs

Safety & Security

  • Approval-first workflow - Agents propose plans before execution
  • Configurable permissions - Granular control over agent capabilities
  • Secure credentials - Environment variables for sensitive data
  • Input sanitization - Protection against injection attacks

Project Structure

.opencode/
โ”œโ”€โ”€ agent/              # AI agents
โ”‚   โ”œโ”€โ”€ openagent.md
โ”‚   โ”œโ”€โ”€ opencoder.md
โ”‚   โ”œโ”€โ”€ system-builder.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

Contributing

We welcome contributions! Please see our Contributing Guide for details.

  1. Follow the established naming conventions and coding standards
  2. Write comprehensive tests for new features
  3. Update documentation for any changes
  4. Ensure security best practices are followed

See also: Code of Conduct


License

This project is licensed under the MIT License.


Recommended for New Users

Start with openagent - your universal coordinator for general tasks, questions, and 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"            # Simple tasks
> "Create a README for this project"               # Documentation

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.

For complex coding work, use opencoder:

opencode --agent opencoder
> "Refactor this codebase to use dependency injection"  # Multi-file refactoring
> "Analyze the architecture and suggest improvements"   # Architecture analysis

Learn more:


Support This Work

If this helped you out and you're feeling generous, consider funding my coffee habit โ˜•

Buy Me A Coffee

Totally optional, but appreciated.