# OpenAgents Control

> Plan-first OpenCode agents that learn your coding patterns and ask before they act

- Category: AI Coding / Coding-Agent Harnesses & Runtimes
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/darrenhinde/OpenAgentsControl
- Canonical page: https://ai-tldr.dev/tools/openagents-control/
- Updated: 2026-01-30

## In short

OpenAgents Control (OAC) is an open-source agent framework built on OpenCode. It sits in the Coding-Agent Harnesses & Runtimes category of the AI Coding tools and is open-source, written in TypeScript and licensed MIT. To get started: install with the developer profile.

## Overview

OpenAgents Control (OAC) is an open-source agent framework built on OpenCode. It adds a set of main agents, specialist subagents, slash commands and a context system to OpenCode so that coding work follows a fixed loop: the agent discovers your project's patterns, proposes a plan, waits for you to approve it, then implements it step by step with validation. The README states that agents always request approval before writing or editing files, running bash commands or delegating to subagents.

The centre of the project is its context system. You describe your stack, an example API endpoint, an example component, naming conventions, code standards and security requirements once through the /add-context wizard, and the answers are stored as small markdown files under .opencode/context/. A ContextScout subagent finds the relevant files before code is generated, and because the files live in the repo a team can commit them so every member's agents follow the same standards. The project calls its file-size discipline MVI (Minimal Viable Information): context files are kept short and loaded lazily rather than loading the whole codebase.

Three main agents cover different jobs: OpenAgent for general tasks, questions and learning the system; OpenCoder for production development and multi-file refactoring, with a discover, propose, approve, execute, validate and ship flow; and SystemBuilder, an interactive wizard that generates custom orchestrators, subagents, context files, workflows and commands for a domain. They delegate to subagents such as TaskManager, CoderAgent, TestEngineer, CodeReviewer, BuildAgent, DocWriter and ExternalScout, which fetches live documentation for external libraries. Every agent is a markdown file you can edit, including the model it uses, and OAC works with any model OpenCode supports. A Claude Code plugin version is also published, marked beta in the README. The project is MIT-licensed.

## What it does

- Approval gates: agents propose a plan and ask before writing files, running bash commands or delegating to subagents
- Context system: the /add-context wizard records your stack, example code, naming conventions and standards as markdown files that agents load before generating code
- Three main agents (OpenAgent, OpenCoder, SystemBuilder) plus auto-delegated subagents for task breakdown, coding, tests, code review, builds, docs and live external documentation
- Agents are plain markdown files: edit workflows, constraints or the per-agent model in the frontmatter without compiling anything
- Team-shareable patterns: commit .opencode/context/ to the repo so every developer's agents use the same standards
- Model-agnostic through OpenCode, with a beta Claude Code plugin that ships seven subagents and a six-stage approval workflow

## Getting started

OAC needs the OpenCode CLI, Bash 3.2+ and Git; the installer sets up OpenCode if it is missing. On Windows the README recommends Git Bash or WSL.

1. Install with the developer profile

```bash
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgentsControl/main/install.sh | bash -s developer
```

2. Or run the installer interactively

   The interactive installer asks whether to install locally into the project's .opencode/ folder (recommended for teams) or globally into ~/.config/opencode/.

```bash
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgentsControl/main/install.sh -o install.sh
bash install.sh
```

3. Start an agent

   OpenAgent is the starting point. It analyses the request, proposes a plan for you to approve, then executes with validation and delegates to specialists when needed. Use OpenCoder for larger production work.

```bash
opencode --agent OpenAgent
> "Create a user authentication system"
```

4. Teach it your patterns

   Inside OpenCode, run the context wizard and answer its six questions about your stack, example code, naming conventions, standards and security rules. Rerun it with --update as the project changes.

```bash
/add-context
```

5. Keep OAC updated

   Add --install-dir PATH if you installed to a custom location.

```bash
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgentsControl/main/update.sh | bash
```

## When to use it

- Generate features that follow a team's existing API, component and naming conventions instead of generic code that needs rework
- Keep a human review step in front of every file edit and shell command an AI coding agent makes
- Share one set of coding standards across a team by committing the agents' context files to the repository
- Build a domain-specific agent system with its own orchestrator, subagents and commands using SystemBuilder

## Version history

- 2026-01-30 v0.7.1: Adds context path configuration and reorganises the documentation.
