Skip to main content
Guide · How-to

Knowledge-base workflow

Day-to-day with senkani kb: seed entities, hand-edit markdown, run the audit. The markdown at .senkani/knowledge/ is the source of truth.

Seed an entity

senkani kb add "OrderRepository"

Creates .senkani/knowledge/order_repository.md. Edit it with any text editor; the SQLite index picks up the change on the next query.

Query

senkani kb search "pagination"
senkani kb get order_repository
senkani kb list --type class --sort freshness

Enrich

senkani learn enrich

Runs Gemma enrichment on high-mention entities (≥ 5× per session). EnrichmentValidator flags information loss / contradiction / excessive rewrite before commit.

Rollback

senkani kb rollback order_repository

Reverts the latest enrichment. History preserved.

Timeline

senkani kb timeline --days 30

Chronological view of all KB mutations — additions, enrichments, rollbacks.

Next

Uninstall →