Skip to content

Sungblab/devflow-native

Repository files navigation

Devflow Native

한국어 문서

Devflow Native is a local-first workflow harness for AI coding agents such as Codex and Claude Code.

It does not write code for you. Instead, it helps the repository remember what the agents did, what they verified, what still looks risky, and what the next session should pick up.

Why This Exists

AI coding agents are getting better at generating code. The next bottleneck is often continuity:

  • What changed in the last session?
  • Which tests, typechecks, builds, or reviews actually ran?
  • What failed or was skipped?
  • Which repo docs and project rules should the next agent trust?
  • Is it really safe to say the task is done?

Long context, chat history, and session compaction help, but they are not the same as project-local workflow state. Devflow keeps that state in the repo so a new Codex, Claude Code, shell, or human review session can resume without rediscovering everything from scratch.

How It Fits

Devflow is not trying to replace the tools around it.

Superpowers: agent development habits and workflow skills
CodeGraph:   codebase structure and context navigation
Codex/Claude: execution hosts for coding agents
Devflow:    work state, verification records, review state, and next-session prompts

In plain terms: Devflow asks the repo to remember enough that the next agent does not have to guess where the previous one stopped.

What It Does

  • Creates a .devflow/config.json project contract with gates and review policy.
  • Installs and checks local Codex/Claude plugin, hook, and MCP harness files.
  • Shows repo status, changed files, work/session state, gates, and latest handoff.
  • Records review evidence and gate evidence before work is called done.
  • Provides finish --dry-run to check whether a task can honestly be claimed complete.
  • Generates the prompt the next agent session should continue from.

Quick Try

The intended path is agent-native setup: open Codex or Claude Code in the target repo and ask it to install Devflow safely.

Install Devflow Native for this repository.

Inspect the repo first. Preserve existing AGENTS.md, CLAUDE.md, README, tests,
and project rules. Use npx devflow-native@latest if devflow is not already
installed.

Initialize the Devflow scaffold when missing, install only missing Codex/Claude
harness files, run doctor/status/harness health, and tell me exactly what files
changed and whether I need to restart the agent host.

Maintainer shorthand is part of the intended workflow. The prompt hook maps short commands into workflow intent and gives the agent the next Devflow actions to run:

  • ㄱㄱ, 진행해, 계속, continue, next, go -> continue/start from devflow status --json and devflow prompt latest.
  • 끝내, 마무리, 완료, finish, done -> run devflow finish --guided and follow any review or gate blockers before claiming completion.
  • 다음 세션 프롬프트 줘, 여기까지, handoff -> create a handoff with devflow status --json and devflow prompt next.
  • 리뷰, pr, pull request -> request and record review evidence.
  • html, 리포트, 보드 -> inspect status first and generate an artifact only when it is explicitly useful.

When a prompt contains mixed signals, Devflow uses this priority: finish > handoff > review/pr > artifact > continue. The agent still has to inspect repo state, run required gates, and record review evidence before claiming that work is complete.

Manual Fallback

npx devflow-native@latest --help
npx devflow-native@latest init --confirm
npx devflow-native@latest harness install --confirm
npx devflow-native@latest harness health
npx devflow-native@latest status --simple

harness install --confirm keeps generated plugins/devflow/ harness files local by default by adding them to .gitignore. Use --repo-visible only when the target repository should commit those plugin files as part of its public development workflow.

For repeated local use, a global install is still fine:

npm install -g devflow-native
devflow harness health

What Devflow Does Not Do

  • It is not an autonomous coding agent.
  • It does not replace Codex, Claude Code, Superpowers, git, tests, or PR review.
  • It does not treat HTML dashboards or generated artifacts as source of truth.
  • It is not tied to one agent runtime or one workflow methodology.

Core Loop

Codex or Claude Code opens the repo
  -> Devflow session-start hook injects compact repo context

Maintainer says "continue" or "next"
  -> Devflow prompt hook classifies workflow intent
  -> the agent starts from status, active work, and handoff state

Maintainer says "finish" or "review"
  -> Devflow finish flow checks docs impact, gates, risks, and next prompt
  -> completion evidence is recorded in .devflow/state/events.jsonl

Runtime state such as .devflow/state/ and .devflow/next-prompt.md is local by default. Public project contracts such as .devflow/config.json can be committed when a repository wants to adopt Devflow as part of its workflow.

Dogfood Smoke

Devflow Native is dogfooded against OpenCairn, a larger Windows/PowerShell monorepo, to keep the product honest on mature-repo adoption instead of only greenfield demos.

Latest local smoke, run from C:\Users\Sungbin\Documents\GitHub\opencairn-monorepo:

devflow harness inspect --json
devflow harness health --json
devflow gates run docs-check --work local-work --json
devflow finish --json

Observed result on 2026-05-29:

  • Codex and Claude harness targets reported ready.
  • Harness health reported status: ok; plugin manifests, MCP config, hook scripts, and review.required passed.
  • docs-check passed when recorded against local-work.
  • finish kept canClaimDone: false until review evidence was recorded, which is the intended guardrail.

This is a smoke record, not a performance benchmark. It proves the current harness can install, inspect, run hooks, record gate evidence, and block unsafe finish claims in a real repository.

Common Commands

devflow --help
devflow doctor --platform windows-powershell --json
devflow status --simple
devflow finish --guided
devflow prompt latest
devflow harness health
devflow mcp stdio

Documentation

Repository Structure

packages/core     shared product model, local state, gates, handoff contracts
packages/cli      terminal command surface over core contracts
packages/mcp      MCP handler and stdio transport over the same contracts
packages/adapters agent/session history adapters
plugins/devflow   dogfood Codex and Claude Code plugin drafts
docs              product, architecture, roadmap, examples, and public notes
.devflow          dogfood project contract; runtime state is gitignored

Status

The current MVP includes the npm package, CLI, MCP handler, repo-local Codex/Claude plugin drafts, hooks, and finish guard. Hosted sync, richer artifact generation, and broader adapter coverage are later work.

Research notes, paper drafts, evaluation fixtures, and non-public data live in a separate private repository. This public repository contains product implementation and public product documentation only.

About

Native local workflow continuity for Claude Code and Codex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors