kb-builder
Kode Brain — a living knowledge system for evolving software projects.
Converts an imperfect, growing codebase into a structured, searchable knowledge map of domains, capabilities, concepts, flows, runtime behavior, dependencies, legacy areas, migration states, and source evidence — so humans and AI agents can understand and modify the system without rediscovering everything from scratch.
Design Documents
| Document | Purpose |
|---|---|
| Taxonomy | Finalized node types, edge types, status labels, confidence labels |
| Skills | Skill API contracts — inputs, outputs, guarantees |
| Agents | Agent role boundaries — responsibilities, allowed skills, forbidden actions |
| Workflows | Core workflow sequence diagrams |
| Open Decisions | Unresolved architectural decisions |
Schemas
| File | Purpose |
|---|---|
| schema/node.schema.json | JSON Schema for KnowledgeNode |
| schema/edge.schema.json | JSON Schema for KnowledgeEdge |
| schema/knowledge-base.schema.json | Top-level graph container schema |
Design Order
Per the Kode Brain spec (§20.7):
Taxonomy → Workflow → Skills → Agents → Plugin/CLI
This repository is currently at the design phase. Implementation comes after the design is validated.
Commands
/kodebrain init [path] Scan project, scaffold docs/kodebrain/
/kodebrain scan [path] Re-scan and update knowledge graph
/kodebrain query "<task or symptom>" Query the KB by task description
/kodebrain reading-pack "<task>" Generate + save a context pack
/kodebrain detect-legacy [--domain slug] Flag suspected dead code
/kodebrain review [--page path] Review KB pages for stale claims
/kodebrain update [--diff] [--files ...] Update KB from changed files
Installation
pip install kodebrain
kodebrain install # installs skill + platform configs globally
/kodebrain is then available in every Claude Code session.
Developing the skill
The skill definition lives in kodebrain/skill/ — SKILL.md and scripts/harvest.py. To have changes take effect immediately without reinstalling:
# Symlink the skill dir directly (dev mode)
ln -s "$(pwd)/kodebrain/skill" ~/.claude/skills/kodebrain
Or install the package in editable mode so kodebrain install always picks up local changes:
pip install -e .
kodebrain install
Metadata
Release files for kodebrain 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kodebrain-0.4.3.tar.gz | 44.4 kB | Without provenance | Details for kodebrain-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kodebrain-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for kodebrain-0.4.3-py3-none-any.whl |
Total release size: 71.5 kB
Release files / kodebrain-0.4.3.tar.gz
| Download URL | kodebrain-0.4.3.tar.gz |
|---|---|
| Size | 44.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1eae1afd74353449a8d28c4bd7663331012ff39f04809bf6a008de96ae26c283
|
|
BLAKE2b-256 checksum How to use checksums |
36def1df77edce6b67143b9dab9d6146890e5128f829d29a776f9e8c8b352423
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / kodebrain-0.4.3-py3-none-any.whl
| Download URL | kodebrain-0.4.3-py3-none-any.whl |
|---|---|
| Size | 27.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3fe82f65805412ee65b662c97b63ea7cff7baa4625e086e405299ef3dad126a8
|
|
BLAKE2b-256 checksum How to use checksums |
6e6cb4a122f79c39e471145bc5d41faa2d2d490f9c199aca55f5db0a6aff8a34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for kodebrain 0.4.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.