Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.

Commit 2c97d05

Browse files
z23ccclaude
andcommitted
release: v0.1.45 — code graph index, intent-level API, N-gram optimization
Major additions since v0.1.44: - Code graph persistent index (graph build/update/refs/impact/map) - Intent-level commands: find (auto-routing search), edit (exact+fuzzy) - N-gram index 3x optimization: bincode (12x smaller), memchr, regex trigrams - 10 ADRs with invariant enforcement - project-context.md maximized across all pipeline stages - Memory type classification + auto pitfall capture - Quick Commands enforcement + repo-map unlimited default - Tool priority aligned: native first, flowctl for unique capabilities 370 tests pass. Binary: flowctl 0.1.45. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 54804f7 commit 2c97d05

10 files changed

Lines changed: 195 additions & 9 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
},
77
"metadata": {
88
"description": "Structured plan-first development plugin for Claude Code with .flow/ task tracking, Agent Teams, and Ralph autonomous mode",
9-
"version": "0.1.44"
9+
"version": "0.1.45"
1010
},
1111
"plugins": [
1212
{
1313
"name": "flow-code",
1414
"description": "Zero-dependency planning + execution with .flow/ task tracking. Three-layer quality (guard + RP plan-review + Codex adversarial). Full-auto, zero questions. Teams auto-parallel, DAG mutation, Codex-driven decisions, auto draft-PR, session summary. 5 prompt templates. 24 subagents, 22 commands, 74 skills.",
15-
"version": "0.1.44",
15+
"version": "0.1.45",
1616
"source": "./",
1717
"category": "workflow",
1818
"tags": [
@@ -26,5 +26,5 @@
2626
"strict": true
2727
}
2828
],
29-
"version": "0.1.44"
29+
"version": "0.1.45"
3030
}

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flow-code",
3-
"version": "0.1.44",
3+
"version": "0.1.45",
44
"description": "Zero-dependency planning + execution with .flow/ task tracking and Ralph autonomous mode (multi-model review gates). Worker subagent per task with git worktree isolation for parallel execution. Three-layer quality system (guard + RP plan-review + Codex adversarial). Full-auto by default — AI decides from context, zero questions. Teams-default with file locking, DAG mutation, Codex-driven conflict resolution, auto draft-PR. Auto-detected stack profiles with one-command guard (test/lint/typecheck). Enhanced agent definitions with permissionMode/maxTurns/effort. Lifecycle hooks with state preservation (PreCompact injects .flow state into compaction, TaskCompleted auto-unlocks files, SubagentStart context injection). Memory v2 with atomic entries, dedup, and progressive disclosure. TDD enforcement mode. Multi-epic queue with dependency visualization. Includes 24 subagents, 22 commands, 74 skills.",
55
"author": {
66
"name": "z23cc",

.codex-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flow-code",
3-
"version": "0.1.44",
3+
"version": "0.1.45",
44
"description": "Zero-dependency planning + execution with .flow/ task tracking and Ralph autonomous mode (multi-model review gates). Worker subagent per task with git worktree isolation for parallel execution. Three-layer quality system (guard + RP plan-review + Codex adversarial). Full-auto by default. Teams-default with file locking, DAG mutation, Codex-driven conflict resolution, auto draft-PR.",
55
"author": {
66
"name": "z23cc",

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@ All notable changes to Flow-Code are documented in this file.
44

55
Format follows [Keep a Changelog](https://keepachangelog.com/). Versions use [Semantic Versioning](https://semver.org/).
66

7+
## [0.1.45] - 2026-04-09
8+
9+
### Added
10+
- **Code graph persistent index** (`flowctl graph build/update/refs/impact/map`) — 1407 symbols, 107K edges, bincode persistence to `.flow/graph.bin`, incremental update via git diff
11+
- **`flowctl find`** — intent-level search that auto-routes: regex → index regex, symbol → graph refs, literal → trigram, fallback → nucleo fuzzy
12+
- **`flowctl edit`** — intent-level edit: exact str::replacen first, fuzzy fudiff fallback
13+
- **`flowctl graph refs`** — find all references to a symbol (<16ms from cache)
14+
- **`flowctl graph impact`** — transitive impact analysis: what files break if you change this file (BFS depth 3)
15+
- **N-gram index optimized**: bincode serialization (6.2MB → 502KB, 12x smaller), memchr verification (2-5x faster), regex→trigram extraction for indexed regex search
16+
- **`flowctl index regex`** — indexed regex search via trigram pre-filtering (12ms)
17+
- **10 ADRs** with YAML frontmatter (verify + scope) and 5 invariant checks
18+
- **project-context.md maximized** — now read by all pipeline stages (brainstorm/plan/review/worker/close)
19+
- **Memory type classification**`--type pitfall|convention|decision|general`, auto-capture pitfalls on NEEDS_WORK
20+
- **Quick Commands enforced** — Worker Phase 6 and close phase run epic smoke tests
21+
- **repo-map default unlimited** — outputs all ranked symbols by default
22+
- Deep comparison docs: flow-code vs flow-next, fff.nvim lessons, ADR strategy, Rust crate optimization research
23+
24+
### Changed
25+
- Skills/agents updated to use intent-level API (`find`/`graph refs`/`graph impact`/`edit`) instead of raw tool commands
26+
- Tool priority: native Claude Code tools (Grep/Glob/Read/Edit) first, flowctl for unique capabilities only
27+
- Pipeline alignment fixes: checklist wired into Worker Phase 10 + close, memory docs corrected, frecency docs corrected
28+
29+
### Dependencies
30+
- Added: `bincode` 2, `memchr` 2, `regex-syntax` 0.8
31+
732
## [0.1.44] - 2026-04-09
833

934
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENSE)
88
[![Claude Code](https://img.shields.io/badge/Claude_Code-Plugin-blueviolet)](https://claude.ai/code)
9-
[![Version](https://img.shields.io/badge/Version-0.1.44-green)](https://github.com/z23cc/flow-code/releases)
9+
[![Version](https://img.shields.io/badge/Version-0.1.45-green)](https://github.com/z23cc/flow-code/releases)
1010

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

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENSE)
88
[![Claude Code](https://img.shields.io/badge/Claude_Code-Plugin-blueviolet)](https://claude.ai/code)
9-
[![Version](https://img.shields.io/badge/Version-0.1.44-green)](https://github.com/z23cc/flow-code/releases)
9+
[![Version](https://img.shields.io/badge/Version-0.1.45-green)](https://github.com/z23cc/flow-code/releases)
1010

1111
**Claude Code 的生产级开发框架。从想法到 PR,全自动。**
1212

bin/flowctl

0 Bytes
Binary file not shown.
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# 深度对比:flow-code vs flow-next (gmickel-claude-marketplace)
2+
3+
> flow-code v0.1.44 vs flow-next v0.29.1 | 2026-04-09
4+
5+
---
6+
7+
## 关系
8+
9+
flow-code 最初 fork 自 flow-next,但已经走上了完全不同的架构路线。两者共享核心理念(plan-first、re-anchoring、.flow/ 状态、零依赖),但在引擎、规模和方向上已大幅分化。
10+
11+
---
12+
13+
## 1. 核心引擎
14+
15+
| 维度 | flow-code | flow-next |
16+
|------|-----------|-----------|
17+
| **引擎语言** | **Rust** (31,419 行) | **Python** (7,716 行 flowctl.py) |
18+
| **二进制** | 编译后单文件 (~3.5MB) | 解释执行 Python 脚本 |
19+
| **启动速度** | ~5ms | ~200-500ms (Python 启动) |
20+
| **CLI 命令数** | **68 个** | ~30 个 (估算,Python 子命令) |
21+
| **并发安全** | fs2 advisory lock + Rust 类型安全 | Python 文件锁 |
22+
| **DAG 引擎** | petgraph (拓扑排序 + 环检测) | 自建依赖排序 |
23+
| **状态机** | 8 种任务状态,形式化 | 隐式状态 (JSON 字段) |
24+
25+
### 分析
26+
flow-code 用 Rust 重写了引擎,代码量是 flow-next 的 4x(31K vs 7.7K 行),但获得了:
27+
- 编译时类型检查(Python 只有运行时错误)
28+
- 毫秒级 CLI 响应(vs Python 数百毫秒)
29+
- 形式化 DAG 验证(petgraph vs 手写排序)
30+
- 68 个 CLI 命令(vs ~30 个)
31+
32+
flow-next 的优势是**修改简单** — 改 Python 脚本不需要编译。
33+
34+
---
35+
36+
## 2. 规模对比
37+
38+
| 维度 | flow-code | flow-next |
39+
|------|-----------|-----------|
40+
| **命令** | 22 个斜杠命令 | 11 个 |
41+
| **技能** | 73 个 | 16 个 |
42+
| **Agent** | 24 个 | 20 个 |
43+
| **flowctl 命令** | 68 个 | ~30 个 |
44+
| **领域技能** | 47 个(安全/认证/缓存/数据库/API/国际化/容器/微服务/实时/状态管理/错误处理/监控/文档等) | 0 个 |
45+
| **步骤文件** | 15 个(JIT 加载) | 0 个(整体加载) |
46+
| **prompt 模板** | 8 个(blind-hunter/edge-case/acceptance-auditor 等) | 0 个 |
47+
48+
### 分析
49+
flow-code 在 fork 后扩展了 4.6x 技能(73 vs 16)和 2x 命令(22 vs 11)。最大的增量是 47 个**领域专用技能**(flow-next 完全没有)和 15 个**步骤文件**(JIT 加载节省 token)。
50+
51+
---
52+
53+
## 3. flow-code 独有功能
54+
55+
| 功能 | 描述 | 对应 flow-next |
56+
|------|------|---------------|
57+
| **Rust 二进制** | 编译时类型安全,毫秒级响应 | Python 脚本 |
58+
| **68 个 CLI 命令** | 完整的 CLI 工具链 | ~30 个 |
59+
| **模糊搜索 (nucleo)** | `flowctl search` — 防错别字 + frecency + git 加权 ||
60+
| **N-gram 索引** | `flowctl index` — trigram 倒排索引,<1ms 搜索 ||
61+
| **代码结构** | `flowctl code-structure` — 9 语言符号提取 ||
62+
| **Repo Map** | `flowctl repo-map` — PageRank 排序符号概览 ||
63+
| **模糊 Patch** | `flowctl patch` — fudiff 3 层回退 ||
64+
| **project-context.md** | 自动检测技术栈 + Guard Commands + File Conventions + 全管线读取 ||
65+
| **结构化完成清单** | `flowctl checklist` — 8 项 DoD ||
66+
| **步骤文件架构** | 15 个步骤文件 JIT 加载,省 60% token | 整体加载 |
67+
| **三层并行代码审查** | Blind Hunter + Edge Case Hunter + Acceptance Auditor | 单一审查 |
68+
| **零发现暂停规则** | 审查必须找到问题 ||
69+
| **高级引导方法** | Pre-mortem/第一性原理/逆向思维 ||
70+
| **Quick Dev** | `--quick` 标志跳过规划 ||
71+
| **47 个领域技能** | 安全/认证/数据库/API/缓存/容器/微服务等 ||
72+
| **8 个 prompt 模板** | 审查/对抗/PR 模板 ||
73+
| **DAG 环检测** | petgraph 拓扑排序 ||
74+
| **任务重启级联** | `flowctl restart` 重置下游 ||
75+
| **架构不变量** | `flowctl invariant add/check` ||
76+
| **Gap 管理** | `flowctl gap` 追踪缺失需求 ||
77+
| **事件溯源** | `flowctl events` 全程记录 ||
78+
| **文件锁 (Teams)** | `flowctl lock/unlock` | 无 (Python 锁不同层级) |
79+
| **write-file** | 流水线零交互文件写入 ||
80+
| **doctor 增强** | 9 类健康检查 | 基础检查 |
81+
| **Frecency 记忆** | 指数衰减文件排序 ||
82+
| **配置弃用迁移** | 自动检测旧配置 ||
83+
84+
---
85+
86+
## 4. flow-next 独有功能
87+
88+
| 功能 | 描述 | flow-code 状态 |
89+
|------|------|---------------|
90+
| **Python 引擎** | 修改简单,无需编译 | Rust 需编译 |
91+
| **TUI 监控** | flow-next-tui (Bun/TypeScript) 实时 Ralph 监控 | 无 TUI |
92+
| **Beads 集成** | 原版 flow 插件有 Beads 上下文管理 ||
93+
| **双插件架构** | flow (legacy) + flow-next (推荐) 共存 | 单插件 |
94+
| **watch mode** | Ralph `--watch` / `--watch verbose` | Ralph 无 watch |
95+
| **git add -A** | 总是 git add -A(不选择性 add) | 选择性 git add |
96+
97+
### 分析
98+
flow-next 的独有优势主要是 **TUI 监控**(Ralph 运行可视化)和**修改无需编译**。其他差异是设计选择(git add -A vs 选择性 add)。
99+
100+
---
101+
102+
## 5. 共享核心理念
103+
104+
两者保留的共同基因:
105+
106+
| 理念 | 实现 |
107+
|------|------|
108+
| **Plan-first** | brainstorm → plan → work → review → close |
109+
| **Re-anchoring** | 每个 Worker 读取 spec + 状态 |
110+
| **.flow/ 状态** | JSON 文件,无数据库 |
111+
| **零外部依赖** | 单二进制/脚本 + git/jq/gh |
112+
| **Multi-model review** | RP + Codex 双后端 |
113+
| **Ralph 自主模式** | 无人值守循环执行 |
114+
| **Evidence recording** | 每个任务记录 commits/tests |
115+
| **Memory system** | 学习 pitfalls,跨会话 |
116+
| **研究侦察兵** | 并行 scout 收集上下文 |
117+
| **Prime 评估** | 8 维 48 项就绪评估 |
118+
119+
---
120+
121+
## 6. 架构差异
122+
123+
| 维度 | flow-code | flow-next |
124+
|------|-----------|-----------|
125+
| **Epic 阶段** | 6 阶段(brainstorm → close),flowctl 强制顺序 | 隐式阶段,技能自行管理 |
126+
| **Worker 阶段** | 12 个内部阶段(flowctl worker-phase) | 技能内嵌 phases.md |
127+
| **技能加载** | 步骤文件 JIT 加载(省 60% token) | 整体加载 |
128+
| **审查** | 三层并行(Blind + Edge + Acceptance) | 单层(RP 或 Codex) |
129+
| **Guard** | project-context.md Guard Commands → stack config → 自动检测 | 手动配置 |
130+
| **Domain 分配** | File Conventions 自动匹配 | 手动 |
131+
| **搜索** | nucleo 模糊 + N-gram 索引 + frecency | Grep/Glob |
132+
| **代码理解** | code-structure + repo-map (PageRank) ||
133+
| **Patch** | fudiff 模糊匹配(3 层回退) | 标准 Edit |
134+
| **健康检查** | 9 类(binary/git/state/tools/search/context) | 基础 |
135+
| **跨平台** | Claude Code + Codex sync | Claude Code + Codex + Factory Droid |
136+
137+
---
138+
139+
## 7. 总结
140+
141+
### flow-code 的方向
142+
> **工程深度** — 用 Rust 重写引擎,加入搜索/索引/代码结构/模糊 patch 等底层能力,扩展 47 个领域技能,project-context.md 贯穿全管线。往"AI agent 的操作系统"方向发展。
143+
144+
### flow-next 的方向
145+
> **稳定实用** — 保持 Python 引擎简洁(7.7K 行),加 TUI 监控,稳步迭代。往"可靠的 plan-first 工具"方向发展。
146+
147+
### 数字对比
148+
149+
| 指标 | flow-code | flow-next | 倍数 |
150+
|------|-----------|-----------|------|
151+
| 技能数 | 73 | 16 | **4.6x** |
152+
| 命令数 | 22 | 11 | **2x** |
153+
| CLI 命令 | 68 | ~30 | **2.3x** |
154+
| 引擎代码 | 31,419 行 Rust | 7,716 行 Python | **4x** |
155+
| Agent 数 | 24 | 20 | **1.2x** |
156+
| 领域技能 | 47 | 0 | **** |
157+
| 搜索能力 | 4 种(fuzzy/index/structure/map) | 0 | **** |
158+
159+
---
160+
161+
*Generated 2026-04-09 by flow-code*

flowctl/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flowctl/crates/flowctl-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "flowctl-cli"
3-
version = "0.1.44"
3+
version = "0.1.45"
44
description = "CLI entry point for flowctl"
55
edition.workspace = true
66
rust-version.workspace = true

0 commit comments

Comments
 (0)