askflow
A coding agent starts every session from zero: it doesn't know what the client asked for, what was decided or what is really finished. askflow is a CLI that keeps every ask in a ledger that only grows and takes each piece of work through five gates, from entry to verification with evidence. It works with Claude Code, Codex, Cursor and Gemini CLI. Open source, published on npm.

The problem
On a project where an AI agent writes much of the code, the hard part stops being the writing. The hard part is knowing what was asked, what replaced what, what was decided and why, what was left half done and what has been checked. Asks arrive through documents, email and meetings; the agent starts every session with no memory of any of it, and "done" ends up meaning three different things: the code is written, the board says done, and the client has seen it work.
What I built
- A ledger that only grows (
events.jsonl): one event per line for every ask, link, decision, half-done piece of work, review, verification and close. It is never edited or deleted; the state of each ask is computed by reading the ledger. - Five gates every piece of work goes through: entry with the client's criteria copied as written, spec, test first, PR review and verification with evidence.
- Gaps that show up on their own: asks with no criteria, no task or no spec, closed without verification, or that the board calls done and the ledger does not.
- Three separate roles: an archivist that reads the client's deliveries and proposes the asks, a PR reviewer that has not seen the conversation, and a verifier that checks each criterion on the real system.
- Per-project configuration: who the client is, what "done" means, the board, the spec tool and the review rules live in one file; nothing in the tool is written for a particular project.
- A board of your choice: a board tool through its MCP server, or a Markdown board inside the project that the CLI itself maintains.
- Loading history in batches for projects that are already months old, with a separate list of what could not be closed.
Technical decisions
- The agent does not write the ledger: it calls a command that validates the event, dates it and appends it. State and gaps are computed by code, always with the same result.
- A pure engine: the ledger logic touches no files and knows nothing about any project; it is tested as functions.
- No dependencies: Node's standard library only, with
node --testtests. - Several agents: for Claude Code it installs a skill and three agents; for Codex, Cursor, Gemini CLI and anything that reads
AGENTS.mdit leaves a short section pointing toaskflow guide, which prints the workflow from the installed package, so no copy goes stale. - Nothing is deleted: what stops being valid is marked with an event; in the user's files only the section marked as its own is touched.
- The ledger can live outside the project: in the repository, in a separate notes repository or in any folder.
Status
Version 0.1, released as open source (MIT) in November 2026. Install it with npm install -g askflow (package on npm). The idea comes from a real project with Claude Code; support for other agents is new.