rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wtr20211202/schflow
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Proposal-driven task pipeline for AI coding agents
Proposals are filed, reviewed, and approved — approved tasks execute in parallel git worktrees via your agent CLI of choice, and finished branches merge through a per-branch serial merge queue. Deterministic bookkeeping lives in code; model judgment only where judgment is needed.
LLM-driven orchestrators drift: state machines living in prompts get misread, every tick burns tokens, and host-specific quirks break unattended runs. schflow keeps the proven bones of a long-running agent pipeline — file-as-state, idempotent ticks, parallel worktrees, serialized merges — and moves the deterministic half into small, runnable programs. The agents stay agents.
| 🧠 Dial model | The tick loop runs as an LLM skill (works anywhere today) or a zero-LLM script. Same state files, same prompts — moving right is an upgrade, not a migration. |
| 🔌 Any harness as executor | One runner contract: self-contained task book + shell tools + artifacts on disk + a structured result.json. claude -p, dsh headless, or any custom command qualifies. |
| 📦 Not just code | Six task kinds (code / fix / investigate / docs / research / chore) share one intake and state machine; only git-track kinds use worktrees and the merge queue. |
| 🌿 Serial merge queue | Per (repo, base) FIFO: rebase → verify → no-ff merge → secret-scan → fast-forward push. Ejection keeps the queue moving; push failure halts it. |
| 🏝️ Env leases | Shared verification environments are leased per dispatch (exclusive/shared, TTL recovery) — the pool is a config file, provisioning is pluggable. |
| 🛡️ Prompt-injection defenses | Untrusted-content fencing, source trust levels, exit-time secret scanning, forced source visibility. |
| 🧩 Official plugin distribution | One command per host — no manual copying (see Install). |
Both hosts install via their official plugin mechanism — no manual copying, no npm step:
claude code (manifests pass claude plugin validate):
# in a claude code session
/plugin marketplace add wtr20211202/schflow
/plugin install schflow@schflow
dsh (standard bundle, public repo — anonymous clone):
dsh plugin --profile schflow add "github:wtr20211202/schflow#path:hosts/dsh/plugin"
Requires: node ≥ 20 and git. The plugin gives your agent sessions the skills (schflow-proposer / schflow-orchestrator / schflow-executor / schflow-improve) that operate the pipeline; the deterministic programs live in this repo (core/programs/*.mjs) and run with plain node.
git clone https://github.com/wtr20211202/schflow.git && cd schflow && npm install
export SCHFLOW_HOME=~/.schflow # pipeline home (auto-created)
# file a proposal (human fast lane: auto-approved)
node core/programs/next-id.mjs # → P-YYYYMMDD-1
node core/programs/dup-check.mjs --title "your idea" --anchor anchor1 # dedup check
node core/programs/validate-task.mjs --task <id> # format gate
# approve + dispatch (fake executor runs with zero LLM — great for a first look)
node core/programs/dispatch.mjs --auto --runner fake --json
node core/programs/fold.mjs --json && node core/programs/merge.mjs --json
In an agent session (claude code or dsh, with the plugin installed), just ask: "list your schflow skills", "propose an improvement", "run one tick", "show the board".
For the full lifecycle — proposal → review gate → parallel executors → merge queue → push — see the design doc and the host READMEs: claude code · dsh · ZCode.
| Host | Install | Executor families | Notes |
|---|---|---|---|
| claude code | marketplace plugin | native subagent (in-session) / claude -p subprocess |
per-agent tool allowlists; README |
| dsh | bundle plugin | dsh --profile headless subprocess / native in GUI |
skills via skill-filesystem; README |
| ZCode | cron templates + skills | host-native | README |
schflow CLI consolidation (subcommands + setup/doctor — the two commands below ship with M0):
npx schflow@latest setup --host auto # planned (M0): detects installed agent hosts
npx schflow doctor # planned (M0): environment check
Engine absorption of the tick loop (zero-LLM schflow tick, dial far right)
More adapters (codex …), daemon scheduler, notification sinks
See CONTRIBUTING.md. Design changes go through docs/design.md; "why is it built this way" lives in the ADRs.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm。