By regismvargas
KB Factory plugins for governed knowledge workflows across Claude Code and Claude Cowork.
npx claudepluginhub regismvargas/kb-factoryDistribute KB Factory memory lifecycle and wiki maintenance across Claude environments.
Thin session-boundary wrapper for KB-lifecycle and KB/Wiki vNext. Explicit fallback when session hooks are disabled, unavailable, or not observable.
KB/Wiki vNext thin-memory harness for Claude Code and Cowork.
7-day visitors to each marketplace page
An append-only, source-attributed memory for AI coding agents — local-first, zero-dependency, auditable.
KB Factory gives a project a durable knowledge base that AI coding agents (Claude Code, Claude Cowork, Codex) can read and write across conversations. It runs on nothing but the Python standard library and SQLite — no service, no vector database, no API key, works offline, and backs up as a single file.
Why it's different. Where most agent memory is consolidative — it improves the current snapshot by overwriting the past — KB Factory is append-only by design: every superseded decision stays as a linked, source-attributed record, so you can reconstruct what the project believed at any past point and exactly what overturned it.
CLAUDE.md + your agent's built-in memory is simpler and correct.See docs/comparison.md for an honest, sourced comparison against Anthropic's memory tools and the OSS field.
Most people install a plugin and just talk to the assistant in Claude Code or Cowork — no terminal required:
Prefer a terminal? The 60-second CLI quickstart is right below. Both paths read
and write the same .kb/.
The core is a single stdlib-only CLI. Install v0.2.5 from the GitHub release and scaffold a project, or copy the template directly:
# 1. Install v0.2.5 and create a .kb/ in your project (initializes SQLite)
pip install https://github.com/regismvargas/kb-factory/releases/download/v0.2.5/kb_factory-0.2.5-py3-none-any.whl
cd /path/to/your-project
kb-factory init
# No pip? Copy the scaffold instead:
# cp -r core/templates/kb .kb && python .kb/kb.py init
# 2. Record a decision (typed; HOT = always surfaced at session start)
python .kb/kb.py create --category DECISAO --domain architecture \
--title "Use SQLite for storage" \
--content "Local-first, single file, no external services." --tier HOT
# 3. Find it again — in any later session, by any agent
python .kb/kb.py search "storage"
# 4. When the decision changes, SUPERSEDE it (the old record is kept + linked)
python .kb/kb.py supersede <record_id> \
--title "Use SQLite + FTS5" --content "Added full-text search."
(kb-factory update later refreshes the vendored .kb/ runtime to the installed
version, leaving your data untouched.)
At the start of an agent session:
python .kb/kb.py lifecycle session-start --json # bootstrap
# then read .kb/memory/NOW.md (thin, always-loaded context)
The five categories are DECISAO, PREMISSA, FATO, PENDENCIA,
APRENDIZADO (decision, assumption, fact, open-item, learning). update
changes only routing metadata (tier/tags); when meaning changes you
supersede. That's the whole discipline.
Knowledge graph and codebase architecture intelligence for AI coding assistants
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Context7 plugins for coding agents.