OpenCode GraphAgent banner
LeXwDeX LeXwDeX

OpenCode GraphAgent

AI community

Description

Extends the Hooks API, Directed Acyclic Graph Agent Execution Engine. This project is self-maintained by AI.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

English · 简体中文

GraphAgent

A coding agent that decomposes a task into a dependency graph of child agents and drives it to completion. State is durable, crashes are recoverable, and the whole graph can be inspected and controlled from the terminal.

GraphAgent is the product name for this project; the repository is published as **OpenCode-GraphAgent**, a fork of the MIT-licensed [opencode](https://github.com/anomalyco/opencode) terminal AI agent that adds the DAG workflow engine. **Not affiliated with or endorsed by the OpenCode team.**

[!IMPORTANT] **GraphAgent v1 is in focused maintenance.** Maintenance is limited to DAG configuration, curated workflow templates, and reproducible defects reported through [GitHub Issues](https://github.com/LeXwDeX/OpenCode-GraphAgent/issues). Architecture defects that affect stability, data integrity, or the core DAG experience will receive narrowly scoped compatibility patches; v1 will not take new platform features or large foundational refactors. A successor project will redesign the runtime independently, without extending v1's compatibility constraints.


What is the graph

A workflow is a set of nodes connected by dependency edges. Each node is a real child session with its own agent and context window; an edge means the downstream node consumes the upstream node's output. Nodes run wave by wave in dependency order, so independent work executes in parallel and dependent work waits.

The parent agent (your main conversation) owns the graph. It designs the graph for a task, starts it, and gets woken when a node reports or the workflow finishes — it never polls. When a wave fails, the parent rewrites the failed segment and the engine continues; the view always shows the current graph, not the history of rewrites (more on this under [Revisions](#revisions)).

Three terms worth knowing:

  • Node — one unit of