English · 中文 · العربية · Português (Brasil) · Bosanski · Dansk · Deutsch · Español · Français · 日本語 · 한국어 · Norsk · Polski · Русский · ไทย · Türkçe · Українська
An enhanced fork of opencode with a production-grade DAG workflow engine for multi-agent orchestration.
Built on top of the MIT-licensed opencode terminal AI agent. Not affiliated with or endorsed by the OpenCode team.
The headline feature. A directed acyclic graph (DAG) workflow engine that lets LLM agents orchestrate complex multi-node parallel tasks within a single session.
| Capability | Description |
|---|---|
| Auto-scheduling | Spawns child agents based on dependency order, parallel where possible |
| Dynamic replanning | Add/remove/update nodes and adjust concurrency mid-run |
| State machine integrity | Four iron laws: state machine bypass forbidden, terminal states irreversible, events must broadcast, persist before mutate |
| Terminal TUI | Full DAG control panel with block-char topology map, tree view, node dialogs, real-time updates |
| Crash recovery | Detects and resumes orphaned running workflows on restart |
| Conditional branching | Nodes can conditionally execute or skip based on upstream output |
| Sub-DAG nesting | Worker type dag spawns recursive sub-workflows (max depth 3) |
| Persistent audit | 6-table SQLite schema, all state transitions traceable |
See Harness-DAG-Workflow docs and the DAG developer guide.
Full Claude Code hooks protocol compatibility plus DAG workflow event bus integration (workflow.* / node.* events), TUI subscriptions, and HTTP API forwarding. See hooks reference.
Extensive fixes for Chinese/Japanese/Korean text handling: tokenization, full-width punctuation, file paths, IME input in the terminal UI. See fixes list.
- Sandbox — ephemeral temp dirs with LSP diagnostics for safe code experiments
- Worktree —
git worktreeper-workflow isolation for parallel multi-agent editing
curl -fsSL https://opencode.ai/install | bash
# Package managers
npm i -g opencode-ai@latest
brew install anomalyco/tap/opencode
scoop install opencode
# ...and more — see upstream docsTip
Remove versions older than 0.1.x before installing.
All upstream MIT-licensed capabilities are fully preserved:
- Desktop app (macOS / Windows / Linux) — download from releases
- Build & Plan agents —
Tabto switch between full-access and read-only modes - Multi-provider — Claude, OpenAI, Google, local models via OpenCode Zen
- Built-in LSP — real-time diagnostics from language servers
- Client/server architecture — run locally, drive remotely from mobile
This fork adds the DAG engine, CJK fixes, sandbox coding workspace, and goal tracking on top — without breaking anything.
This repository uses a mixed license model:
| Content | License | Location |
|---|---|---|
| Upstream opencode code (the vast majority) | MIT | LICENSE |
| Self-developed DAG workflow engine | GNU AGPL v3 | packages/opencode/src/dag/LICENSE |
Full boundary details in NOTICE.
⚖️ Why AGPL? The DAG engine is the core differentiated work. AGPL ensures any derivative — including SaaS deployments — must contribute back.
docs/harness-dag.md— DAG engine architecture & usagedocs/localization/zh-hans-fixes.md— CJK fixes catalogueNOTICE— license boundaries & attributionAGENTS.md— contribution & development guide