By nicolasacchi
Claude Code plugins for the kb daemon. The daemon stays model-free (#26); hooks and commands drive the `kb` CLI against a running daemon (default 127.0.0.1:4000). Most are mechanical; kb-reflect adds agent-driven memory consolidation (the distiller is the live session). See docs/extending.md for how these fit kb's extension model.
npx claudepluginhub nicolasacchi/kbClaude Code memory via the kb daemon: automatic recall each turn (UserPromptSubmit), a re-injected memory protocol at session start (SessionStart), verbatim transcript capture when the agent finishes (Stop), and a Stop-hook nudge that suggests /kb-distill when a session committed code but kept no memory — LLM-free, every hook just runs a kb verb. Ships /kb-distill (the episodic→semantic distiller: 1–3 quality-gated, deduped, provenance-stamped memories per session, --dry-run supported), /kb-weekly (the GET /api/sessions/ledger's narrative half — a project's week of sessions/commits/decisions turned into a short review note; facts from the daemon, prose from the agent), /kb-verify (the memory↔code drift sweep: code-citing memories resolved fresh through kb-code's doclens, dated [kb-drift] comments filed on dead citations — one open comment per (memory, path) — plus a born-stale check and kb memory flag escalation when the fact itself is wrong; --dry-run supported), /kb-setup: a guided first-run bootstrap (install check, daemon check, writes a kb.toml with memory + sessions corpora, starts + verifies the daemon), /kb-slate-tidy (kb-slate/1 housekeeping: reads a project's slate board plus history, drops noise the running session or a presumed-ended session authored, merges near-duplicate founds with --supersedes, closes asks whose asker ended — never touches a live other session's now/warn/take/hand), and /kb-slate-distill (turns a closed or rotated slate — current AND archived generations — into 1-5 durable memories, a narrative note, and a dated plan-file Status line).
Author kb-indexed HTML research artifacts and keep them true in one flow. Ships the kb-artifact authoring skill (the kb authoring contract), the kb-audit truth-maintenance skill (reconcile a corpus of research docs' status claims against repo truth, --fix flips stale markers in the source), and a /kb-tools command that prints the live `kb` CLI manifest. Packaging only — no daemon code; everything runs the existing `kb` CLI plus `git`/`rg`.
Triage SPA comments (kb-comments/1) from Claude Code. /kb-comments runs the list → edit-source → reply/resolve round-trip for one artifact; /kb-comments-watch is the live SSE loop that surfaces new reviewer comments as they land. The `kb` CLI is the only safe path — the daemon owns the ETag-protected review files. Packaging only; no daemon code.
The memory 'dream': /kb-reflect consolidates past Claude Code sessions into durable curated facts. Reads session digests, dedups against existing memories (ADD/SUPERSEDE/MERGE/NOOP), and — after you approve a dry-run — writes graded, provenance-linked facts via `kb remember`. The distiller is the live agent (same model, same tokens); the daemon stays model-free. Append-only, human-gated, recall untouched (#10).
Provenance-aware code browsing via a kb-code daemon: a PreToolUse hook (kb-code-why) that injects trailer/exact-confidence "who wrote this and why" context right before an Edit/Write touches a line kb-code can attribute, LLM-free and fail-open. A second hook (kb-code-annotations) surfaces the operator's `flag-for-agent` review annotations into the same sessions — a per-file PreToolUse nudge with the exact reply/resolve commands, plus a one-line SessionStart summary of any repo with open flags — turning reader-side review comments into a live human-to-agent dialogue. Ships `kb-code hook install|uninstall|status` to print the settings.json wiring for both hooks and check daemon reachability (never edits settings.json silently), and `kb-code bench-search` — a retrieval-quality/latency instrument over the unified Search-Everywhere box, with a starter query set for the kb repo itself.
7-day visitors to each marketplace page
kb is a self-hosted system of record for everything your AI writes. One Rust daemon watches folders of HTML and Markdown, indexes them with hybrid BM25 + vector search, and serves them over a CLI, an HTTP API, and a single-page web reader.
It is built for two users at once — a person and their coding agent — and keeps
three ledgers for both: the deliverables an agent writes (served, searched,
sandbox-isolated one origin per artifact); episodic sessions, transcripts
captured and digest-indexed, pulled on demand with kb why <file> / kb recollect <q> and never auto-injected into a prompt; and curated memory,
facts an agent chose to keep, recalled by rank × salience × decay at zero
per-call LLM cost.
Every surface — reader, CLI, capture hooks, inline comments — is a view of that one record. Nothing is summarised by a model inside the daemon: ranking, recall and digests are reproducible from their inputs. The daemon binds loopback by default and refuses a token-less public bind, so it is safe behind a TLS reverse proxy on day one.
Who it is for: someone who runs their own machines, generates a lot of
AI-written material, and wants it in plain files they can grep, git and
outlive the tool with. Not a hosted memory API and not a capture plugin — the
store is your filesystem, recall costs no tokens, and it is all MIT.
| noun | what it is |
|---|---|
| artifact | a rendered HTML or Markdown file — the atom kb indexes, serves, versions and comments on |
| corpus (a kb) | a watched source folder named in kb.toml; one daemon serves many, and every federated read fans out across all of them |
| daemon | the single kb daemon process: watcher, indexer, search, HTTP API, SSE event bus |
| reader | the built-in web SPA — gallery, search, atlas, the artifact reader with inline comments |
| CLI | kb, the only supported write path. Plugins and agents shell out to it; there is no in-daemon LLM to talk to |
| memory | a curated agent-explicit fact in a memory corpus, written by kb remember, ranked by kb recall |
| session | one captured agent transcript, indexed as a digest and pulled on demand — episodic, never ambient |
| slate | a project's shared working state (who is on what, open questions, dead ends), append-only and daemon-wide |
| kb-code | the sibling daemon that reads a git checkout the way kb reads a corpus — separate binary, separate port |
Supported platforms: Linux (x86_64 and aarch64, glibc >= 2.39) and WSL2. Docker for older glibc. macOS and native Windows are unsupported.
curl -fsSL https://raw.githubusercontent.com/nicolasacchi/kb/main/scripts/install.sh | sh
Detects your OS/arch, downloads the matching release tarball, verifies its
checksum (a missing checksum is an error, not a skip; KB_INSECURE_SKIP_VERIFY=1
overrides) and, when gh is signed in, its build provenance, then puts both
binaries in ~/.local/bin and the web reader under ~/.local/share/kb. PREFIX= overrides the root,
KB_VERSION= pins a release, KB_BASE_URL= points at a mirror. Other channels:
Release tarball — kb-<version>-<target>.tar.gz (+ .sha256) from
GitHub Releases, for
x86_64-unknown-linux-gnu and aarch64-unknown-linux-gnu, containing kb
and kb-embedder plus the web reader and a sample corpus under share/;
the sibling daemon ships beside it as kb-code-<version>-<target>.tar.gz
with its own reader. Each archive carries a build-provenance attestation
(verify it).
Docker — docker pull ghcr.io/nicolasacchi/kb (and
ghcr.io/nicolasacchi/kb-code): binaries, SPA and an embedding model baked
in, the self-contained channel. On Linux run it with --network host so the
loopback-first daemon is reachable without a token — see
docs/quickstart.md and
docs/self-host.md.
From source — needs Rust (pinned in rust-toolchain.toml) and protoc:
git clone https://github.com/nicolasacchi/kb && cd kb
cargo build --release -p kb-cli
cargo build --release -p kb-embedder # a SEPARATE invocation, on purpose
install target/release/kb target/release/kb-embedder ~/.local/bin/
ONNX Runtime is isolated to kb-embedder; building it in the same invocation
as kb would link ORT into the daemon
(docs/packaging.md).
Prebuilt binaries need glibc ≥ 2.39 (Debian 13+, Ubuntu 24.04+, Fedora 40+) —
kb-embedderstatically bundles ONNX Runtime, which sets that floor. On older glibc (Debian 12, Ubuntu 22.04, RHEL 9) or musl (Alpine) use the Docker image or build from source;install.shdetects an incompatible libc and says so rather than failing silently.
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations
Plugins with agents, skills, and commands for Claude Code and six other coding tools. Local plugins are maintained as one Markdown source and adapted to each tool.