skip to main content

knowledge User Manual

A standalone SQLite3-backed knowledge base for tracking projects, observations, concepts, decision records and narrative documents across independent experiments. cmd/kb is a single kb VERB ARGS binary (matching the git/go command model) covering the full API, plus a read-mostly interactive TUI.


Quick Start

  1. Installation — build from source or install a release binary
  2. Command Reference — the primary kb(1) man page: global flags, every verb, exit status

Run kb with no verb to launch the interactive TUI, or kb help / kb -h to see this same reference at the terminal.


Command Reference

kb follows the TOOL VERB PARAMETERS model — every verb below has its own man page, also reachable via kb help VERB or kb VERB -h.

Verb Man page Purpose
init kb-init(1) create a new, empty workspace
project kb-project(1) add, list, show, rename projects; set status/description; list a project’s concepts
observation kb-observation(1) add, list, show, update observations; list an observation’s sources
concept kb-concept(1) add, list, rename concepts — including scholarly identifiers (DOI, ORCID, ROR, Fundref) — and suggest candidate new ones from the corpus
link kb-link(1) link projects/observations to concepts
source kb-source(1) manage cited sources; check DOIs against Retraction Watch
search, summary, format kb-search(1) full-text search (FTS5) and assembled Markdown views
ingest kb-ingest(1) index a tree of decision records into the database
record kb-record(1) author and maintain decision records — new, list, show, set-status, supersede, fmt, concepts
index kb-index(1) generate a corpus’s decisions/index.md; --check for staleness, --all for a whole tree
document kb-document(1) ingest, draft, review and tag narrative documents (Markdown, Fountain, text) at graduated abstraction levels
merge kb-merge(1) reconcile two knowledge.db files that drifted independently (e.g. across machines)
export kb-export(1) write a portable JSON-L snapshot — the no-file-access alternative to merge
import kb-import(1) apply a JSON-L snapshot (from export) to the database
topics kb-topics(1) list every help topic, one man page per verb

Global flags

Full detail on all three: kb(1), § GLOBAL FLAGS.

Interactive TUI

Bare kb (no verb) launches a read-mostly browser: project list → Enter drills into observations → c/o toggles to/from concepts → / opens a search prompt from any view → esc backs out, q quits. See kb(1) for the full description.


Background & Design

These documents record why kb is shaped the way it is — useful if you’re extending it, not required to use it:


Can’t Find What You Need?