Coding & DevelopmentπŸ€–claudeπŸ’¬gpt🌐universal

Flow-Code

Zero-dependency planning + execution plugin for Claude Code. Fork of flow-next.

Quick Start

Install this Skill

npx skills add z23cc/flow-code
<div align="center">

**[English](README.md)** | **[δΈ­ζ–‡](README_CN.md)**

# Flow-Code

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENSE)
[![Claude Code](https://img.shields.io/badge/Claude_Code-Plugin-blueviolet)](https://claude.ai/code)

[![Version](https://img.shields.io/badge/Version-0.1.24-green)](../../CHANGELOG.md)

[![Status](https://img.shields.io/badge/Status-Active_Development-brightgreen)](../../CHANGELOG.md)

**A production-grade harness for Claude Code. Full-auto development from idea to PR.**

**Zero external dependencies. Zero questions asked.**

</div>

---

### What is Harness Engineering?

> *"The model is commodity; the harness is moat."* β€” [Anthropic](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents), [OpenAI](https://openai.com/index/harness-engineering/), [Mitchell Hashimoto](https://mitchellh.com/writing/my-ai-adoption-journey)

A **harness** wraps around an AI coding agent to handle everything the model can't do alone: state management, context bridging, quality gates, multi-agent coordination, and error recovery. Flow-Code is a complete harness for Claude Code.

### How Flow-Code Compares

| Capability | Flow-Code | [compound-engineering](https://github.com/EveryInc/compound-engineering-plugin) (12.5K⭐) | [claude-mem](https://github.com/thedotmack/claude-mem) (44K⭐) | [superpowers](https://github.com/anthropics/claude-plugins-official) |
|---|---|---|---|---|
| Task DAG + state machine | βœ… 37 commands, deps, split/skip | ❌ | ❌ | ❌ |
| Parallel Teams + file lock | βœ… Agent Teams, atomic locks | ❌ | ❌ | βœ… parallel agents (no locks) |
| Three-layer quality | βœ… guard + RP + Codex adversarial | ❌ | ❌ | ❌ |
| Runtime DAG mutation | βœ… split/skip/dep rm mid-execution | ❌ | ❌ | ❌ |
| Cross-model adversarial review | βœ… GPT tries to break Claude's code | ❌ | ❌ | ❌ |
| Full-auto (zero questions) | βœ… AI decides branch/review/depth | ❌ | ❌ | ❌ |
| Context preservation | βœ… PreCompact hook | ❌ | βœ… embedding + RAG | ❌ |
| Auto draft PR | βœ… | ❌ | ❌ | ❌ |
| Zero dependencies | βœ… single Rust binary + Bash skills | ❌ Node.js | ❌ ChromaDB | ❌ Node.js |

---

## Table of Contents

- [What Is This?](#what-is-this)
- [Why It Works](#why-it-works)
- [Quick Start](#quick-start) β€” Install, setup, use
- [When to Use What](#when-to-use-what) β€” Interview vs Plan vs Work
- [Agent Readiness Assessment](#agent-readiness-assessment) β€” `/flow-code:prime`
- [Troubleshooting](#troubleshooting)
- [Codebase Map](#codebase-map) β€” Architecture documentation via parallel subagents
- [Auto-Improve](#auto-improve-autonomous-optimization) β€” Autonomous code optimization
- [Ralph (Autonomous Mode)](#ralph-autonomous-mode) β€” Run overnight
- [Features](#features) β€” Re-anchoring, multi-user, reviews, dependencies
- [Commands](#commands) β€” All slash commands + flags
  - [Command Reference](#command-reference) β€” Detailed input docs for each command
- [The Workflow](#the-workflow) β€” Planning and work phases
- [.flow/ Directory](#flow-directory) β€” File structure
- [flowctl CLI](#flowctl-cli) β€” Direct CLI usage

---

## What Is This?

Flow-Code is a **harness engineering framework** for Claude Code. One command goes from idea to draft PR β€” planning, parallel implementation, three-layer quality gates, and cross-model adversarial review, all fully automated.

```
/flow-code:plan "Add OAuth login"
  β†’ AI research (adaptive scouts)
  β†’ RP plan-review (code-aware)
  β†’ Teams parallel workers (file locking)
  β†’ guard per-commit (Layer 1)
  β†’ Codex adversarial (Layer 3: GPT tries to break it)
  β†’ auto push + draft PR
```

Everything lives in your repo as `.flow/` state. No external services. No global config. Single Rust binary + Bash skills. Uninstall: delete `.flow/`.

<table>
<tr>
<td><img src="../../assets/flow-code-plan.png" alt="Planning Phase" width="400"/></td>
<td><img src="../../assets/flow-code-work.png" alt="Implementation Phase" width="400"/></td>
</tr>
<tr>
<td align="center"><em>Planning: dependency-ordered tasks</em></td>
<td align="center"><em>Execution: fixes, evidence, review</em></td>
</tr>
</table>

---

## Epic-first task model

Flow-Code does not support standalone tasks.

Every unit of work belongs to an epic fn-N (even if it's a single task).

Tasks are always fn-N.M and inherit context from the epic spec.

Flow-Code always creates an epic container (even for one-offs) so every task has a durable home for context, re-anchoring, and automation. You never have to think about it.

Rationale: keeps the system simple, improves re-anchoring, makes automation (Ralph) reliable.

"One-off request" -> epic with one task.

---

## Why It Works

### Full-Auto by Default

Say one sentence. Flow-Code plans, implements, tests, commits, and opens a draft PR β€” zero questions asked. AI reads git state and `.flow/` config to make all decisions (branch, review backend, research depth) autonomously.

```bash
# Full auto: plan β†’ implement β†’ test β†’ commit β†’ draft PR
/flow-code:pl

... (truncated)
Repository
4stars
0forks
View on GitHub
Details
DiscoveredApr 5, 2026
Last UpdatedApr 5, 2026
Author@z23cc
Quality Score
33/100