The maintainer has not written a description at the source.
Repo compozy/kb, read from GitHub 22 h ago. compozy has not joined Take My Repo.
compozy/kb is a public repo on GitHub by compozy. It declares the MIT license on GitHub. It is written mainly in Go, has 115 stars and last changed on 2026-11-18. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-24.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Install • See It Work • Features • Decision Model • Commands • Contributing
kb is a single-binary Go CLI for building and maintaining topic-based knowledge bases in the Karpathy KB pattern. It handles the non-LLM workflow: topic scaffolding, multi-source ingestion (URLs, files, YouTube, Instagram, codebases, bookmarks), ingest gates, classification, linking and retrieval through a typed decision model, structural linting, codebase analysis, QMD indexing/search, and KB-oriented inspection commands. Writing wiki articles stays in your agent layer.
No SaaS. Just markdown. The only remote judgments are typed decision-model calls, recorded per topic and replayable.
[!NOTE]
kbworks even better with its companion skill inskills/. Install it withnpx skills add https://github.com/compozy/kb --skill kb.
brew install compozy/kb/kb
npm install -g @compozy/kb
go install github.com/compozy/kb/cmd/kb@latest
git clone https://github.com/compozy/kb.git
cd kb
make build
# binary is at bin/kb
Optional -- for semantic search capabilities:
npm install -g @tobilu/qmd
[!NOTE] Requirements: Go >= 1.26.
OPENROUTER_API_KEYis required by every command that ingests, classifies, links, finds, reviews or promotes (see Decision model). Thesearchandindexcommands require QMD to be installed separately. The defaultingest urlbackend requires a Firecrawl Cloud API key. Theingest youtubecommand requires yt-dlp for captions and audio extraction. STT transcription with--transcribe autoor--transcribe sttuses the configured[stt]provider; OpenAI audio transcriptions are the default and requireOPENAI_API_KEY. Long audio is segmented withffmpeg.
.kb/vault/ inside the target repository (or a custom --vault path)ingest url calls the Firecrawl API; ingest youtube/channel/instagram call the platform through yt-dlp; --transcribe auto|stt also calls the configured STT provider. ingest (except codebase), classify, link, find, review accept, topic contract --draft|--accept, topic vocabulary, promote (when [okf].types is set) and okf check --decide send document excerpts to OpenRouter (decision and generation models). topic list|info|new, lint, inspect, index, search, ingest codebase and version never call a model.<topic>/.decisions/, kb-owned frontmatter keys on sources and articles, and quarantined sources under <topic>/raw/_quarantine/. Nothing is deleted.kb binary from your PATH and delete the .kb/ directoryCreate a topic and ingest content from multiple sources:
# scaffold a new topic
$ kb topic new rust-lang "Rust Language" programming
{
"slug": "rust-lang",
"title": "Rust Language",
"domain": "programming"
}
# scaffold an OKF bundle topic
$ kb topic new rust-catalog "Rust Catalog" programming --mode okf
# ingest a web article
$ kb ingest url https://doc.rust-lang.org/book/ch04-01-what-is-ownership.html --topic rust-lang
# ingest a local PDF
$ kb ingest file ./rust-reference.pdf --topic rust-lang
# ingest a YouTube video transcript
$ kb ingest youtube https://www.youtube.com/watch?v=... --topic rust-lang
# ingest a codebase snapshot with full analysis
# first run bootstraps ./my-rust-project/.kb/vault/rust-lang automatically
$ kb ingest codebase ./my-rust-project --topic rust-lang --progress never
# lint the topic for structural issues
$ kb lint rust-lang
# promote a compiled wiki document into the OKF bundle
$ kb promote .kb/vault/rust-lang/wiki/concepts/Ownership.md --to rust-catalog --type Concept
# check the OKF bundle
$ kb okf check rust-catalog --strict
Judge, classify, link and query a topic with the decision model (requires OPENROUTER_API_KEY):
# write the topic's selection contract, check it against the topic's own sources, activate it
$ kb topic contract rust-lang --draft
$ kb topic contract rust-lang --accept
# fill facets (genre, depth, relevance, concepts, summary, ...) and typed links
$ kb classify rust-lang
$ kb link rust-lang
# ask which documents answer a question, with the reason every other candidate was dropped
$ kb find rust-lang "how does the borrow checker handle two-phase borrows?" --explain
# work through what landed in the review band
$ kb review rust-lang
Analyze codebase snapshots from the terminal:
$ kb inspect complexity --top 5
symbol_name | cyclomatic_complexity | loc | source_path
computeMetrics | 12 | 89 | src/compute-metrics.ts
parseTypeScript | 9 | 67 | src/adapters/typescript.ts
normalizeGraph | 8 | 45 | src/normalize-graph.ts
renderDocuments | 7 | 112 | src/render-documents.ts
scanWorkspace | 6 | 54 | src/scan-workspace.ts
$ kb inspect dead-code
kind | name | source_path | reason
symbol | oldHelper | src/utils.ts | dead-export
file | unused-cfg.ts | src/config/unused-cfg.ts | orphan-file
Search your vault with natural language (requires QMD):
$ kb search "error handling patterns" --limit 3
title | score | path
Error Handling Guide | 0.89 | wiki/concepts/Error Handling.md
src/error-boundary.ts | 0.74 | raw/codebase/files/src/error-boundary.ts.md
handleError | 0.61 | raw/codebase/symbols/handleError--src-utils-l42.md
Topic-based knowledge bases -- kb organizes knowledge into topics, each with its own raw/, wiki/, outputs/, and bases/ directories. Use kb topic new for manual scaffolding, or let kb ingest codebase bootstrap a new topic directly on first run.
Multi-source ingestion -- Ingest web articles via Firecrawl, local files (PDF, DOCX, XLSX, PPTX, EPUB, HTML, CSV, JSON, XML, plain text, images with OCR), YouTube captions or STT transcripts, codebases, and bookmark clusters. Each source type goes through a converter registry that normalizes content to frontmatter-annotated markdown.
Codebase analysis -- Point kb ingest codebase at a repository and it generates an Obsidian vault layer with every symbol, file, and dependency relationship mapped into interconnected markdown notes. It computes cyclomatic complexity, blast radius, coupling, instability, and dead code detection, then compiles wiki articles and interactive Base views.
Decision model -- A typed decision model (Jev over OpenRouter) answers yes/no, choice and score questions about each document for about US$ 0.0003 per document. kb uses it to gate ingests against a written selection contract, classify every document into filterable frontmatter facets, write typed links between sources and articles, and rank documents that answer a question. Every call is recorded as a replayable receipt; thresholds can be re-cut without new calls; nothing is deleted.
Structural linting -- kb lint checks topics for missing frontmatter, broken wikilinks, orphaned files, and other structural health issues. Reports can be saved as markdown in outputs/reports/.
10 inspect subcommands -- Query your codebase like a database, from the terminal. Rank functions by complexity, find dead exports nobody imports, trace dependency chains, detect circular imports. Three output formats (table, JSON, TSV), zero external dependencies.
Obsidian-native output -- Every generated note uses wikilinks, YAML frontmatter, and backlink-aware cross-references. Base views give you filterable, sortable tables inside Obsidian -- Symbol Explorer, Complexity Hotspots, Danger Zone, Module Health, and more.
Semantic search -- Index your vault with QMD for hybrid, lexical, or vector search across all documentation. Useful for onboarding, architecture review, or feeding context to LLMs.
AI-friendly output -- Every vault includes CLAUDE.md and AGENTS.md as schema documents. The structured markdown output is designed for direct consumption by LLMs -- frontmatter metadata, consistent structure, and explicit cross-references.
Single binary -- No runtime dependencies. One kb binary handles everything. Built in Go for fast startup and low memory usage.
Most code analysis tools give you a dashboard. kb gives you a knowledge base.
SonarQube and CodeClimate tell you your code has problems. kb tells you which problems, where they connect, and gives you a structured workspace to reason about them. The output is markdown you own, not a SaaS dashboard that disappears when you cancel the subscription.
Sourcegraph is excellent for code search across repositories. kb is for understanding a single repository deeply -- its architecture, its coupling patterns, its risk surface -- and building a persistent knowledge artifact around that understanding.
Obsidian and Notion are great note-taking tools. kb automates the scaffolding and ingestion so you start with structure instead of a blank page, then extend the vault with your own notes and analysis.
The key difference: kb outputs compound. A SonarQube scan from last month is stale data. A kb vault from last month is a knowledge base you've been building on for 30 days.
kb makes every semantic judgment (is this source on topic, is this page broken, which article does this document discuss, should these two documents link, does this document answer that question) with a decision model: a model that answers typed questions (yes/no, choice, score) with probabilities and generates no text. The default is typesafe/jev-1.14 through OpenRouter's decisions endpoint (POST <openrouter.api_url>/alpha/decisions). A small generation model writes the few short literals kb needs (summaries, criteria, aliases, entities, questions, contract and vocabulary drafts) under a strict JSON schema; it never edits article prose. Code does everything else: it proposes candidates, computes every number, applies thresholds and writes files.
apply, review or ignore, cut by named thresholds. Review-band outcomes go to the topic's review queue.undecided:<reason>; an oversized state yields not_checked:state_too_large. Neither is read as a "no": the document keeps its previous state and the run summary lists it.<topic>/.decisions/receipts.jsonl with its full answer distributions, model, cost and latency. The cache key covers model, question bank version, contract hash and state, so re-running a command costs nothing for unchanged documents, and re-cutting a threshold never needs a new call.The decision model is required. These commands refuse to start without OPENROUTER_API_KEY (or [openrouter].api_key) and name what is missing:
kb ingest (every subcommand except codebase), kb classify, kb link, kb find, kb review accept|reject, kb topic contract --draft|--accept, kb topic vocabulary, kb promote (when [okf].types is set) and kb okf check --decide.
These never call a model and run without it: kb version, kb topic new|list|info, kb topic contract --import-claude, kb review list|import-links|import-labels|calibrate, kb lint, kb inspect, kb index, kb search, kb ingest codebase, kb migrate.
compozy/kb is a public repo on GitHub by compozy. Its maker has not written a description.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-18. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run kb. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-11-18. It has 115 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.