README_en.md

September 2, 2026 · View on GitHub

Dev Flow

Dev Flow — Resume the task. Not the chat. Session 1 resumes as the same Task in Session 2 after a Host restart.

Resume the same Codex or DeepSeek Harness task after an interruption, with its scope, stage, and remaining verification intact.

Dev Flow npm CI Apache 2.0 License

Install · Two-minute demo · Website

简体中文 · English · 繁體中文 · 日本語 · 한국어 · Español · Français · Deutsch · Português (Brasil)

Dev Flow keeps a long-running AI coding task's scope, current stage, remaining verification, and recovery state outside chat history. After context compaction or a Host restart, Codex or DeepSeek Harness reads the same local Task and continues the unfinished work instead of reconstructing progress from a partial conversation.

Shortest installation path

Current stable @latest artifacts support macOS arm64. Current source also implements Windows 10/11 desktop x64 and has native Windows 11 evidence; the stable claim expands only after an independent release and final Host journey. See the Support Matrix for exact Host, Node.js, source, and stable-package coverage.

npm install -g @imotong/dev-flow@latest
dev-flow

After installation, use the corresponding entry from a Git repository.

Codex can select Dev Flow automatically. To enter explicitly:

$dev-flow-codex:dev-flow Fix the failed-login attempt limit and run only targeted tests.

Every direct DeepSeek Harness user message that needs Dev Flow uses:

/dev-flow Fix the failed-login attempt limit and run only targeted tests.

Native Host commands are diagnostic and recovery entry points. See the Codex guide, DeepSeek guide, and Command Reference for installation, status, resume, and removal details.

Have you encountered this?

A code change is implemented and only one targeted test remains. Then the session is compacted or the Host restarts. The next session sees partial chat and the current repository, but cannot tell which steps are complete or whether old test results still apply. It rescans, repeats changes, or skips the remaining work.

Dev Flow stores that progress as a local Task. The next session reads the Task first and continues from its saved stage and next step.

Four things it manages

ActionWhat Dev Flow retains and checks
RememberOriginal request, current stage, completed verification, blockers, and outcome
LimitTask Plan file scope, one-write file authorization, automatic verification-command count, repeated test loops, and permission for full suites or manual handoff
DecideWhich old test and comprehension records became stale after implementation changes, and whether repository state still matches the Task
RecoverWhether an uncertain Action should continue, be recorded, block, or retry safely

Codex and DeepSeek still read code, edit files, and run commands. The packaged Codex hook uses its package-owned launcher, while DeepSeek uses its structured-file-tool entry; each sends target paths to Core before a write. An unplanned path enters BLOCKED so the developer can allow that exact write, revise the Task Plan, or reject it. Core also reconciles Task-introduced paths before testing and DONE.

Understand it in 30 seconds

Using an agent directlyWhat Dev Flow adds
Progress is reconstructed after an interrupted sessionResume the same local Task
A local task gradually expands in scopeAsk before supported unplanned writes and reconcile actual paths before delivery
Targeted testing keeps expandingRetain the verification budget
The same check and failure keep repeatingPause after the third exact repetition and wait for the developer
A missing operation response is retried immediatelyRead the current Task and Recovery state first
Test results are mixed with later code changesRetain the current stage and its corresponding evidence

Tasks that fit

Dev Flow fits real repository work that continues across sessions, days, or Host restarts, especially when a change needs explicit scope, targeted verification, a rework path, or a comprehension check before delivery. One primary repository plus a small number of explicit additional repositories is an advanced use case.

One-off questions, code explanations, status queries, and mechanical small edits that need no durable progress are usually simpler with Codex or DeepSeek directly. Dev Flow is also not a general task orchestrator, remote execution platform, or security sandbox.

Relationship to other tools

ToolResponsibility
Codex / DeepSeekRead repositories, change code, and run commands
OpenSpec / Spec KitHelp organize requirements, design, and tasks
Dev FlowRetain the current Task stage, scope, verification budget, recovery state, and legal next step

OpenSpec and Spec Kit are optional methods, not Dev Flow's primary position. There is no OpenSpec / Spec Kit artifact importer today; thinner integration remains a future direction.

Continue after an interruption

Before restart
Task: auth-rate-limit
State: TEST
Revision: 5
Completed: implementation
Remaining: targeted auth test

After restart
Task: auth-rate-limit
State: TEST
Revision: 5
Next: run the remaining targeted auth test

On resume, the Host reads the same Task's current stage, scope, remaining verification, and recovery state. It continues the remaining test instead of inferring progress from chat history. See the two-minute interruption story.

Stable support, current source, and boundaries

ProductVerified environment
dev-flow-codexmacOS arm64, Node.js >=24, Codex >=0.147.0
dev-flow-deepseekmacOS arm64, Node.js >=24, DSH >=0.1.0-rc.6
@imotong/dev-flowmacOS arm64, Node.js >=20

Current source additionally selects the exact win32-x64 package runtime for Windows 10/11 desktop x64. Windows Server, 32-bit Windows, and Windows ARM64 are not supported. The Windows default data directory is %LOCALAPPDATA%\dev-flow\data, and configuration is %USERPROFILE%\.dev-flow\config.json. This source capability has not changed the stable @latest table above.

Host packages select the platform implementation outside Core. macOS and Windows each own their local path, permission, process, signal, and executable rules, while Core Task and workflow semantics remain platform-neutral.

Dev Flow remains early and external adoption is limited. Current boundaries include:

  • Core observes Git read-only and does not commit, push, merge, rebase, tag, or publish;
  • file changes and command execution remain with user-authorized Codex or DeepSeek;
  • the Host performs write-before checks only for the listed structured tools; Core does not intercept every file operation and is not a shell or file-system sandbox;
  • writes made by Bash, external processes, or specialized tools may be found only by Core's Implementation/Delivery reconciliation;
  • the WebUI is a local loopback single-user view and diagnostic entry, not a cloud project manager;
  • stable support comes only from public artifacts and real Host journeys listed in the Support Matrix.

Detailed documentation

What you needStart here
Product position, target users, and non-goalsProduct
A real interruption-and-resume storyDemo
Stable, source-only, unverified, and current gapsProject Status
Future prioritiesRoadmap
Core, Adapter, Store, Recovery, and protocolArchitecture
Complete CLI, selector, and MCP referenceCommand Reference
Local WebUIWebUI
Supported platforms and HostsSupport Matrix
Documentation and source responsibilitiesManifest
Security boundariesSecurity · Threat Model
ContributingContributing

Local development

Repository development requires Go >=1.26, Node.js >=24, and pnpm >=11 <12:

pnpm install --frozen-lockfile
pnpm run validate

License

Apache License 2.0