An independent explainer for pacphi's agentic-kit — built to help you actually implement it.

source github.com/pacphi/agentic-kit

agentic-kit
@pacphi/agentic-kit

It says OK. Your agent's memory just stopped reaching disk.

ruflo (claude-flow) promises an AI coding agent that remembers what it learned, watches for hostile instructions, and runs helper work in the background. A routine package upgrade can quietly break the piece that actually saves memory to disk — and nothing on screen tells you. agentic-kit is one command that finds that kind of silent drift, repairs it, and proves the repair held with a receipt, not a checkmark.

Your agent stack is not healthy until the test receipt comes out.

An independent explainer for Chris Phillipson (pacphi)'s agentic-kit — built to take you from "never seen it" to "ready to implement".

license MITstage 4.0.0-alphaplatforms macOS · Linux · Windows

▶ the 38-second version — made from this page's own assets

01

A green checkmark is not evidence

Why does this exist?

Four separate things can go quietly wrong under one healthy-looking AI agent stack — and every one of them fails silently.

Say your coding agent is supposed to remember what it learned last week: where the bugs live, which fixes worked. One day an ordinary background package upgrade runs. Nothing crashes. The tool still prints "saved." But underneath, the small embedded database file it writes to (SQLite — a local data file, not a server) can quietly lose its fast native connection and fall back to a slower substitute that never actually finishes the write. The agent keeps working. It just forgets, silently, forever.

Reinstalling doesn't reliably fix it either. A newer version of npm (the tool that installs JavaScript packages) started blocking, by default, the exact install step that builds that fast database connection — a reasonable security precaution against packages running arbitrary code on install. It just means a plain reinstall can leave you back on the broken, forgetful path, with no error telling you so.

A related package the agent depends on for catching hostile instructions hidden in text (prompt-injection defense) can simply stop being included in a later release. The guard you assume is running isn't there — and nothing says so.

Add background helper processes that can keep running and spending API credits after you've moved on, and a pattern-memory file that can corrupt if a process is killed mid-write, and you get a stack that looks healthy in every log line while quietly accumulating exactly the kind of failure nobody notices until the agent gives a wrong, forgetful answer at the worst moment.

The problem

not hypotheticalThe dropped prompt-injection guard was traced and filed upstream as ruvnet/ruflo issue #2670 — one of six issues this kit's verification work has surfaced.

02

One command, four verbs, one receipt

What does it actually do?

You never install ruflo or agentic-qe yourself. ak setup installs them, ak status shows what's true, ak sync converges everything to good, and ak uninstall leaves cleanly — each ending in something checkable, not just an assurance.

The big idea
the four verbs
CommandWhat it actually proves
ak statuswhat's true right now vs. drifted — read-only, changes nothing
ak setupinstalls + configures, ending in a verified store→disk write
ak syncupgrades, re-heals what the upgrade wiped, re-verifies — then self-updates the kit last
ak uninstallremoves the kit's footprint; your project data is never touched
03

It doesn't trust the checkmark — it writes a receipt and reads it back

Why is it elegant?

The clever move isn't the healing logic itself; it's refusing to declare victory on a message. During setup, agentic-kit writes a real probe key into the memory store, then reads that exact row back from disk before it will say VERIFIED.

If the fast native path is still broken, THIS is the first thing that fails — loudly, at setup, with a named fix — instead of the thing you discover three weeks later when the agent has forgotten everything.

The aha

oh — it doesn't ask ruflo whether memory works. It writes a key, waits for the disk, and reads that exact row back. No confirmed row, no VERIFIED.

04

Under the router: a healer, not just an installer

How is it built?

A thin CLI hands off to a command router (setup / status / sync / uninstall), which calls a shared healer library — the same functions ported from a battle-tested shell predecessor — that inspects and repairs your machine's global ruflo and agentic-qe installations.

ak sync is the one convergence verb: it upgrades ruflo + agentic-qe first (when a newer release exists), re-heals everything an upgrade may have wiped — native bindings, the security guard, daemon supply, CLAUDE.md guidance blocks — then re-runs the same write-and-read-back probe from setup, and only then self-updates the kit itself, as the last step, so new code never applies mid-sync.

Architecture
Architecture — modules, components and how they depend on each other.
Data flow
Data flow — how a request moves through the system at runtime.
05

What you actually see

Could I use this?

Both commands below are read-only or dry-run — real output, captured straight from this repo's own CLI, nothing staged.

06

From broken to proven, in one pass

How do I start?

Requirements: Node ≥22, npm, and the claude CLI. That's the whole list — ruflo and agentic-qe are not prerequisites.

npm install -g @pacphi/agentic-kit@next
  1. 1. Install the kit npm install -g @pacphi/agentic-kit@next — the only package you ever install by hand.
  2. 2. Run setup once per machine ak setup — installs ruflo + agentic-qe globally, working around npm's allow-scripts gate so native bindings actually build. Run it inside a git repo and it also sets up that project: pinned memory path, a verified store→disk write, a local-only ($0) daemon.
  3. 3. See what's true ak status — a per-subsystem ✓/⚠/✗ dashboard, read-only, in under a second. You will see one line per subsystem, like ✓ versions ruflo 3.30.2 (latest), with any ⚠ row naming the exact fix.
  4. 4. Preview, then converge ak sync --dry-run shows the exact plan and why; run ak sync (no flag) to upgrade, heal, and re-verify in one pass — it self-updates the kit last, so new code never applies mid-run. A clean run ends with every row ✓ and, inside a project, the setup receipt memory write VERIFIED (store → on-disk row confirmed).
  5. 5. Leave cleanly, any time ak uninstall (or --purge for the global packages) — your project data is never touched.
07

Two outputs, one build: a page for you, a knowledge pack for your AI

Does my AI get it too?

Everything above came from a real vector knowledge base built from this exact repo — not a summary. Download the same base as a drop-in pack so your own AI agent can answer questions about agentic-kit from real passages, not a guess.

agentic-kit-knowledge-pack.zip ├── for-humans/ │ └── agentic-kit-primer.md └── for-ai/ ├── agentic-kit-kb.rvf ├── agentic-kit-symbols.json ├── agentic-kit-dep-graph.json ├── agentic-kit-entrypoints.json ├── ask-kb.mjs ├── kb-mcp-server.mjs └── package.json
Download the AI knowledge packRVF vector KB + MCP server — drop it into your own agent.
Give your AI the same understandingagentic-kit-knowledge-pack.zip