Agents ship the code. HQFlow shows you the system.

Agents ship faster than you can reread the repo. HQFlow maps what they built, entry point to failure path.

$npx hqflow init
$npx hqflow open

Completely free & open source. Runs on localhost. Your code never leaves your machine.

Live Your agent saves the workflow file. HQFlow draws each step as it lands.

Ship with agents. Still understand the architecture.

Every feature your agent ships moves the architecture a little. A diff shows you lines. It does not show you the system.

Read the code

The agent wrote it in an afternoon. Reading it back takes a week.

Read the docs

Walls of markdown. Accurate maybe, but no shape, and out of date by the next merge.

See the system

A map of the real workflows: where each one starts, where it branches, what it touches, and where it can fail.

The map lives in your repo.

No database and no account. It is plain JSON next to the code it explains, so it moves through the same review as the code.

  • .codehq/One JSON file per workflow, next to the code.
  • git commitShip the map in the same pull request as the change.
  • any agentCursor today, Claude Code tomorrow. They all read the same files.
  • missing fileWhen a step points at a file that is gone, HQFlow flags the step.
Open Retry failed card payments once #142
src/checkout/payment.ts +18 −4
.codehq/workflows/checkout.json +9 −1
    { "from": "charge-card", "to": "send-receipt" },-   { "from": "charge-card", "to": "show-error", "type": "failure" }+   { "from": "charge-card", "to": "retry-charge", "type": "failure" },+   { "from": "retry-charge", "to": "send-receipt" },+   { "from": "retry-charge", "to": "show-error", "type": "failure" }

The reviewer sees the new failure path, not only the new lines.

Local-first, no LLM inside

No model, no API keys, no accounts, no telemetry. HQFlow uses the agent you already have, and your code never leaves your machine.

Evidence attached

Every step carries its real files, symbols, inputs, outputs, edge cases, and tests. Check any claim in one click.

Open source, MIT

Read every line. Fork it, audit it, run it offline.

Point it at your repo.

Two commands and one prompt. HQFlow draws each workflow while your agent writes it.

  1. 01

    Scaffold the contract

    $npx hqflow init

    Adds .codehq/ and the skill your agent reads.

  2. 02

    Open the canvas

    $npx hqflow open

    Starts the canvas on localhost. Nothing is uploaded.

  3. 03

    Ask your agent

    “Map how checkout actually works in this repo: steps, sources, failure paths.”

    Works with Cursor, Claude Code and Codex. Anything that can read a repo.

Find it useful? Star HQFlow on GitHub