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

Commit e5543e9

Browse files
z23ccclaude
andcommitted
feat(flowctl): remove libSQL/fastembed — pure file-based state [fn-17]
Replace the entire async libSQL database layer with sync file-based I/O. All state now stored as JSON/JSONL files in .flow/, readable by MCP tools. Key changes: - Remove fastembed (128MB ONNX model) and all vector/embedding code - Remove libsql, tokio, tokio-util dependencies - Rewrite flowctl-db: 5,800 lines of async SQL → sync file wrappers - Delete db_shim.rs (492-line async-to-sync bridge) - Expand json_store with events JSONL, pipeline/phases/locks JSON, memory JSONL with text search - FlowStore struct as unified entry point for all file operations Results: - Binary: 22MB → 2.7MB (88% reduction) - Dependencies: zero async runtime, zero database - All state visible to MCP tools (Read, Grep, Glob) - 299 tests pass Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6a0a8b0 commit e5543e9

67 files changed

Lines changed: 1961 additions & 10704 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
44

55
## What Is This
66

7-
Flow-Code is a Claude Code plugin for structured, plan-first development. It provides a unified entry point (`/flow-code:run`) plus individual slash commands, skills, and agents that orchestrate task tracking via a `.flow/` directory. Core engine is a Rust binary (`flowctl`) with libSQL storage (async, native vector search) and MCP server support.
7+
Flow-Code is a Claude Code plugin for structured, plan-first development. It provides a unified entry point (`/flow-code:run`) plus individual slash commands, skills, and agents that orchestrate task tracking via a `.flow/` directory. Core engine is a Rust binary (`flowctl`) with file-based JSON storage and MCP server support.
88

99
## Core Architecture
1010

@@ -52,7 +52,7 @@ bash scripts/ralph_e2e_short_rp_test.sh
5252

5353
All tests create temp directories and clean up after themselves. They must NOT be run from the plugin repo root (safety check enforced).
5454

55-
**Storage runtime**: flowctl is libSQL-only (async, native vector search via `F32_BLOB(384)`). The `flowctl-db` crate was rewritten from rusqlite to libsql in fn-19 and is the sole storage crate. First build downloads the fastembed ONNX model (~130MB) to `.fastembed_cache/` for semantic memory search; subsequent builds/tests reuse the cache.
55+
**Storage runtime**: State is stored in JSON/JSONL files in the `.flow/` directory, readable by any tool. The `flowctl-db` crate provides synchronous file-based storage with no external database dependencies.
5656

5757
## Code Quality
5858

0 commit comments

Comments
 (0)