Browse Source

fix: Restore main README and add Claude Code plugin section

- Remove CLAUDE-CODE-PLUGIN-ANALYSIS.md (not needed)
- Remove ENHANCEMENTS-SUMMARY.md (not needed)
- Restore comprehensive README from main branch
- Add Claude Code plugin section under Quick Start
- Update plugin features (7 subagents, 9 skills, 6 commands)
- Add flexible context discovery feature
- Add /oac:plan and /oac:add-context commands
darrenhinde 5 months ago
parent
commit
63fa018b56
3 changed files with 757 additions and 1253 deletions
  1. 0 728
      CLAUDE-CODE-PLUGIN-ANALYSIS.md
  2. 0 491
      ENHANCEMENTS-SUMMARY.md
  3. 757 34
      README.md

+ 0 - 728
CLAUDE-CODE-PLUGIN-ANALYSIS.md

@@ -1,728 +0,0 @@
-# Claude Code Plugin - Gap Analysis & Recommendations
-
-**Date**: 2026-02-16  
-**Status**: Production-ready with identified gaps  
-**PR**: #219
-
----
-
-## Executive Summary
-
-The Claude Code plugin is **production-ready** but has **4 critical gaps** that affect user experience and workflow efficiency:
-
-1. ❌ **Missing Planning Command** - No easy way to plan/break down tasks
-2. ❌ **Missing Context Addition Command** - No way to add context files easily
-3. ⚠️ **Inconsistent Subagent Invocation** - Format varies across skills
-4. ⚠️ **Explorer/ContextScout Behavior** - Not fully consistent with OpenCode
-
----
-
-## Gap 1: Missing Planning Command ❌
-
-### Current State
-
-**What exists**:
-- `/task-breakdown` skill - Invokes task-manager subagent
-- Requires user to manually invoke via skill syntax
-- Part of Stage 4 (Execute) in 6-stage workflow
-
-**Problem**:
-- Users must type: "Use the task-manager subagent to break down..."
-- No simple slash command like `/oac:plan` or `/oac:breakdown`
-- Planning is buried in execution stage, not easily accessible
-
-### Recommended Solution
-
-**Add new command**: `/oac:plan`
-
-**Purpose**: Make task planning/breakdown easily accessible
-
-**Implementation**:
-```markdown
----
-name: oac:plan
-description: Plan and break down a complex feature into atomic subtasks
-argument-hint: [feature description]
----
-
-# Plan Feature
-
-Break down the following feature into atomic subtasks: $ARGUMENTS
-
-## Process
-
-1. **Analyze requirements** - Understand scope and complexity
-2. **Discover context** - Find relevant standards and patterns
-3. **Create task breakdown** - Generate subtask files with dependencies
-4. **Present plan** - Show task structure and execution order
-
-## Invocation
-
-This command invokes the task-manager subagent with pre-loaded context to create:
-- `.tmp/tasks/{feature}/task.json` - Feature metadata
-- `.tmp/tasks/{feature}/subtask_NN.json` - Individual subtasks
-
-## Usage Examples
-
-```bash
-# Plan a feature
-/oac:plan user authentication system
-
-# Plan with specific context
-/oac:plan API rate limiting (security focus)
-
-# Plan with constraints
-/oac:plan payment integration (PCI compliance required)
-```
-
-## Output
-
-Task files created in `.tmp/tasks/{feature}/` with:
-- Clear dependencies
-- Parallel execution flags
-- Acceptance criteria
-- Suggested agents
-```
-
-**Benefits**:
-- ✅ Easy to discover and use
-- ✅ Separates planning from execution
-- ✅ Consistent with other `/oac:*` commands
-- ✅ Reduces cognitive load for users
-
----
-
-## Gap 2: Missing Context Addition Command ❌
-
-### Current State
-
-**What exists**:
-- `/oac:setup` - Downloads context from GitHub
-- `/context-manager` skill - Manages context configuration
-- Manual file creation for custom context
-
-**Problem**:
-- No easy way to add custom context files
-- No command to add context from GitHub worktrees
-- Users must manually create files in `.opencode/context/`
-
-### Recommended Solution
-
-**Add new command**: `/oac:add-context`
-
-**Purpose**: Easily add context files from various sources
-
-**Implementation**:
-```markdown
----
-name: oac:add-context
-description: Add context files from GitHub, worktrees, or local files
-argument-hint: [source] [options]
----
-
-# Add Context
-
-Add context files to your project: $ARGUMENTS
-
-## Sources
-
-### 1. GitHub Repository
-```bash
-# Add from GitHub repo
-/oac:add-context github:owner/repo
-
-# Add specific path
-/oac:add-context github:owner/repo/path/to/context
-
-# Add specific branch/tag
-/oac:add-context github:owner/repo#branch-name
-```
-
-### 2. Git Worktree
-```bash
-# Add from worktree
-/oac:add-context worktree:/path/to/worktree
-
-# Add specific subdirectory
-/oac:add-context worktree:/path/to/worktree/context
-```
-
-### 3. Local Files
-```bash
-# Add local file
-/oac:add-context file:./path/to/context.md
-
-# Add local directory
-/oac:add-context file:./path/to/context/
-```
-
-### 4. URL
-```bash
-# Add from URL
-/oac:add-context url:https://example.com/context.md
-```
-
-## Options
-
-- `--category=<name>` - Specify context category (default: custom)
-- `--priority=<level>` - Set priority (critical, high, medium)
-- `--overwrite` - Overwrite existing files
-- `--dry-run` - Preview what would be added
-
-## Examples
-
-```bash
-# Add team standards from GitHub
-/oac:add-context github:acme-corp/standards --category=team
-
-# Add from worktree
-/oac:add-context worktree:../team-context --category=team
-
-# Add custom pattern
-/oac:add-context file:./docs/patterns/auth.md --category=custom --priority=high
-
-# Preview before adding
-/oac:add-context github:owner/repo --dry-run
-```
-
-## What It Does
-
-1. **Fetches content** from specified source
-2. **Validates format** (checks for proper markdown structure)
-3. **Copies to** `.opencode/context/{category}/`
-4. **Updates navigation** (adds to navigation.md)
-5. **Verifies** context is discoverable
-
-## Output
-
-```
-✅ Added 3 context files to .opencode/context/team/
-
-Files added:
-- .opencode/context/team/standards/code-quality.md
-- .opencode/context/team/patterns/auth.md
-- .opencode/context/team/workflows/deployment.md
-
-Updated navigation:
-- .opencode/context/team/navigation.md
-
-Verification:
-✅ All files discoverable via /context-discovery
-```
-```
-
-**Benefits**:
-- ✅ Easy context addition from multiple sources
-- ✅ Supports GitHub worktrees (key requirement)
-- ✅ Validates and organizes automatically
-- ✅ Updates navigation for discoverability
-
----
-
-## Gap 3: Inconsistent Subagent Invocation ⚠️
-
-### Current State
-
-**Skill invocation format** (via frontmatter):
-```markdown
----
-name: context-discovery
-context: fork
-agent: context-scout
----
-```
-
-**Problem**: Skills pass context inconsistently to subagents
-
-### Analysis of Current Patterns
-
-#### Pattern 1: Context Discovery (GOOD)
-```markdown
-# File: skills/context-discovery/SKILL.md
-
----
-context: fork
-agent: context-scout
----
-
-Discover context files for: **$ARGUMENTS**
-```
-
-**What happens**:
-1. Main agent invokes skill
-2. Skill forks to context-scout subagent
-3. Subagent receives: "Discover context files for: {user request}"
-4. ✅ Clean, simple, works well
-
-#### Pattern 2: Task Breakdown (GOOD)
-```markdown
-# File: skills/task-breakdown/SKILL.md
-
----
-context: fork
-agent: task-manager
----
-
-Break down this feature into atomic subtasks: $ARGUMENTS
-
-## Your Task
-{detailed instructions}
-```
-
-**What happens**:
-1. Main agent invokes skill
-2. Skill forks to task-manager subagent
-3. Subagent receives full skill content as prompt
-4. ✅ Includes instructions and context
-
-#### Pattern 3: Code Execution (NEEDS IMPROVEMENT)
-```markdown
-# File: skills/code-execution/SKILL.md
-
----
-context: fork
-agent: coder-agent
----
-
-# Code Execution Skill
-
-Implement: $ARGUMENTS
-
-{long instructions about what to do}
-```
-
-**Problem**: 
-- Instructions are in skill file, not clear if subagent sees them
-- No explicit "Context to load first" section
-- Unclear how pre-loaded context is passed
-
-### Recommended Solution
-
-**Standardize all skill → subagent invocations**:
-
-```markdown
----
-name: skill-name
-description: Brief description
-context: fork
-agent: subagent-name
----
-
-# Skill Name
-
-> **Subagent**: {subagent-name}  
-> **Purpose**: {what this does}
-
----
-
-## Task
-
-{Clear, concise task description}: $ARGUMENTS
-
----
-
-## Context Pre-Loaded
-
-The main agent has already loaded these context files (Stage 3):
-
-- {list of context files from Stage 1 discovery}
-
-**Important**: Do NOT attempt to discover context. Use what's provided above.
-
----
-
-## Instructions
-
-{Step-by-step instructions for subagent}
-
-1. {Step 1}
-2. {Step 2}
-3. {Step 3}
-
----
-
-## Deliverables
-
-Return:
-- {Expected output 1}
-- {Expected output 2}
-
----
-
-## Quality Checklist
-
-Before returning, verify:
-- [ ] {Criterion 1}
-- [ ] {Criterion 2}
-```
-
-**Benefits**:
-- ✅ Consistent format across all skills
-- ✅ Explicit context passing
-- ✅ Clear instructions for subagents
-- ✅ Quality checklist ensures completeness
-
-### Files to Update
-
-1. `skills/code-execution/SKILL.md` - Add context section
-2. `skills/test-generation/SKILL.md` - Add context section
-3. `skills/code-review/SKILL.md` - Add context section
-4. `skills/external-scout/SKILL.md` - Clarify context handling
-5. `skills/parallel-execution/SKILL.md` - Add context section
-
----
-
-## Gap 4: Explorer/ContextScout Behavior ⚠️
-
-### Current State
-
-**ContextScout subagent**:
-- ✅ Navigation-driven discovery (reads navigation.md)
-- ✅ Read-only (Glob, Grep, Read tools only)
-- ✅ Returns ranked results (Critical → High → Medium)
-- ✅ Verifies paths exist before recommending
-
-**Comparison with OpenCode**:
-
-| Feature | OpenCode | Claude Code | Status |
-|---------|----------|-------------|--------|
-| Navigation-driven | ✅ | ✅ | ✅ Same |
-| Read-only tools | ✅ | ✅ | ✅ Same |
-| Ranked results | ✅ | ✅ | ✅ Same |
-| Global fallback | ✅ | ✅ | ✅ Same |
-| Nested calls | ✅ | ❌ | ⚠️ Different (by design) |
-| Context pre-loading | ❌ | ✅ | ⚠️ Different (required) |
-
-### Key Differences (By Design)
-
-#### 1. Nested Calls
-
-**OpenCode**:
-```
-Main Agent → TaskManager → CoderAgent → ContextScout
-```
-- Subagents can call ContextScout when needed
-- Dynamic context discovery during execution
-
-**Claude Code**:
-```
-Main Agent → ContextScout (Stage 1)
-Main Agent → Read all files (Stage 3)
-Main Agent → TaskManager/CoderAgent (Stage 4)
-```
-- Only main agent can call ContextScout
-- Context pre-loaded before execution
-- Prevents nested calls (Claude Code constraint)
-
-**Impact**: ✅ Acceptable - enforced by Claude Code architecture
-
-#### 2. Context Pre-Loading
-
-**OpenCode**:
-- Subagents discover context as needed
-- Lazy loading during execution
-
-**Claude Code**:
-- Main agent discovers all context upfront (Stage 1)
-- Main agent loads all context (Stage 3)
-- Subagents use pre-loaded context (Stage 4+)
-
-**Impact**: ✅ Acceptable - required for flat hierarchy
-
-### Recommended Improvements
-
-#### Improvement 1: Explicit Context Passing
-
-**Current**: Subagents assume context is available
-
-**Recommended**: Main agent explicitly passes context in delegation
-
-**Example**:
-```markdown
-Invoke coder-agent subagent:
-
-**Task**: Implement JWT authentication service
-
-**Context Pre-Loaded** (from Stage 3):
-- .opencode/context/core/standards/code-quality.md
-- .opencode/context/core/standards/security-patterns.md
-- .opencode/context/core/standards/typescript.md
-
-**Key Requirements** (extracted from context):
-- Use functional patterns (no classes)
-- RS256 algorithm for JWT signing
-- Token expiry: 15 minutes (access), 7 days (refresh)
-- Error handling: throw typed errors
-
-**Instructions**: Implement following loaded standards.
-```
-
-**Benefits**:
-- ✅ Subagent knows exactly what context is available
-- ✅ Key requirements extracted and highlighted
-- ✅ No ambiguity about what to follow
-
-#### Improvement 2: ContextScout Recommendations
-
-**Current**: ContextScout returns file paths only
-
-**Recommended**: ContextScout also extracts key requirements
-
-**Example**:
-```markdown
-# Context Files Found
-
-## Critical Priority
-
-**File**: `.opencode/context/core/standards/code-quality.md`
-**Contains**: Code quality standards, functional patterns, error handling
-**Why**: Defines coding patterns you must follow
-
-**Key Requirements**:
-- Functional patterns (no classes)
-- Pure functions where possible
-- Explicit error handling
-- TypeScript strict mode
-
----
-
-**File**: `.opencode/context/core/standards/security-patterns.md`
-**Contains**: Security best practices, auth patterns
-**Why**: Critical for authentication implementation
-
-**Key Requirements**:
-- RS256 for JWT signing
-- Token rotation required
-- Secure secret storage
-- Rate limiting on auth endpoints
-```
-
-**Benefits**:
-- ✅ Main agent can extract requirements immediately
-- ✅ Reduces need to re-read files
-- ✅ Highlights critical requirements
-- ✅ Faster context application
-
----
-
-## Recommendations Summary
-
-### High Priority (Implement Before Merge)
-
-1. **Add `/oac:plan` command** - Makes planning easily accessible
-2. **Add `/oac:add-context` command** - Enables GitHub worktree integration
-3. **Standardize skill → subagent format** - Ensures consistent context passing
-
-### Medium Priority (Post-Merge)
-
-4. **Enhance ContextScout output** - Extract key requirements from context files
-5. **Add context validation** - Verify context files are properly formatted
-6. **Add context versioning** - Track context file versions and updates
-
-### Low Priority (Future Enhancement)
-
-7. **Add context search** - Search across all context files
-8. **Add context templates** - Pre-built context file templates
-9. **Add context analytics** - Track which context files are most used
-
----
-
-## Implementation Plan
-
-### Phase 1: Critical Commands (1-2 hours)
-
-**Task 1**: Create `/oac:plan` command
-- File: `plugins/claude-code/commands/oac-plan.md`
-- Invokes: task-manager subagent
-- Output: Task breakdown in `.tmp/tasks/{feature}/`
-
-**Task 2**: Create `/oac:add-context` command
-- File: `plugins/claude-code/commands/oac-add-context.md`
-- Supports: GitHub, worktrees, local files, URLs
-- Output: Context files in `.opencode/context/{category}/`
-
-**Task 3**: Update help documentation
-- File: `plugins/claude-code/commands/oac-help.md`
-- Add: New commands to command list
-- Add: Usage examples
-
-### Phase 2: Standardize Skills (2-3 hours)
-
-**Task 1**: Create skill template
-- File: `plugins/claude-code/context/openagents-repo/templates/skill-template.md`
-- Include: Standard sections (Task, Context, Instructions, Deliverables)
-
-**Task 2**: Update existing skills
-- Files: All `skills/*/SKILL.md` files
-- Apply: Standard format
-- Add: Explicit context passing sections
-
-**Task 3**: Update subagent documentation
-- Files: All `agents/*.md` files
-- Clarify: Context pre-loading expectations
-- Add: Examples of context usage
-
-### Phase 3: Enhance ContextScout (3-4 hours)
-
-**Task 1**: Update ContextScout prompt
-- File: `plugins/claude-code/agents/context-scout.md`
-- Add: Key requirement extraction
-- Add: Requirement prioritization
-
-**Task 2**: Update context-discovery skill
-- File: `plugins/claude-code/skills/context-discovery/SKILL.md`
-- Update: Response format to include requirements
-- Add: Examples of enhanced output
-
-**Task 3**: Update using-oac workflow
-- File: `plugins/claude-code/skills/using-oac/SKILL.md`
-- Update: Stage 3 to extract requirements
-- Add: Requirement passing to subagents
-
----
-
-## Testing Plan
-
-### Test 1: Planning Command
-
-**Scenario**: User wants to plan a complex feature
-
-**Steps**:
-1. Run: `/oac:plan user authentication system`
-2. Verify: Task files created in `.tmp/tasks/user-authentication-system/`
-3. Verify: Subtasks have dependencies and parallel flags
-4. Verify: Context files referenced correctly
-
-**Expected**: Task breakdown with 4-6 subtasks, clear dependencies
-
-### Test 2: Add Context Command
-
-**Scenario**: User wants to add team standards from GitHub
-
-**Steps**:
-1. Run: `/oac:add-context github:acme-corp/standards --category=team`
-2. Verify: Files downloaded to `.opencode/context/team/`
-3. Verify: Navigation updated
-4. Run: `/context-discovery team coding standards`
-5. Verify: New context files discovered
-
-**Expected**: Context files added and discoverable
-
-### Test 3: Consistent Invocation
-
-**Scenario**: User implements a feature using multiple subagents
-
-**Steps**:
-1. Run: `/context-discovery authentication`
-2. Verify: Context files returned with requirements
-3. Run: `/task-breakdown authentication system`
-4. Verify: Task manager receives context list
-5. Run: `/code-execution implement JWT service`
-6. Verify: Coder agent receives context and requirements
-
-**Expected**: All subagents receive consistent context format
-
-### Test 4: ContextScout Enhancement
-
-**Scenario**: User discovers context for security-sensitive feature
-
-**Steps**:
-1. Run: `/context-discovery payment processing`
-2. Verify: Context files returned
-3. Verify: Key requirements extracted (PCI compliance, encryption, etc.)
-4. Verify: Requirements prioritized
-
-**Expected**: Context files + extracted requirements
-
----
-
-## Risk Assessment
-
-### Risk 1: Breaking Changes
-
-**Risk**: Updating skill format breaks existing workflows
-
-**Mitigation**:
-- Maintain backward compatibility
-- Add new sections without removing old ones
-- Test all existing workflows after changes
-
-**Likelihood**: Low  
-**Impact**: High  
-**Mitigation Status**: ✅ Planned
-
-### Risk 2: Command Confusion
-
-**Risk**: Too many commands confuse users
-
-**Mitigation**:
-- Clear naming conventions (`/oac:*`)
-- Comprehensive help documentation
-- Examples in `/oac:help`
-
-**Likelihood**: Medium  
-**Impact**: Low  
-**Mitigation Status**: ✅ Planned
-
-### Risk 3: Context Overload
-
-**Risk**: Adding too much context slows down workflow
-
-**Mitigation**:
-- Lazy loading (only load what's needed)
-- Prioritization (Critical → High → Medium)
-- Caching (avoid re-downloading)
-
-**Likelihood**: Low  
-**Impact**: Medium  
-**Mitigation Status**: ✅ Already implemented
-
----
-
-## Success Criteria
-
-### User Experience
-
-- ✅ Users can plan features with one command (`/oac:plan`)
-- ✅ Users can add context from GitHub/worktrees easily
-- ✅ Users understand what context is loaded and why
-- ✅ Subagents receive consistent, clear instructions
-
-### Technical Quality
-
-- ✅ All skills follow standard format
-- ✅ Context passing is explicit and verifiable
-- ✅ ContextScout extracts key requirements
-- ✅ No breaking changes to existing workflows
-
-### Documentation
-
-- ✅ All new commands documented in `/oac:help`
-- ✅ Examples provided for each command
-- ✅ Skill template available for reference
-- ✅ Migration guide for existing users
-
----
-
-## Conclusion
-
-The Claude Code plugin is **production-ready** with the current feature set, but adding these enhancements will significantly improve user experience and workflow efficiency.
-
-**Recommendation**: 
-1. ✅ Merge PR #219 as-is (current state is functional)
-2. 🔄 Create follow-up PR for Phase 1 (critical commands)
-3. 🔄 Create follow-up PR for Phase 2 (standardization)
-4. 🔄 Create follow-up PR for Phase 3 (enhancements)
-
-**Timeline**:
-- Phase 1: 1-2 hours (high priority)
-- Phase 2: 2-3 hours (medium priority)
-- Phase 3: 3-4 hours (low priority)
-
-**Total effort**: 6-9 hours across 3 PRs
-
----
-
-**Last Updated**: 2026-02-16  
-**Author**: OpenAgents Control Team  
-**Status**: Ready for Review

+ 0 - 491
ENHANCEMENTS-SUMMARY.md

@@ -1,491 +0,0 @@
-# Claude Code Plugin - Enhancements Summary
-
-**Date**: 2026-02-16  
-**Status**: ✅ Complete  
-**Branch**: feature/oac-package-refactor  
-**PR**: #219
-
----
-
-## 🎯 What Was Added
-
-### 1. ContextManager Subagent ✅
-
-**File**: `plugins/claude-code/agents/context-manager.md`
-
-**Purpose**: Manage context files, discover context roots, validate structure, and organize project context
-
-**Capabilities**:
-- **Context Root Discovery** - Finds context location dynamically (.oac → .claude/context → context → .opencode/context)
-- **Add Context from Sources** - GitHub, worktrees, local files, URLs
-- **Validate Context Files** - Markdown format, structure, navigation entries
-- **Update Navigation** - Keeps navigation.md files up-to-date
-- **Organize Context** - Reorganize by category and priority
-
-**Tools**: Read, Write, Glob, Grep, Bash
-
----
-
-### 2. Flexible Context Root Discovery ✅
-
-**Updated**: `plugins/claude-code/agents/context-scout.md`
-
-**Changes**:
-- Added **Step 0: Discover Context Root** before discovering context files
-- Discovery order: .oac config → .claude/context → context → .opencode/context
-- Returns context root in response format
-- Updated all examples to show discovered context root
-
-**Benefits**:
-- ✅ Works with Claude Code default (.claude/context)
-- ✅ Works with simple root-level (context)
-- ✅ Works with OpenCode default (.opencode/context)
-- ✅ Respects .oac configuration
-- ✅ No hardcoded paths
-
----
-
-### 3. `/oac:plan` Command ✅
-
-**File**: `plugins/claude-code/commands/oac-plan.md`
-
-**Purpose**: Plan and break down complex features into atomic subtasks
-
-**Usage**:
-```bash
-# Basic usage
-/oac:plan user authentication system
-
-# With constraints
-/oac:plan payment integration (PCI compliance required)
-
-# With focus
-/oac:plan API rate limiting (performance-critical)
-```
-
-**What it does**:
-1. Analyzes feature requirements
-2. Discovers relevant context
-3. Creates task breakdown with dependencies
-4. Generates JSON files in `.tmp/tasks/{feature}/`
-
-**Output**:
-- `task.json` - Feature metadata
-- `subtask_01.json`, `subtask_02.json`, etc. - Individual subtasks
-- Dependency mapping
-- Parallel execution flags
-- Suggested agents
-
-**Benefits**:
-- ✅ Easy to discover and use
-- ✅ Separates planning from execution
-- ✅ Consistent with other `/oac:*` commands
-- ✅ Reduces cognitive load
-
----
-
-### 4. `/oac:add-context` Command ✅
-
-**File**: `plugins/claude-code/commands/oac-add-context.md`
-
-**Purpose**: Add context files from various sources
-
-**Supported Sources**:
-- **GitHub**: `github:owner/repo[/path][#ref]`
-- **Worktree**: `worktree:/path/to/worktree[/subdir]`
-- **Local File**: `file:./path/to/file.md`
-- **URL**: `url:https://example.com/doc.md`
-
-**Usage**:
-```bash
-# From GitHub
-/oac:add-context github:acme-corp/standards --category=team
-
-# From worktree
-/oac:add-context worktree:../team-context --category=team
-
-# From local file
-/oac:add-context file:./docs/patterns/auth.md --category=custom
-
-# From URL
-/oac:add-context url:https://example.com/doc.md --category=external
-```
-
-**Options**:
-- `--category=<name>` - Target category (default: custom)
-- `--priority=<level>` - Priority level (critical, high, medium)
-- `--overwrite` - Overwrite existing files
-- `--dry-run` - Preview without making changes
-
-**What it does**:
-1. Discovers context root location
-2. Fetches/copies files from source
-3. Validates markdown format and structure
-4. Copies to context root
-5. Updates navigation for discoverability
-6. Verifies files are accessible
-
-**Benefits**:
-- ✅ Easy context addition from multiple sources
-- ✅ Supports GitHub worktrees (key requirement)
-- ✅ Validates and organizes automatically
-- ✅ Updates navigation for discoverability
-
----
-
-### 5. Updated context-manager Skill ✅
-
-**File**: `plugins/claude-code/skills/context-manager/SKILL.md`
-
-**Changes**:
-- Added frontmatter: `context: fork` and `agent: context-manager`
-- Added task section with operations
-- Now properly invokes context-manager subagent
-
-**Operations**:
-- `discover-root` - Find context location
-- `add-context` - Add from sources
-- `validate` - Validate existing files
-- `update-navigation` - Rebuild navigation
-- `organize` - Reorganize by category
-
----
-
-### 6. Updated Help Documentation ✅
-
-**File**: `plugins/claude-code/commands/oac-help.md`
-
-**Changes**:
-- Added context-manager to subagents list
-- Added `/oac:plan` to commands section
-- Added `/oac:add-context` to commands section
-- Updated skill → subagent mapping table
-- Added usage examples for new commands
-
----
-
-## 📊 Statistics
-
-### Files Created
-- `plugins/claude-code/agents/context-manager.md` (new subagent)
-- `plugins/claude-code/commands/oac-plan.md` (new command)
-- `plugins/claude-code/commands/oac-add-context.md` (new command)
-
-### Files Modified
-- `plugins/claude-code/agents/context-scout.md` (flexible context root)
-- `plugins/claude-code/skills/context-manager/SKILL.md` (subagent invocation)
-- `plugins/claude-code/commands/oac-help.md` (documentation)
-
-### Total Changes
-- **3 new files** (~1,200 lines)
-- **3 modified files** (~150 lines changed)
-- **~1,350 total lines** added/modified
-
----
-
-## 🎯 Key Features
-
-### Flexible Context Discovery
-
-**Before**:
-- Hardcoded to `.opencode/context`
-- No support for other locations
-- No configuration support
-
-**After**:
-- Discovers context root dynamically
-- Checks .oac config first
-- Supports .claude/context (Claude Code default)
-- Supports context (simple root-level)
-- Supports .opencode/context (OpenCode default)
-- Respects user configuration
-
-**Example**:
-```bash
-# ContextScout automatically discovers context root
-/context-discovery authentication patterns
-
-# Output shows discovered location:
-# Context Root: .claude/context (discovered from .oac config)
-```
-
----
-
-### Easy Planning
-
-**Before**:
-- Users had to manually invoke task-manager via skill syntax
-- Planning buried in execution stage
-- No simple command
-
-**After**:
-- Simple `/oac:plan` command
-- Separates planning from execution
-- Consistent with other commands
-- Easy to discover
-
-**Example**:
-```bash
-# Plan a feature
-/oac:plan user authentication system
-
-# Creates task files in .tmp/tasks/user-authentication/
-# - task.json (feature metadata)
-# - subtask_01.json, subtask_02.json, etc.
-```
-
----
-
-### Context Addition from Multiple Sources
-
-**Before**:
-- Only `/oac:setup` for downloading from GitHub
-- No support for worktrees
-- No support for local files
-- Manual file creation required
-
-**After**:
-- `/oac:add-context` supports 4 sources
-- GitHub repositories (with branch/tag support)
-- Git worktrees (key requirement)
-- Local files and directories
-- URLs
-
-**Example**:
-```bash
-# Add team standards from GitHub
-/oac:add-context github:acme-corp/standards --category=team
-
-# Add from worktree (key requirement)
-/oac:add-context worktree:../team-context --category=team
-
-# Add local pattern
-/oac:add-context file:./docs/auth-pattern.md --category=custom
-```
-
----
-
-## 🔄 Integration with OAC Workflow
-
-### Stage 1: Analyze & Discover
-
-**Enhanced**:
-- ContextScout discovers context root automatically
-- Works with any context location
-- No hardcoded paths
-
-### Stage 2: Plan & Approve
-
-**New**:
-- `/oac:plan` command for easy planning
-- Creates structured task breakdown
-- Requests approval before execution
-
-### Stage 3: LoadContext
-
-**Enhanced**:
-- Context loaded from discovered root
-- Flexible location support
-- Configuration-driven
-
-### Stage 6: Complete
-
-**New**:
-- `/oac:add-context` to add learned patterns
-- Context becomes available for future tasks
-- Navigation updated automatically
-
----
-
-## 🧪 Testing Checklist
-
-### Test 1: Context Root Discovery
-
-**Scenario**: Different context locations
-
-**Steps**:
-1. Test with .oac config pointing to .claude/context
-2. Test with context directory in root
-3. Test with .opencode/context
-4. Test with no context (should create default)
-
-**Expected**: Context root discovered correctly in all cases
-
----
-
-### Test 2: Planning Command
-
-**Scenario**: User wants to plan a complex feature
-
-**Steps**:
-1. Run: `/oac:plan user authentication system`
-2. Verify: Task files created in `.tmp/tasks/user-authentication/`
-3. Verify: Subtasks have dependencies and parallel flags
-4. Verify: Context files referenced correctly
-
-**Expected**: Task breakdown with 4-6 subtasks, clear dependencies
-
----
-
-### Test 3: Add Context from GitHub
-
-**Scenario**: User wants to add team standards
-
-**Steps**:
-1. Run: `/oac:add-context github:acme-corp/standards --category=team`
-2. Verify: Files downloaded to context root
-3. Verify: Navigation updated
-4. Run: `/context-discovery team standards`
-5. Verify: New context files discovered
-
-**Expected**: Context files added and discoverable
-
----
-
-### Test 4: Add Context from Worktree
-
-**Scenario**: User wants to add from worktree (key requirement)
-
-**Steps**:
-1. Create worktree: `git worktree add ../team-context`
-2. Run: `/oac:add-context worktree:../team-context --category=team`
-3. Verify: Files copied to context root
-4. Verify: Navigation updated
-5. Run: `/context-discovery team patterns`
-6. Verify: Worktree context files discovered
-
-**Expected**: Worktree context added and discoverable
-
----
-
-### Test 5: Add Context from Local File
-
-**Scenario**: User wants to add project-specific pattern
-
-**Steps**:
-1. Create file: `./docs/patterns/auth-flow.md`
-2. Run: `/oac:add-context file:./docs/patterns/auth-flow.md --category=custom`
-3. Verify: File copied to context root
-4. Verify: Navigation updated
-5. Run: `/context-discovery authentication flow`
-6. Verify: Local file discovered
-
-**Expected**: Local file added and discoverable
-
----
-
-## 📝 Documentation Updates
-
-### Updated Files
-
-1. **oac-help.md**
-   - Added context-manager subagent
-   - Added `/oac:plan` command
-   - Added `/oac:add-context` command
-   - Updated skill → subagent mapping
-
-2. **context-scout.md**
-   - Added flexible context root discovery
-   - Updated all examples
-   - Added discovery order documentation
-
-3. **context-manager skill**
-   - Added subagent invocation
-   - Added task section
-   - Added operations list
-
-### New Documentation
-
-1. **oac-plan.md** (~400 lines)
-   - Complete command documentation
-   - Usage examples
-   - Integration with workflow
-   - Troubleshooting
-
-2. **oac-add-context.md** (~600 lines)
-   - Complete command documentation
-   - All source types documented
-   - Options explained
-   - Examples for each source
-
-3. **context-manager.md** (~200 lines)
-   - Complete subagent documentation
-   - All operations explained
-   - Workflow examples
-   - Error handling
-
----
-
-## 🎉 Success Criteria
-
-### All Requirements Met
-
-- ✅ **ContextManager subagent** - Manages context files
-- ✅ **Flexible context discovery** - .oac → .claude/context → context → .opencode/context
-- ✅ **`/oac:plan` command** - Easy planning
-- ✅ **`/oac:add-context` command** - Add from GitHub, worktrees, local, URLs
-- ✅ **GitHub worktree support** - Key requirement
-- ✅ **Updated documentation** - All commands and subagents documented
-
-### Quality Standards
-
-- ✅ Consistent command format (`/oac:*`)
-- ✅ Comprehensive documentation
-- ✅ Clear usage examples
-- ✅ Error handling documented
-- ✅ Integration with workflow explained
-- ✅ Testing checklist provided
-
----
-
-## 🚀 Next Steps
-
-### Immediate (Before Merge)
-
-1. **Review changes** - Verify all files are correct
-2. **Test commands** - Run through testing checklist
-3. **Update PR description** - Add enhancements summary
-4. **Request review** - Get feedback on changes
-
-### Post-Merge
-
-1. **User testing** - Gather feedback from early adopters
-2. **Iterate** - Improve based on feedback
-3. **Add examples** - Create video tutorials or guides
-4. **Monitor usage** - Track which commands are most used
-
----
-
-## 📚 Related Documents
-
-- **CLAUDE-CODE-PLUGIN-ANALYSIS.md** - Original gap analysis
-- **README.md** - Main plugin documentation
-- **FIRST-TIME-SETUP.md** - User onboarding guide
-- **QUICK-START.md** - Quick reference
-
----
-
-## 🙏 Summary
-
-We successfully added:
-
-1. **ContextManager subagent** - Full context file management
-2. **Flexible context root discovery** - Works with any location
-3. **`/oac:plan` command** - Easy feature planning
-4. **`/oac:add-context` command** - Add context from multiple sources
-5. **GitHub worktree support** - Key requirement fulfilled
-6. **Comprehensive documentation** - All features documented
-
-**Total effort**: ~3-4 hours  
-**Files created**: 3  
-**Files modified**: 3  
-**Lines added/modified**: ~1,350
-
-**Status**: ✅ Ready for review and testing
-
----
-
-**Last Updated**: 2026-02-16  
-**Author**: OpenAgents Control Team  
-**Branch**: feature/oac-package-refactor  
-**PR**: #219

+ 757 - 34
README.md

@@ -1,12 +1,161 @@
+<div align="center">
+
+![OpenAgents Control Hero](docs/images/hero-image.png)
+
 # OpenAgents Control (OAC)
 
-Multi-agent orchestration and automation framework for AI-powered development workflows.
+### Control your AI patterns. Get repeatable results.
+
+**AI agents that learn YOUR coding patterns and generate matching code every time.**
+
+🎯 **Pattern Control** - Define your patterns once, AI uses them forever  
+✋ **Approval Gates** - Review and approve before execution  
+🔁 **Repeatable Results** - Same patterns = Same quality code  
+📝 **Editable Agents** - Full control over AI behavior  
+👥 **Team-Ready** - Everyone uses the same patterns
+
+**Multi-language:** TypeScript • Python • Go • Rust • Any language*  
+**Model Agnostic:** Claude • GPT • Gemini • Local models
+
+
+[![GitHub stars](https://img.shields.io/github/stars/darrenhinde/OpenAgentsControl?style=flat-square&logo=github&labelColor=black&color=ffcb47)](https://github.com/darrenhinde/OpenAgentsControl/stargazers)
+[![X Follow](https://img.shields.io/twitter/follow/DarrenBuildsAI?style=flat-square&logo=x&labelColor=black&color=1DA1F2)](https://x.com/DarrenBuildsAI)
+[![License: MIT](https://img.shields.io/badge/License-MIT-3fb950?style=flat-square&labelColor=black)](https://opensource.org/licenses/MIT)
+[![Last Commit](https://img.shields.io/github/last-commit/darrenhinde/OpenAgentsControl?style=flat-square&labelColor=black&color=8957e5)](https://github.com/darrenhinde/OpenAgentsControl/commits/main)
+
+[🚀 Quick Start](#-quick-start) • [💻 Show Me Code](#-example-workflow) • [🗺️ Roadmap](https://github.com/darrenhinde/OpenAgentsControl/projects) • [💬 Community](https://nextsystems.ai)
+
+</div>
+
+---
+
+> **Built on [OpenCode](https://opencode.ai)** - An open-source AI coding framework. OAC extends OpenCode with specialized agents, context management, and team workflows.
+
+---
+
+## The Problem
+
+Most AI agents are like hiring a developer who doesn't know your codebase. They write generic code. You spend hours rewriting, refactoring, and fixing inconsistencies. Tokens burned. Time wasted. No actual work done.
+
+**Example:**
+```typescript
+// What AI gives you (generic)
+export async function POST(request: Request) {
+  const data = await request.json();
+  return Response.json({ success: true });
+}
+
+// What you actually need (your patterns)
+export async function POST(request: Request) {
+  const body = await request.json();
+  const validated = UserSchema.parse(body);  // Your Zod validation
+  const result = await db.users.create(validated);  // Your Drizzle ORM
+  return Response.json(result, { status: 201 });  // Your response format
+}
+```
+
+## The Solution
+
+**OpenAgentsControl teaches agents your patterns upfront.** They understand your coding standards, your architecture, your security requirements. They propose plans before implementing. They execute incrementally with validation.
+
+**The result:** Production-ready code that ships without heavy rework.
+
+### What Makes AOC Different
+
+**🎯 Context-Aware (Your Secret Weapon)**  
+Agents load YOUR patterns before generating code. Code matches your project from the start. No refactoring needed.
+
+**📝 Editable Agents (Not Baked-In Plugins)**  
+Full control over agent behavior. Edit markdown files directly—no compilation, no vendor lock-in. Change workflows, add constraints, customize for your team.
+
+**✋ Approval Gates (Human-Guided AI)**  
+Agents ALWAYS request approval before execution. Propose → Approve → Execute. You stay in control. No "oh no, what did the AI just do?" moments.
+
+**⚡ Token Efficient (MVI Principle)**  
+Minimal Viable Information design. Only load what's needed, when it's needed. Context files <200 lines, lazy loading, faster responses.
+
+**👥 Team-Ready (Repeatable Patterns)**  
+Store YOUR coding patterns once. Entire team uses same standards. Commit context to repo. New developers inherit team patterns automatically.
+
+**🔄 Model Agnostic**  
+Use any AI model (Claude, GPT, Gemini, local). No vendor lock-in.
+
+**Full-stack development:** AOC handles both frontend and backend work. The agents coordinate to build complete features from UI to database.
+
+---
+
+## 🆚 Quick Comparison
+
+| Feature | OpenAgentsControl | Cursor/Copilot | Aider | Oh My OpenCode |
+|---------|-------------------|----------------|-------|----------------|
+| **Learn Your Patterns** | ✅ Built-in context system | ❌ No pattern learning | ❌ No pattern learning | ⚠️ Manual setup |
+| **Approval Gates** | ✅ Always required | ⚠️ Optional (default off) | ❌ Auto-executes | ❌ Fully autonomous |
+| **Token Efficiency** | ✅ MVI principle (80% reduction) | ❌ Full context loaded | ❌ Full context loaded | ❌ High token usage |
+| **Team Standards** | ✅ Shared context files | ❌ Per-user settings | ❌ No team support | ⚠️ Manual config per user |
+| **Edit Agent Behavior** | ✅ Markdown files you edit | ❌ Proprietary/baked-in | ⚠️ Limited prompts | ✅ Config files |
+| **Model Choice** | ✅ Any model, any provider | ⚠️ Limited options | ⚠️ OpenAI/Claude only | ✅ Multiple models |
+| **Execution Speed** | ⚠️ Sequential with approval | Fast | Fast | ✅ Parallel agents |
+| **Error Recovery** | ✅ Human-guided validation | ⚠️ Auto-retry (can loop) | ⚠️ Auto-retry | ✅ Self-correcting |
+| **Best For** | Production code, teams | Quick prototypes | Solo developers | Power users, complex projects |
+
+**Use AOC when:**
+- ✅ You have established coding patterns
+- ✅ You want code that ships without refactoring
+- ✅ You need approval gates for quality control
+- ✅ You care about token efficiency and costs
+
+**Use others when:**
+- **Cursor/Copilot:** Quick prototypes, don't care about patterns
+- **Aider:** Simple file edits, no team coordination
+- **Oh My OpenCode:** Need autonomous execution with parallel agents (speed over control)
+
+> **Full comparison:** [Read detailed analysis →](https://github.com/darrenhinde/OpenAgentsControl/discussions/116)
+
+---
 
 ## 🚀 Quick Start
 
-### Claude Code (BETA - via Plugin Marketplace)
+**Prerequisites:** [OpenCode CLI](https://opencode.ai/docs) (free, open-source) • Bash 3.2+ • Git
+
+### Step 1: Install
 
-OpenAgents Control is now available as a Claude Code plugin!
+**One command:**
+
+```bash
+curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgentsControl/main/install.sh | bash -s developer
+```
+
+<sub>The installer will set up OpenCode CLI if you don't have it yet.</sub>
+
+**Or interactive:**
+```bash
+curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgentsControl/main/install.sh -o install.sh
+bash install.sh
+```
+
+### Step 2: Start Building
+
+```bash
+opencode --agent OpenAgent
+> "Create a user authentication system"
+```
+
+### Step 3: Approve & Ship
+
+**What happens:**
+1. Agent analyzes your request
+2. Proposes a plan (you approve)
+3. Executes step-by-step with validation
+4. Delegates to specialists when needed
+5. Ships production-ready code
+
+**That's it.** Works immediately with your default model. No configuration required.
+
+---
+
+### Alternative: Claude Code Plugin (BETA)
+
+**Prefer Claude Code?** OpenAgents Control is also available as a Claude Code plugin!
 
 **Installation:**
 
@@ -33,10 +182,11 @@ Add a login endpoint
 **Features:**
 - ✅ 6-stage workflow with approval gates
 - ✅ Context-aware code generation
-- ✅ Parallel task execution
-- ✅ External documentation fetching
-- ✅ Automatic cleanup management
-- ✅ 9 specialized skills + 6 custom subagents
+- ✅ 7 specialized subagents (task-manager, context-scout, context-manager, coder-agent, test-engineer, code-reviewer, external-scout)
+- ✅ 9 workflow skills + 6 user commands
+- ✅ Flexible context discovery (.oac config, .claude/context, context, .opencode/context)
+- ✅ Add context from GitHub, worktrees, local files, or URLs
+- ✅ Easy feature planning with `/oac:plan`
 
 **Documentation:**
 - [Plugin README](./plugins/claude-code/README.md) - Complete plugin documentation
@@ -47,46 +197,619 @@ Add a login endpoint
 
 ---
 
-## 📚 About OpenAgents Control
+## 💡 The Context System: Your Secret Weapon
+
+**The problem with AI code:** It doesn't match your patterns. You spend hours refactoring.
+
+**The AOC solution:** Teach your patterns once. Agents load them automatically. Code matches from the start.
+
+### How It Works
+
+```
+Your Request
+    ↓
+ContextScout discovers relevant patterns
+    ↓
+Agent loads YOUR standards
+    ↓
+Code generated using YOUR patterns
+    ↓
+Ships without refactoring ✅
+```
+
+### Add Your Patterns (10-15 Minutes)
+
+```bash
+/add-context
+```
+
+**Answer 6 simple questions:**
+1. What's your tech stack? (Next.js + TypeScript + PostgreSQL + Tailwind)
+2. Show an API endpoint example (paste your code)
+3. Show a component example (paste your code)
+4. What naming conventions? (kebab-case, PascalCase, camelCase)
+5. Any code standards? (TypeScript strict, Zod validation, etc.)
+6. Any security requirements? (validate input, parameterized queries, etc.)
+
+**Result:** Agents now generate code matching your exact patterns. No refactoring needed.
+
+### The MVI Advantage: Token Efficiency
+
+**MVI (Minimal Viable Information)** = Only load what's needed, when it's needed.
+
+**Traditional approach:**
+- Loads entire codebase context
+- Large token overhead per request
+- Slow responses, high costs
+
+**AOC approach:**
+- Loads only relevant patterns
+- Context files <200 lines (quick to load)
+- Lazy loading (agents load what they need)
+- 80% of tasks use isolation context (minimal overhead)
+
+**Real benefits:**
+- **Efficiency:** Lower token usage vs loading entire codebase
+- **Speed:** Faster responses with smaller context
+- **Quality:** Code matches your patterns (no refactoring)
+
+### For Teams: Repeatable Patterns
+
+**The team problem:** Every developer writes code differently. Inconsistent patterns. Hard to maintain.
+
+**The AOC solution:** Store team patterns in `.opencode/context/project/`. Commit to repo. Everyone uses same standards.
+
+**Example workflow:**
+```bash
+# Team lead adds patterns once
+/add-context
+# Answers questions with team standards
+
+# Commit to repo
+git add .opencode/context/
+git commit -m "Add team coding standards"
+git push
+
+# All team members now use same patterns automatically
+# New developers inherit standards on day 1
+```
+
+**Result:** Consistent code across entire team. No style debates. No refactoring PRs.
+
+---
+
+## 📖 How It Works
+
+### The Core Idea
+
+**Most AI tools:** Generic code → You refactor  
+**OpenAgentsControl:** Your patterns → AI generates matching code  
+
+### The Workflow
+
+```
+1. Add Your Context (one time)
+   ↓
+2. ContextScout discovers relevant patterns
+   ↓
+3. Agent loads YOUR standards
+   ↓
+4. Agent proposes plan (using your patterns)
+   ↓
+5. You approve
+   ↓
+6. Agent implements (matches your project)
+   ↓
+7. Code ships (no refactoring needed)
+```
+
+### Key Benefits
+
+**🎯 Context-Aware**  
+ContextScout discovers relevant patterns. Agents load YOUR standards before generating code. Code matches your project from the start.
+
+**🔁 Repeatable**  
+Same patterns → Same results. Configure once, use forever. Perfect for teams.
+
+**⚡ Token Efficient (80% Reduction)**  
+MVI principle: Only load what's needed. 8,000 tokens → 750 tokens. Massive cost savings.
+
+**✋ Human-Guided**  
+Agents propose plans, you approve before execution. Quality gates prevent mistakes. No auto-execution surprises.
+
+**📝 Transparent & Editable**  
+Agents are markdown files you can edit. Change workflows, add constraints, customize behavior. No vendor lock-in.
+
+### What Makes This Special
+
+**1. ContextScout - Smart Pattern Discovery**  
+Before generating code, ContextScout discovers relevant patterns from your context files. Ranks by priority (Critical → High → Medium). Prevents wasted work.
+
+**2. Editable Agents - Full Control**  
+Unlike Cursor/Copilot where behavior is baked into plugins, AOC agents are markdown files. Edit them directly:
+```bash
+nano .opencode/agent/core/opencoder.md  # local project install
+# Or: nano ~/.config/opencode/agent/core/opencoder.md  # global install
+# Add project rules, change workflows, customize behavior
+```
+
+**3. ExternalScout - Live Documentation** 🆕  
+Working with external libraries? ExternalScout fetches current documentation:
+- Gets live docs from official sources (npm, GitHub, docs sites)
+- No outdated training data - always current
+- Automatically triggered when agents detect external dependencies
+- Supports frameworks, APIs, libraries, and more
+
+**4. Approval Gates - No Surprises**  
+Agents ALWAYS request approval before:
+- Writing/editing files
+- Running bash commands
+- Delegating to subagents
+- Making any changes
+
+You stay in control. Review plans before execution.
+
+**5. MVI Principle - Token Efficiency**  
+Files designed for quick loading:
+- Concepts: <100 lines
+- Guides: <150 lines
+- Examples: <80 lines
+
+Result: Lower token usage vs loading entire codebase.
+
+**6. Team Patterns - Repeatable Results**  
+Store patterns in `.opencode/context/project/`. Commit to repo. Entire team uses same standards. New developers inherit patterns automatically.
+
+---
+
+## 🎯 Which Agent Should I Use?
+
+### OpenAgent (Start Here)
+
+**Best for:** Learning the system, general tasks, quick implementations
+
+```bash
+opencode --agent OpenAgent
+> "Create a user authentication system"            # Building features
+> "How do I implement authentication in Next.js?"  # Questions
+> "Create a README for this project"               # Documentation
+> "Explain the architecture of this codebase"      # Analysis
+```
+
+**What it does:**
+- Loads your patterns via ContextScout
+- Proposes plan (you approve)
+- Executes with validation
+- Delegates to specialists when needed
+
+**Perfect for:** First-time users, simple features, learning the workflow
+
+### OpenCoder (Production Development)
+
+**Best for:** Complex features, multi-file refactoring, production systems
+
+```bash
+opencode --agent OpenCoder
+> "Create a user authentication system"                 # Full-stack features
+> "Refactor this codebase to use dependency injection"  # Multi-file refactoring
+> "Add real-time notifications with WebSockets"         # Complex implementations
+```
+
+**What it does:**
+- **Discover:** ContextScout finds relevant patterns
+- **Propose:** Detailed implementation plan
+- **Approve:** You review and approve
+- **Execute:** Incremental implementation with validation
+- **Validate:** Tests, type checking, code review
+- **Ship:** Production-ready code
+
+**Perfect for:** Production code, complex features, team development
+
+### SystemBuilder (Custom AI Systems)
+
+**Best for:** Building complete custom AI systems tailored to your domain
+
+```bash
+opencode --agent SystemBuilder
+> "Create a customer support AI system"
+```
+
+Interactive wizard generates orchestrators, subagents, context files, workflows, and commands.
+
+**Perfect for:** Creating domain-specific AI systems
+
+---
+
+## 🛠️ What's Included
+
+### 🤖 Main Agents
+- **OpenAgent** - General tasks, questions, learning (start here)
+- **OpenCoder** - Production development, complex features
+- **SystemBuilder** - Generate custom AI systems
+
+### 🔧 Specialized Subagents (Auto-delegated)
+- **ContextScout** - Smart pattern discovery (your secret weapon)
+- **TaskManager** - Breaks complex features into atomic subtasks
+- **CoderAgent** - Focused code implementations
+- **TestEngineer** - Test authoring and TDD
+- **CodeReviewer** - Code review and security analysis
+- **BuildAgent** - Type checking and build validation
+- **DocWriter** - Documentation generation
+- **ExternalScout** - Fetches live docs for external libraries (no outdated training data) **NEW!**
+- Plus category specialists: frontend, devops, copywriter, technical-writer, data-analyst
+
+### ⚡ Productivity Commands
+- `/add-context` - Interactive wizard to add your patterns
+- `/commit` - Smart git commits with conventional format
+- `/test` - Testing workflows
+- `/optimize` - Code optimization
+- `/context` - Context management
+- And 7+ more productivity commands
+
+### 📚 Context System (MVI Principle)
+Your coding standards automatically loaded by agents:
+- **Code quality** - Your patterns, security, standards
+- **UI/design** - Design system, component patterns
+- **Task management** - Workflow definitions
+- **External libraries** - Integration guides (18+ libraries supported)
+- **Project-specific** - Your team's patterns
+
+**Key features:**
+- 80% token reduction via MVI
+- Smart discovery via ContextScout
+- Lazy loading (only what's needed)
+- Team-ready (commit to repo)
+- Version controlled (track changes)
+
+### How Context Resolution Works
+
+ContextScout discovers context files using a **local-first** approach:
+
+```
+1. Check local: .opencode/context/core/navigation.md
+   ↓ Found? → Use local for everything. Done.
+   ↓ Not found?
+2. Check global: ~/.config/opencode/context/core/navigation.md
+   ↓ Found? → Use global for core/ files only.
+   ↓ Not found? → Proceed without core context.
+```
+
+**Key rules:**
+- **Local always wins** — if you installed locally, global is never checked
+- **Global fallback is only for `core/`** (standards, workflows, guides) — universal files that are the same across projects
+- **Project intelligence is always local** — your tech stack, patterns, and naming conventions live in `.opencode/context/project-intelligence/` and are never loaded from global
+- **One-time check** — ContextScout resolves the core location once at startup (max 2 glob checks), not per-file
+
+**Common setups:**
+
+| Setup | Core files from | Project intelligence from |
+|-------|----------------|--------------------------|
+| Local install (`bash install.sh developer`) | `.opencode/context/core/` | `.opencode/context/project-intelligence/` |
+| Global install + `/add-context` | `~/.config/opencode/context/core/` | `.opencode/context/project-intelligence/` |
+| Both local and global | `.opencode/context/core/` (local wins) | `.opencode/context/project-intelligence/` |
+
+---
+
+
+
+## 💻 Example Workflow
+
+```bash
+opencode --agent OpenCoder
+> "Create a user dashboard with authentication and profile settings"
+```
+
+**What happens:**
+
+**1. Discover (~1-2 min)** - ContextScout finds relevant patterns
+- Your tech stack (Next.js + TypeScript + PostgreSQL)
+- Your API pattern (Zod validation, error handling)
+- Your component pattern (functional, TypeScript, Tailwind)
+- Your naming conventions (kebab-case files, PascalCase components)
+
+**2. Propose (~2-3 min)** - Agent creates detailed implementation plan
+```
+## Proposed Implementation
+
+**Components:**
+- user-dashboard.tsx (main page)
+- profile-settings.tsx (settings component)
+- auth-guard.tsx (authentication wrapper)
+
+**API Endpoints:**
+- /api/user/profile (GET, POST)
+- /api/auth/session (GET)
+
+**Database:**
+- users table (Drizzle schema)
+- sessions table (Drizzle schema)
+
+All code will follow YOUR patterns from context.
+
+Approve? [y/n]
+```
+
+**3. Approve** - You review and approve the plan (human-guided)
+
+**4. Execute (~10-15 min)** - Incremental implementation with validation
+- Implements one component at a time
+- Uses YOUR patterns for every file
+- Validates after each step (type check, lint)
+- *This is the longest step - generating quality code takes time*
+
+**5. Validate (~2-3 min)** - Tests, type checking, code review
+- Delegates to TestEngineer for tests
+- Delegates to CodeReviewer for security check
+- Ensures production quality
+
+**6. Ship** - Production-ready code
+- Code matches your project exactly
+- No refactoring needed
+- Ready to commit and deploy
+
+**Total time: ~15-25 minutes** for a complete feature (guided, with approval gates)
+
+### 💡 Pro Tips
+
+**After finishing a feature:**
+- Run `/add-context --update` to add new patterns you discovered
+- Update your context with new libraries, conventions, or standards
+- Keep your patterns fresh as your project evolves
+
+**Working with external libraries?**
+- **ExternalScout** automatically fetches current documentation
+- No more outdated training data - gets live docs from official sources
+- Works with npm packages, APIs, frameworks, and more
+
+---
+
+## ⚙️ Advanced Configuration
 
-OpenAgents Control is a comprehensive framework for orchestrating multiple AI agents to handle complex development workflows. It provides:
+### Model Configuration (Optional)
 
-- **Multi-agent orchestration** - Coordinate specialized agents for different tasks
-- **Context-aware execution** - Automatically discover and apply relevant coding standards
-- **Task breakdown** - Decompose complex features into atomic, verifiable subtasks
-- **Quality automation** - Built-in code review, testing, and documentation generation
-- **Flexible architecture** - Works with multiple AI coding tools (Claude Code, OpenCode, Cursor, Windsurf)
+**By default, all agents use your OpenCode default model.** Configure models per agent only if you want different agents to use different models.
 
-## 🏗️ Architecture
+**When to configure:**
+- You want faster agents to use cheaper models (e.g., Haiku/Flash)
+- You want complex agents to use smarter models (e.g., Opus/GPT-5)
+- You want to test different models for different tasks
 
-OAC uses a **flattened delegation hierarchy** where:
-- **Skills** orchestrate the workflow and guide the main agent
-- **Subagents** execute specialized tasks in isolated contexts
-- **Context files** provide coding standards and patterns
-- **Approval gates** ensure user control over execution
+**How to configure:**
+
+Edit agent files directly:
+```bash
+nano .opencode/agent/core/opencoder.md  # local project install
+# Or: nano ~/.config/opencode/agent/core/opencoder.md  # global install
+```
+
+Change the model in the frontmatter:
+```yaml
+---
+description: "Development specialist"
+model: anthropic/claude-sonnet-4-5  # Change this line
+---
+```
+
+Browse available models at [models.dev](https://models.dev/?search=open) or run `opencode models`.
+
+### Update Context as You Go
+
+Your project evolves. Your context should too.
+
+```bash
+/add-context --update
+```
+
+**What gets updated:**
+- Tech stack, patterns, standards
+- Version incremented (1.0 → 1.1)
+- Updated date refreshed
+
+**Example updates:**
+- Add new library (Stripe, Twilio, etc.)
+- Change patterns (new API format, component structure)
+- Migrate tech stack (Prisma → Drizzle)
+- Update security requirements
+
+Agents automatically use updated patterns.
+
+---
 
-## 📖 Documentation
 
-- [Agents](./docs/agents/) - Custom agent documentation
-- [Evals](./evals/) - Evaluation framework and tests
-- [Planning](./docs/planning/) - Architecture and design documents
-- [Context System](./docs/context-system/) - Context organization and management
+
+## 🎯 Is This For You?
+
+### ✅ Use AOC if you:
+- Build production code that ships without heavy rework
+- Work in a team with established coding standards
+- Want control over agent behavior (not black-box plugins)
+- Care about token efficiency and cost savings
+- Need approval gates for quality assurance
+- Want repeatable, consistent results
+- Use multiple AI models (no vendor lock-in)
+
+### ⚠️ Skip AOC if you:
+- Want fully autonomous execution without approval gates
+- Prefer "just do it" mode over human-guided workflows
+- Don't have established coding patterns yet
+- Need multi-agent parallelization (use Oh My OpenCode instead)
+- Want plug-and-play with zero configuration
+
+### 🤔 Not Sure?
+
+**Try this test:**
+1. Ask your current AI tool to generate an API endpoint
+2. Count how many minutes you spend refactoring it to match your patterns
+3. If you're spending time on refactoring, AOC will save you that time
+
+**Or ask yourself:**
+- Do you have coding standards your team follows?
+- Do you spend time refactoring AI-generated code?
+- Do you want AI to follow YOUR patterns, not generic ones?
+
+If you answered "yes" to any of these, AOC is for you.
+
+---
+
+## 🚀 Advanced Features
+
+### Frontend Design Workflow
+The **OpenFrontendSpecialist** follows a structured 4-stage design workflow:
+1. **Layout** - ASCII wireframe, responsive structure planning
+2. **Theme** - Design system selection, OKLCH colors, typography
+3. **Animation** - Micro-interactions, timing, accessibility
+4. **Implementation** - Single HTML file, semantic markup
+
+### Task Management & Breakdown
+The **TaskManager** breaks complex features into atomic, verifiable subtasks with smart agent suggestions and parallel execution support.
+
+### System Builder
+Build complete custom AI systems tailored to your domain in minutes. Interactive wizard generates orchestrators, subagents, context files, workflows, and commands.
+
+---
+
+## ❓ FAQ
+
+### Getting Started
+
+**Q: Does this work on Windows?**  
+A: Yes! Use Git Bash (recommended) or WSL.
+
+**Q: What languages are supported?**  
+A: Agents are language-agnostic and adapt based on your project files. Primarily tested with TypeScript/Node.js. Python, Go, Rust, and other languages are supported but less battle-tested. The context system works with any language.
+
+**Q: Do I need to add context?**  
+A: No, but it's highly recommended. Without context, agents write generic code. With context, they write YOUR code.
+
+**Q: Can I use this without customization?**  
+A: Yes, it works out of the box. But you'll get the most value after adding your patterns (10-15 minutes with `/add-context`).
+
+**Q: What models are supported?**  
+A: Any model from any provider (Claude, GPT, Gemini, local models). No vendor lock-in.
+
+### For Teams
+
+**Q: How do I share context with my team?**  
+A: Commit `.opencode/context/project/` to your repo. Team members automatically use same patterns.
+
+**Q: How do we ensure everyone follows the same standards?**  
+A: Add team patterns to context once. All agents load them automatically. Consistent code across entire team.
+
+**Q: Can different projects have different patterns?**  
+A: Yes! Use project-specific context (`.opencode/` in project root) to override global patterns.
+
+### Technical
+
+**Q: How does token efficiency work?**  
+A: MVI principle: Only load what's needed, when it's needed. Context files <200 lines (scannable in 30s). ContextScout discovers relevant patterns. Lazy loading prevents context bloat. 80% of tasks use isolation context (minimal overhead).
+
+**Q: What's ContextScout?**  
+A: Smart pattern discovery agent. Finds relevant context files before code generation. Ranks by priority. Prevents wasted work.
+
+**Q: Can I edit agent behavior?**  
+A: Yes! Agents are markdown files. Edit them directly: `nano .opencode/agent/core/opencoder.md` (local) or `nano ~/.config/opencode/agent/core/opencoder.md` (global)
+
+**Q: How do approval gates work?**  
+A: Agents ALWAYS request approval before execution (write/edit/bash). You review plans before implementation. No surprises.
+
+**Q: How do I update my context?**  
+A: Run `/add-context --update` anytime your patterns change. Agents automatically use updated patterns.
+
+### Comparison
+
+**Q: How is this different from Cursor/Copilot?**  
+A: AOC has editable agents (not baked-in), approval gates (not auto-execute), context system (YOUR patterns), and MVI token efficiency.
+
+**Q: How is this different from Aider?**  
+A: AOC has team patterns, context system, approval workflow, and smart pattern discovery. Aider is file-based only.
+
+**Q: How does this compare to Oh My OpenCode?**  
+A: Both are built on OpenCode. AOC focuses on **control & repeatability** (approval gates, pattern control, team standards). Oh My OpenCode focuses on **autonomy & speed** (parallel agents, auto-execution). [Read detailed comparison →](https://github.com/darrenhinde/OpenAgentsControl/discussions/116)
+
+**Q: When should I NOT use AOC?**  
+A: If you want fully autonomous execution without approval gates, or if you don't have established coding patterns yet.
+
+### Setup
+
+**Q: What bash version do I need?**  
+A: Bash 3.2+ (macOS default works). Run `bash scripts/tests/test-compatibility.sh` to check.
+
+**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: Local (`.opencode/` in your project) is recommended — patterns are committed to git and shared with your team. Global (`~/.config/opencode/`) is good for personal defaults across all projects. The installer asks you to choose. See [OpenCode Config Docs](https://opencode.ai/docs/config/) for how configs merge.
+
+---
+
+## 🗺️ Roadmap & What's Coming
+
+**This is only the beginning!** We're actively developing new features and improvements every day.
+
+### 🚀 See What's Coming Next
+
+Check out our [**Project Board**](https://github.com/darrenhinde/OpenAgentsControl/projects) to see:
+- 🔨 **In Progress** - Features being built right now
+- 📋 **Planned** - What's coming soon
+- 💡 **Ideas** - Future enhancements under consideration
+- ✅ **Recently Shipped** - Latest improvements
+
+### 🎯 Current Focus Areas
+
+- **Plugin System** - npm-based plugin architecture for easy distribution
+- **Performance Improvements** - Faster agent execution and context loading
+- **Enhanced Context Discovery** - Smarter pattern recognition
+- **Multi-language Support** - Better Python, Go, Rust support
+- **Team Collaboration** - Shared context and team workflows
+- **Documentation** - More examples, tutorials, and guides
+
+### 💬 Have Ideas?
+
+We'd love to hear from you! 
+- 💡 [**Submit Feature Requests**](https://github.com/darrenhinde/OpenAgentsControl/issues/new?labels=enhancement)
+- 🐛 [**Report Bugs**](https://github.com/darrenhinde/OpenAgentsControl/issues/new?labels=bug)
+- 💬 [**Join Discussions**](https://github.com/darrenhinde/OpenAgentsControl/discussions)
+
+**Star the repo** ⭐ to stay updated with new releases!
+
+---
 
 ## 🤝 Contributing
 
-Contributions welcome! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
+We welcome contributions!
+
+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: [Contributing Guide](docs/contributing/CONTRIBUTING.md) • [Code of Conduct](docs/contributing/CODE_OF_CONDUCT.md)
+
+---
+
+## 💬 Community & Support
+
+<div align="center">
+
+**Join the community and stay updated with the latest AI development workflows!**
 
-## 📄 License
+[![YouTube](https://img.shields.io/badge/YouTube-Darren_Builds_AI-red?style=for-the-badge&logo=youtube&logoColor=white)](https://youtube.com/@DarrenBuildsAI)
+[![Community](https://img.shields.io/badge/Community-NextSystems.ai-blue?style=for-the-badge&logo=discourse&logoColor=white)](https://nextsystems.ai)
+[![X/Twitter](https://img.shields.io/badge/Follow-@DarrenBuildsAI-1DA1F2?style=for-the-badge&logo=x&logoColor=white)](https://x.com/DarrenBuildsAI)
+[![Buy Me A Coffee](https://img.shields.io/badge/Support-Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/darrenhinde)
 
-MIT License - see [LICENSE](./LICENSE) for details.
+**📺 Tutorials & Demos** • **💬 Join Waitlist** • **🐦 Latest Updates** • **☕ Support Development**
+
+*Your support helps keep this project free and open-source!*
+
+</div>
+
+---
 
-## 🆘 Support
+## License
 
-- **Issues**: [GitHub Issues](https://github.com/darrenhinde/OpenAgentsControl/issues)
-- **Discussions**: [GitHub Discussions](https://github.com/darrenhinde/OpenAgentsControl/discussions)
+This project is licensed under the MIT License.
 
 ---
 
-**Version**: 1.0.0-beta  
-**Status**: Active Development  
-**Last Updated**: 2026-02-16
+**Made with ❤️ by developers, for developers. Star the repo if this saves you refactoring time!**