# Devflow [![npm version](https://img.shields.io/npm/v/devflow-kit)](https://www.npmjs.com/package/devflow-kit) [![CI](https://github.com/dean0x/devflow/actions/workflows/ci.yml/badge.svg)](https://github.com/dean0x/devflow/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/dean0x/devflow/blob/main/LICENSE) [![Node.js 22+](https://img.shields.io/badge/node-22%2B-brightgreen.svg)](https://nodejs.org/) [![Website](https://img.shields.io/badge/Website-dean0x.github.io%2Fx%2Fdevflow-blue)](https://dean0x.github.io/x/devflow/) **A meta-harness for Claude Code.** Claude Code gives you one brilliant engineer. Devflow installs the engineering organization around it: an orchestrator that delegates, a roster of specialized agents, a review culture, institutional memory, and a delivery pipeline. Built for developers turning agentic development into a team that ships. ## The problem with AI-assisted development Claude Code is powerful. But a single agent is not a team. Every session starts from scratch, context evaporates between conversations, reviews are single-pass and shallow, and quality depends on what you remember to ask for. What's missing is exactly what makes an engineering team ship: memory, standards, review culture, and a delivery process. Devflow fixes this. Install once, forget about it. ## See it work One feature, four commands, bird's-eye view — each command is an agent pipeline, not a prompt: ```text you: /plan add rate limiting to the /api/upload endpoint Skim · Explore orient in the codebase (at depth normal) — relevant modules, existing middleware patterns Design gap analysis: completeness, security, performance Plan · Synthesize PR-ready plan document → .devflow/docs/design/ Git traceable issue #42 opened you: /implement (hand it the plan) Git branch feat/42-rate-limit-upload Code implements the plan — your learned decisions, pitfalls, and feature knowledge preloaded Polish · Harden cleanup pass at full, then 9-pillar quality gate (lean: not on docs-only diffs) Evaluate implementation matches the original request ✓ (standard, lean: checked once) Validate build ✓ typecheck ✓ lint ✓ tests ✓ Test 5/5 QA scenarios pass Git PR opened → CI green ✓ you: /code-review Review ×12 security, architecture, performance, complexity, … (up to 20, in parallel) Synthesize 18 findings ranked by severity + confidence → review-summary.md you: /resolve Triage every finding validated against a blast-radius matrix — 11 fix-now, 3 by design, 4 false positives Code ×11 each real issue fixed Validate · Git verification gate ✓ → pushed to the PR ``` This is the **orchestrated flow** — you stay in the loop between every step. With ambient mode on you don't even need the commands: describe the task and the orchestrator routes it through the same pipelines. ## What you get **Ambient orchestration.** Your main session becomes the tech lead: a charter injected at session start turns it into an orchestrator that delegates work to specialized agents and keeps judgment mainline, with one bounded inline exception for a single short git, gh or script command. Init and forget. **A staffed agent roster.** 20 specialized agents with explicit model assignments — Opus for analysis, Sonnet for execution, Haiku for I/O. Reassign any agent's model with `devflow agents`, including GPT models through external model routing (`devflow proxy`). **Up to 20 parallel Review agents.** Security, architecture, performance, complexity, consistency, regression, testing, and more. Each produces findings with severity, confidence scoring, and concrete fixes. Conditional Review agents activate when relevant (language focuses such as TypeScript for `.ts` files, database for schema changes, compliance when regulated surface detected in the diff). The gate level narrows these sets: the default `standard` level drops the TypeScript focus, and `lean` runs fewer focuses still. Every finding gets validated and resolved automatically. **Working memory is off by default.** Run `devflow memory --enable` to keep a short note across restarts, `/clear`, and context compaction. The note has a limit of 8 KB (8,192 bytes). Use one worktree for each parallel session. **Decisions and pitfalls.** A background agent detects architectural decisions and known pitfalls from your session dialogs and writes them to `.devflow/curation/decisions.md` and `.devflow/curation/pitfalls.md` — informing every future review and implementation session without any manual bookkeeping. **Feature knowledge bases.** Curated `KNOWLEDGE.md` files per feature area — patterns, conventions, and gotchas — git-tracked and shared with your team. Planning, implementation, and review workflows load them automatically and refresh them after changes. **Always-on rules.** 13 ultra-condensed engineering principles (~10 lines each) load on every prompt — security, quality, and language-specific guidance (TypeScript, React, Go, Python, Java, Rust), plus a compliance rule when compliance is enabled. Rules install from your selected plugins only, so a Go project won't get React rules. Override any rule via `~/.devflow/rules/{name}.md` or `devflow rules shadow `. **Plain-English replies, opt-in.** Off by default. `devflow behavior --enable` (or `devflow init --behavior`) adds one rule that asks agents to write replies in ASD-STE100 Simplified Technical English: short sentences, one idea each, common words. `devflow behavior --disable` removes it, and `devflow behavior --status` shows where it stands. **42 skills** (41 plugin-owned + 1 feature-owned compliance skill, installed on every machine). Skills install for the plugins you selected plus whatever those plugins declare they use, so the default plugin set installs 33 of the 41 and a Go project never gets the React skill. Most are grounded in expert material — backed by peer-reviewed papers, canonical books, and industry standards: security (OWASP, Shostack), architecture (Parnas, Evans, Fowler), performance (Brendan Gregg), testing (Beck, Meszaros), design (Wlaschin, Hickey), compliance (GDPR, HIPAA, PCI DSS, SOC 2, ISO 27001, SOX, NIST SSDF, OWASP ASVS), 200+ sources total. **Skill shadowing.** Override any built-in skill with your own version. Drop a file into `~/.devflow/skills/{name}/` and the installer uses yours instead of the default — same activation, your rules. A shadow for a skill outside your plugin selection stays where it is: not installed, never deleted, and live again the moment you select that plugin. **Compliance built in.** Six regulatory frameworks — GDPR, HIPAA, PCI DSS, SOC 2, ISO 27001, SOX. Every install carries the review skill with all six framework references; `devflow compliance --enable` adds an always-on rule for exactly the frameworks you select. A repository can declare its own frameworks in `.devflow/project.json` (`"compliance":["hipaa"]`), and the compliance review then runs there on any machine — with your machine's frameworks plus the repository's, loading only those references — without ever touching your rule. Compliance reviews activate automatically when a diff touches regulated surface. Enabling it on your machine also makes `required` the floor of your team's [evidence policy](#evidence-policy) on your machine: tracker-linked PRs, checked test plans, traced releases and a non-author approval before a PR reads merge-ready. **Your issue tracker, not just GitHub.** Pick the tracker your team actually uses — GitHub, Jira, or Linear — at `devflow init`, with `devflow init --tracker `, or later with `devflow tracker --set `; that sets your machine's default. A repository can select its own in `.devflow/project.json`, and devflow follows it there automatically — one machine can work on a Jira repository and a GitHub one side by side. Every install carries every provider's mechanics (44 generated reference files, the tool-call contract among them) and the background agent, because pull requests stay on GitHub whatever your tracker and any repository may pick any provider. On a non-GitHub tracker that agent learns your conventions once per provider (project key, issue types, required fields, workflow transitions, how a reference renders) and writes them to `~/.devflow/tracker/{provider}.md`, so traceability speaks your tracker's vocabulary instead of assuming `#123`. Each provider's conventions are learned from the first repository that uses it. Those files are yours: hand-editable, kept across an uninstall, and refused rather than silently trusted if one no longer names its own provider. The Git and Tracker agents reach a tracker only through the servers you allow (Atlassian, Jira and Linear by default); `devflow tracker --servers` names others. **GitHub is the default** and needs no configuration: no background run and no conventions file. **Full lifecycle.** Beyond the core flow: `/explore` maps a codebase into knowledge bases, `/research` runs multi-type research with trust-aware synthesis, `/debug` investigates with competing hypotheses in parallel, `/bug-analysis` hunts bugs before review, `/self-review` runs Polish + Harden quality passes, and `/release` ships with learned configuration. **Everything is composable.** 20 plugins (12 core + 8 optional). Install only what you need. **HUD.** A persistent status line updates on every prompt — project, branch, diff stats, context usage, model, cost with weekly/monthly totals, quota reset timers (Claude and Codex), and configuration counts at a glance. ``` ~/devflow · main · +2 -1 · v2.0.0+3 Context ████░░░░ 42% · 5h ████░░░░ 45% (2h 15m) · 7d ████████ 70% (3d 12h) Opus 4.6 (1M) · 3 MCPs 2 rules · $1.42 · $18.50/wk · $62.30/mo ``` **Claude week forecast, opt-in.** The forecast is off by default. Run `devflow hud --forecast` to show the estimated quota use at reset next to `7d`. Run `devflow hud --no-forecast` to turn it off. Run `devflow hud --status` to see your choice. Devflow saves your choice in the `forecast` field of `~/.devflow/hud.json`. `devflow init` keeps that choice. When the HUD and the forecast are on, the HUD adds the `weekForecast` component. The HUD uses the same formula as the tokenmeter forecast, but it needs no tokenmeter data. It uses the current session's `rate_limits.seven_day` from Claude Code on stdin. The HUD treats that value as current at each update. It omits the forecast if the week data is absent or invalid. It also omits the forecast for about the first five hours of the quota week. For Codex limits, the HUD runs `tokenmeter hud` when its cache expires, usually after 30 seconds. tokenmeter checks recent Codex session logs in the background. By default, tokenmeter can start `codex app-server` at most about once per minute per data folder. Codex can then use its stored sign-in to request the limits and the account token usage from OpenAI over HTTP. To stop the app server and the account usage request, and keep the log source, run `npx @dean0x/tokenmeter@0.3.0 config app_server off`. The HUD shows the age of data that is at least 10 minutes old. If tokenmeter cannot find Codex on `PATH`, log data at least 10 minutes old does not show. If neither source has data, the HUD omits the Codex segment. After an upgrade, run `devflow init` again. See the [HUD reference](https://github.com/dean0x/devflow/blob/main/docs/cli-reference.md#hud-status-line). **Security.** Deny lists block dangerous tool patterns out of the box — configurable during init and toggleable any time with `devflow security` (`--enable`/`--disable`/`--status`). ## Quick Start ```bash npx devflow-kit init ``` The interactive wizard offers Recommended defaults or an Advanced flow with more options. On new installs, ambient mode and curation are on by default. Working memory is off. A standard re-init keeps your memory choice. `devflow init --reset` restores the off default. For non-interactive setup, run `npx devflow-kit init --recommended`. ## Privacy & Sharing Everything Devflow generates lives under `.devflow/` — working memory, decisions and pitfalls, feature knowledge bases, naming conventions, docs and transient locks. On first use Devflow appends one block to your project's root `.gitignore`. It keeps per-developer runtime state on your machine and shares three things through git: the feature knowledge bases, the learned naming conventions and the team's settings in `.devflow/project.json`, which carry its [evidence policy](#evidence-policy): ```gitignore # Devflow runtime data — local by default (memory, curation, docs, locks). # Shared via git: feature knowledge bases under .devflow/features/ (index.md and # every {slug}/KNOWLEDGE.md), .devflow/conventions.md (naming authority), # .devflow/policy.json (retired; presence only) and .devflow/project.json (team settings). # To stop sharing the first two, re-add `.devflow/features/` or # `.devflow/conventions.md` to your own .gitignore. .devflow/* !.devflow/features/ .devflow/features/* !.devflow/features/index.md !.devflow/features/*/ .devflow/features/*/* !.devflow/features/*/KNOWLEDGE.md !.devflow/conventions.md !.devflow/policy.json !.devflow/project.json .claudeignore ``` The `!.devflow/policy.json` line keeps a retired policy file shared while teammates on an older devflow still read it (see [Evidence policy](#evidence-policy)). When your block predates a line, the next hook run or `devflow init` inserts the missing line inside the block, where a fresh block holds it — never at the end of the file, so a re-ignore of your own further down still wins. The paired lines — `!.devflow/features/` then `.devflow/features/*` — are required: git never descends into an excluded directory to reach a re-included file. The final `.claudeignore` line is left out when your `.gitignore` already has its own `.claudeignore` or `!.claudeignore` entry. To keep the knowledge bases or conventions local, add `.devflow/features/` or `.devflow/conventions.md` to your own `.gitignore`. A `/.devflow/` line of your own opts the whole project out: Devflow then leaves your `.gitignore` alone. ## Commands | Command | What it does | |---------|-------------| | `/explore` | Codebase exploration with optional knowledge base creation | | `/research` | Multi-type research with trust-aware synthesis | | `/plan` | Design pipeline: explore (at depth `normal`) → gap analysis → design → PR-ready plan document | | `/implement` | Execute plan: accepts plan documents from `/plan`, issues, or task descriptions → PR | | `/self-review` | Polish + Harden quality pass | | `/code-review` | Multi-perspective parallel code review | | `/resolve` | Validate and fix all review issues | | `/debug` | Competing hypothesis investigation | | `/bug-analysis` | Proactive bug finding with static and semantic analysis | | `/release` | Adaptive release with learned configuration | See [docs/commands.md](https://github.com/dean0x/devflow/blob/main/docs/commands.md) for detailed usage. **PR-comment publication** for `/code-review` and `/resolve` is visibility-gated (counts-only stub on public repos by default) and every posted body is secret-scrubbed before it leaves your machine. Configure via `reviewPublication` (`auto`, `full` or `off`) in your personal `.devflow/config.json`; a team value in [`.devflow/project.json`](#team-settings) is only a ceiling: it can lower yours, never raise it. A summary section whose heading starts with the word `Private`, for example `## Private notes`, stays out of the comment. Under a `required` evidence policy, `off` still posts the counts-only stub, so a record reaches the PR unless no public text remains. The [test-plan evidence](#test-plan-evidence) comment is a stub unless `reviewPublication` is `full` — details in [docs/commands.md](https://github.com/dean0x/devflow/blob/main/docs/commands.md). ## Team settings A repository can commit `.devflow/project.json` to settle team-wide choices. Every key is optional, unknown keys are ignored, and devflow never writes the file: ```json {"version":1,"evidence":"required","compliance":["hipaa"], "tracker":{"provider":"jira","site":"https://acme.atlassian.net","key":"ACME"}, "reviewPublication":"auto","features":{"curation":false}} ``` - `evidence` is the [evidence policy](#evidence-policy); `compliance` names the regulatory frameworks the repository answers to, and its presence raises the evidence floor to `required`. - `tracker` selects the repository's issue tracker. Your personal `.devflow/config.json` may only narrow it, to `github` or to the same provider. - `reviewPublication` is a ceiling only: it can lower your personal value, never raise it. With no personal value you get at most `auto` — a team `off` still lowers it — so a branch that commits `full` cannot switch off the visibility gate for whoever reviews it. - `features` can switch memory, curation or knowledge off for this repository, never back on. Your personal `config.json` can do the same for you. The key is `features.curation`. Devflow 3.8 reads the old key `features.learning` too, and the repository turns the feature off when either key is `false`. A 3.7 install reads only `features.learning`. In a team with mixed versions, keep the old key in the committed file, or set both keys, until every member runs 3.8. **Adopting it.** Commit `project.json` on the default branch. `evidence` is always read from the default branch, so a feature branch cannot lower the bar it is judged by. Every other key — `tracker` with its `site` and `key`, `features` and the `reviewPublication` ceiling — is read from the branch you have checked out, so a branch that edits them sees the change at once. `compliance` is read from both and joined with your machine's frameworks: a branch can add a framework, never remove one, so a pull request that deletes `"compliance":["hipaa"]` is still reviewed under HIPAA. The default branch's copy is read from your clone's tracking branch, as fresh as your last fetch, never over the network, so a framework added on the default branch reaches the lens once your checkout has fetched it. Each key is checked on its own, so one bad value never disables the rest: a bad `evidence` resolves to `required`, a bad `reviewPublication` to `off`, a bad `compliance` list to the generic lens. A `project.json` or `config.json` that exists but is not a JSON object is never read as absent: the settings fail closed (publication off, knowledge write-back off, the tracker reported as invalid). The compliance lens is the exception, because it only adds scrutiny: it keeps every framework a readable layer declares, and an unreadable `project.json` counts as the generic lens. Memory and curation capture fail open instead: the hooks read an unreadable file as narrowing nothing, so capture runs as your machine's switch says. `config.json` is personal, so it must not be committed. A `config.json` that git tracks is ignored as if it were absent — otherwise a branch could commit `"reviewPublication":"full"` for whoever reviews it — and `devflow tracker|memory|curation|knowledge|gates --status` say so, with the fix: untrack the tracked entry with `git rm --cached`, then check or delete the file, because untracking leaves the committed bytes on disk as your personal file. Commands never read the file themselves — one local resolver folds it with your `config.json` and the machine settings, without touching the network. **Gate level.** The gate level (`full`, `standard` or `lean`) is not a narrow-only switch: your personal `.devflow/config.json` may carry a top-level `"gateLevel"` key that raises or lowers the machine default, which sits in `~/.devflow/manifest.json`, and `standard` applies when neither is set. `devflow init` asks for the machine default (an interactive run only; `devflow init --gate-level ` sets it with no prompt, and `--recommended` or a non-interactive init keeps the stored value), and `devflow gates --set ` changes it later. A `gateLevel` in `project.json` is ignored, and no command writes the personal key. A malformed value reads as `full`. `/code-review` and `/plan` read the level: `standard` and `lean` run fewer review focuses and fewer planning agents. The security checks and, in `/plan`, the design review run at every level and depth. The compliance gap agent runs on its own trigger at every level and depth. At `lean` and at no other level, `/implement` has Validate run your project's `lint-pack` script last (template in `templates/lint-pack/`). The script finds the faults a linter does not, such as a removed flag that a doc still names. To clear a match that you accept, add an allow glob to `.lint-pack.conf`. Run `devflow gates --set full` to keep Polish and the full `/plan` shape; `/plan` also proposes a per-run depth at Gate 0, and the full shape needs depth `normal` (a raise signal never gets `small`). `/implement` and `/resolve` also read the level and name it in their report. At `standard` and `lean` they skip Polish, and `full` keeps it. At `lean`, `/implement` also skips Harden on a docs-only diff (the root `README.md`, the root `CHANGELOG.md` or `.md` files under the root `docs/` that no agent loads as instructions, with the compliance lens `off`), and its report says `Harden: ran` or `Harden: SKIPPED (docs-only diff)`. Run `devflow gates --set standard` or `--set full` to keep Harden on every diff. At `standard` and `lean`, `/implement` runs one Evaluate pass. Evaluate reports a missed or partly met criterion or plan step, a behaviour defect, intent drift, unrequested additions, and a missing or weak test that a criterion or plan step asks for. It leaves out docs, KB, CHANGELOG, comment and cosmetic items that no criterion or plan step names. After a misalignment, one Fix round runs and Evaluate does not run again. When Fix completes, Validate and QA cover the fix and the report shows `MISALIGNED (fixed once, not re-checked)`. Run `devflow gates --set full` to keep up to two Fix rounds, each checked again. `/resolve` applies severity tiers at `standard` and `lean`: it fixes the findings that it keeps, fixes a prose-only MEDIUM finding with text edits alone, and sends lower findings to one backlog issue through manage-debt. A security finding is fixed or escalated at every level, and `full` still fixes a pre-existing finding in a touched file. Run `devflow gates --set full` to keep the `/resolve` fix of every FIX_NOW item as before. A level reference that cannot be read applies no row and keeps the level; `/plan` applies `full` at depth `normal`, also for a missing or malformed row. After updating, run `devflow init`. See the [CLI reference](https://github.com/dean0x/devflow/blob/main/docs/cli-reference.md#gate-level). ## Evidence policy How much evidence a change must carry is a team decision, so it lives in the file the team commits, read from the repository's default branch: the `evidence` key of [`.devflow/project.json`](#team-settings). ```json {"version":1,"evidence":"required"} ``` `evidence` is `required` or `standard`. A malformed or duplicated value, or a `project.json` that is not a JSON object, resolves to `required`. **`.devflow/policy.json` is retired.** devflow never reads it. Where `project.json` has no `evidence` key, a committed `policy.json` holds the repository at `required` whatever it says, with an `invalid-file` warning. To migrate, add its value to `.devflow/project.json` — `{"version":1,"evidencePolicy":"standard"}` becomes `{"version":1,"evidence":"standard"}` — and keep `policy.json` until every teammate runs devflow 3.0 or later. It is harmless on 3.0, which never looks at it once `project.json` has `evidence`, while an older devflow reads only `policy.json`; delete it after that. `devflow compliance --status` prints the same hint while the file is there. | | `standard` | `required` | |---|---|---| | Tracker issue | optional — `/plan` offers to create one | mandatory — `/plan` creates or enriches one; `/implement` without one records a self-attested exception or stops | | Test plan | written and shown on the PR when there is one; a missing plan is only reported | mandatory — `/implement` without one records a self-attested exception or stops | | Naming conventions | not learned, not applied | learned once into `.devflow/conventions.md`, then applied to branch names and PR titles | | External review threads | left alone | `/resolve` replies to them and resolves the ones it verifiably fixed | | Merge readiness | not checked by `/resolve` | `/resolve` checks it, and READY needs a trusted non-author approval | | Releases | no trace gate (`--dry-run` still shows the trace) | `/release` maps every commit since the last release to its issue; untraced commits are attested or the release halts; shipped issues are back-linked and added to the release marker | | `reviewPublication: off` | no PR comment | the counts-only stub still posts, unless no public text remains | **Defaults.** With no committed `evidence` and no `policy.json` the policy is `standard`, unless compliance is enabled on the machine running devflow — at any framework count — which makes it `required` there, or the repository's `project.json` carries a `compliance` key — on the default branch, its tracking copy or the working tree, whatever its value — which makes it `required` everywhere. **The stricter value wins.** The default branch's copy is the authority, so a feature branch that commits a weaker policy is still judged by the default branch's; the difference shows as a `pr-changes-policy` warning. Local sources can raise the policy but never lower it: enabled compliance raises a committed `standard` to `required` on that machine. Every failure — git not answering, an invalid file, a resolver that cannot run — resolves to `required`. Offline, devflow takes the default branch's name from your clone's `origin/HEAD` and reads that branch's local tracking copy instead, so a branch still cannot lower the policy, and flags the result `remote-unavailable`. A clone that never recorded `origin/HEAD` has only the working tree to go on, which then decides; `git remote set-head origin --auto` records it. **Commit it yourself.** The CLI never writes `project.json` or `policy.json`. `devflow compliance --enable` and `--set` print the keys to add to `.devflow/project.json` — merged into the file when it already exists, never replacing it — and `devflow compliance --status` shows the policy resolved for the current repository and where it came from. The `.gitignore` block above keeps `project.json` shareable. Guard it like any other policy file, for example with a CODEOWNERS entry: ```text /.devflow/project.json @your-org/maintainers ``` ## Test-plan evidence A PR carries a test plan: one TP line per acceptance criterion, in one fixed shape. ```text - [ ] TP-1 (AC-1) rejects an upload over the size limit — method:ci [files: src/upload/**] ``` `method` is how the line is verified: `ci` (the CI suite covers it), `local` (a command whose exit code the Test agent reads) or `manual` (agent-driven steps, observed). `files:` lists the globs the line covers, so a later change elsewhere does not make it stale. A scenario is plain words — no `#`, `@`, `/`, `<`, `>`, brackets or backticks — because it lands in the PR body, where a closing keyword or a mention would act. For a planned local failure, append ` [expect-exit: ]` (1 to 125) and claim `TP-=PASS:` with the true exit; the script reads only the exit. `/plan` writes the lines, and `/implement` checks them before any code is written. The PR body carries them as a test-plan block between `` markers. The Test agent records a claim per line — `PASS`, `FAIL` or `SKIP` at a commit — and the evidence scripts, never a prompt, turn each claim into one of six states: | State | Meaning | |---|---| | `VERIFIED-CI` | a `ci` pass backed by passing CI runs at the verifying commit | | `ATTESTED-LOCAL` | a `local` pass with the expected exit code (0 by default), a `manual` pass, or a `ci` pass at a commit that has no CI runs | | `UNVERIFIED` | no usable claim: none, a skip, a commit outside the PR, or a line whose text changed | | `STALE` | claimed at an older commit, and the change since may touch the line's files | | `FAILED` | a fail, a local exit code that differs from the expected exit, or a failed CI run | | `INDETERMINATE` | something the verdict needs could not be resolved, such as a CI run still in progress or expired | Only the first two count as verified, and the block ticks exactly those lines. `update-pr-evidence` re-derives every state at the PR's head, updates the block — reduced to one counts line when the lines would push the body past its size limit — and edits the evidence comment your login posted so it names the new head. It posts a new comment only when your login has none, or when a newer evidence comment from another user follows it. `/implement` and `/resolve` both refresh it. The evidence comment is a counts-only **STUB** unless `reviewPublication` is `full`. **FULL** adds the scenario table, with links to the CI runs, and the reasons for any self-attested exception, and falls back to the STUB above 55,000 characters. `off` posts no evidence comment, except under a `required` policy, where it becomes the STUB. A self-attested exception — no tracker issue, or no test plan — is recorded in the PR body under `## Evidence Exceptions`, with who attested it and when. ## Language Support Optional plugins add language-specific patterns for TypeScript, React, Go, Python, Java, Rust, accessibility, and UI design. ```bash npx devflow-kit init --plugin=typescript,react ``` ## How it works Devflow is the meta-harness layer: Claude Code harnesses the model; Devflow harnesses Claude Code. Concretely, it's a registry-driven plugin system — each plugin installs commands, agents, and skills into your Claude Code environment. Skills are tiny markdown files that activate automatically based on context. Agents are specialized workers (review, triage, code, etc.) with explicit model assignments — Opus for analysis, Sonnet for execution, Haiku for I/O. Commands orchestrate agent pipelines. For deep dives: [Working Memory](https://github.com/dean0x/devflow/blob/main/docs/working-memory.md) | [CLI Reference](https://github.com/dean0x/devflow/blob/main/docs/cli-reference.md) | [Commands](https://github.com/dean0x/devflow/blob/main/docs/commands.md) ## CLI Reference ```bash npx devflow-kit init # Install (interactive wizard) npx devflow-kit init --plugin=implement # Install specific plugin npx devflow-kit ambient --enable # Toggle ambient mode (orchestrator) npx devflow-kit curation --enable # Toggle decision/pitfall tracking (all projects) npx devflow-kit compliance --enable # Enable compliance (pick frameworks); prints the keys to add to .devflow/project.json npx devflow-kit compliance --status # Show compliance state and this repo's evidence policy npx devflow-kit tracker --set jira # Pick the machine's default tracker (github | jira | linear) npx devflow-kit tracker --status # Show provider, this repo's effective one, learned conventions, mechanics npx devflow-kit tracker --servers default # Tracker servers the agents may call (comma-separated names, or default) npx devflow-kit gates --set lean # Set the machine's default gate level (full | standard | lean) npx devflow-kit gates --status # Show the gate level in effect here and which layer decided it npx devflow-kit rules --status # Show installed rules npx devflow-kit security --status # Show / manage the security deny list npx devflow-kit safe-delete --enable # Install rm -> trash safe-delete npx devflow-kit proxy --enable # Enable external model routing (GPT via Codex) npx devflow-kit proxy --disable # Disable and revert agents to Claude defaults npx devflow-kit agents # Configure per-agent model assignments (TUI) npx devflow-kit agents --list # List agents with current model assignments npx devflow-kit uninstall # Remove Devflow ``` See [docs/cli-reference.md](https://github.com/dean0x/devflow/blob/main/docs/cli-reference.md) for all options. ## Part of the AI Development Stack | Tool | Role | What It Does | |------|------|-------------| | **[Skim](https://github.com/dean0x/skim)** | Context Optimization | Code-aware AST parsing, command rewriting, output compression | | **Devflow** | Meta-Harness | Orchestrated workflow, parallel review, memory, curated decisions | | **[MDS](https://github.com/dean0x/mdscript)** | Prompt Engineering | Composable template language for prompts — variables, loops, conditionals, imports, compiled to clean Markdown | ## Building from Source ```bash git clone https://github.com/dean0x/devflow.git cd devflow && npm install && npm run build node dist/cli.js init ``` ## Requirements - [Claude Code](https://claude.ai/download) (latest) - Node.js 22+ ## License MIT