Repository navigation
Releases
Releases · mdwitr0/kb
v0.4.1
Changes in v0.4.1
- SHA-anchored drift cursor (
verified_commit) &kb stamp: Replaces day-onlygit log -1 --format=%cschecks with batched per-repository<verified_commit>..HEADinspection (git log -c), catching merged PR feature branches with older commit dates, same-day post-verification commits, and evil merges without false positives on reverse merges (git merge main) or shallow CI clones (--depth=1). - Unified
kb check&kb contextdrift engine: Eliminateskb checkvskb context--since=<day>clock-time discrepancies by driving both commands from the samedriftEngine(Finding.Anchor+Finding.Commits). - Declaration-level
#Symbolverification: Strips line/block comments and string literals (C-stylewith Rust lifetime handling,Python/Hash,SQL), checks UTF-8 rune boundaries (utf8.DecodeLastRuneInString/utf8.DecodeRuneInString), matches declarations (func,type,const,var, interface methods,class,def,fn,CREATE TABLE, etc.) instead of leftover comments/call sites, skips test files on directory anchors, and raises directory scan limit to10,000files ([warn] anchor-scan-limit). - Go 1.23+ compatibility & animated demo: Lowers
godirective ingo.modto1.23.0(avoiding macOSdyld: missing LC_UUIDon Go 1.22 while supporting Go 1.23+ toolchains) and updatesassets/hero.svgand specs.
v0.4.0
Changes in v0.4.0
- SHA-anchored drift cursor (
verified_commit) &kb stamp: Replaces day-onlygit log -1 --format=%cschecks with batched per-repository<verified_commit>..HEADinspection (git log -c), catching merged PR feature branches with older commit dates, same-day post-verification commits, and evil merges without false positives on reverse merges (git merge main). Supports both scalar SHA and per-subrepo SHA maps;kb stamp [--all] [domain...]andkb change synclock fresh HEAD cursors automatically. - Unified
kb check&kb contextdrift engine: Eliminateskb checkvskb context--since=<day>clock-time discrepancies by driving both commands from the samedriftEngine(Finding.Anchor+Finding.Commits). - Declaration-level
#Symbolverification: Strips line/block comments and string literals (C-stylewith Rust lifetime handling,Python/Hash,SQL), checks UTF-8 rune boundaries (utf8.DecodeLastRuneInString/utf8.DecodeRuneInString), matches declarations (func,type,const,var, interface methods,class,def,fn,CREATE TABLE, etc.) instead of leftover comments/call sites, skips test files on directory anchors, and raises directory scan limit to10,000files ([warn] anchor-scan-limit). - Go 1.22+ compatibility & animated demo: Lowers
godirective ingo.modto1.22.0so older Go toolchains can rungo install github.com/mdwitr0/kb/cmd/kb@latest, and updatesassets/hero.svgand specs.
v0.3.0
kb v0.3.0 — Deterministic kb context <path> & Two-Step Agent Workflow
Introduces kb context <path...> and upgrades kb grill, SKILL.md, and global agent rules (rule.md) to a clean two-step architecture: agents understand natural-language intent via the compact project map first, then pull an exact deterministic slice for the target directory via kb context <path> — zero regex guessing and zero cross-service file noise.
Highlights
kb context <path...>(kb ctx): Returns governing rootkb/specs,UNCOVEREDwarnings, exactcode-driftgit commits touching<path>sinceverified_at, unmergedkb/inbox.mdnotes, openchanges/deltas, and local.mddocs strictly for<path>.- Zero-noise
kb grill "<request>"(/kb-grill): Starts with a lightweight compact project map (~2k tokens, zero source file dumps); Phase 1 maps your natural-language words to the exact service folder and callskb context <path>, then runs silent code-vs-doc recon and 1-by-1 evidence-backed questions. - Unified global rule (
rule.md&SKILL.md): Every configured agent (Claude Code, Codex, OpenCode, Pi, Antigravity, Cursor) now useskb context <service-path>in regular coding tasks too, automatically catching freshcode-driftcommits when a spec lags behind recent git changes.
v0.2.0
kb v0.2.0 — Diff-Driven Requirement & Code/Doc Reconciliation (kb grill)
Adds kb grill (and /kb-grill) to reconcile your mental model, documentation, and real service code without blindly rubber-stamping accidental code bugs as official specs.
What's New in v0.2.0
kb grill [target](--domain,--path,--prompt):- Silently cross-checks
kb/specs/, local Markdown docs,code-driftgit commits sinceverified_at, unmergedkb/inbox.mdnotes, openchanges/*/delta.mdfiles, and scoped source code. - Interviews you strictly one question at a time citing exact
path:linebehavior and numbered options — only whereDocs != Code,Code != Code, or risky edge cases exist. - Three-bucket resolution: confirmed current code ->
kb/specs/<domain>.md; rationale/bans ->kb/decisions/; bugs/gaps where code violates business intent ->changes/<slug>/delta.mdviakb change new.
- Silently cross-checks
- Slash command
/kb-grill <target>: Installed automatically bykb setupinto Claude Code (~/.claude/commands/kb-grill.md), OpenCode (~/.config/opencode/commands/kb-grill.md), and Pi (~/.pi/agent/prompts/kb-grill.md), plus updatedSKILL.mdfor Codex, Antigravity (agy), and Cursor/Windsurf.
v0.1.0
kb v0.1.0 — Zero-DB, Git-Anchored Project Memory for AI Coding Agents
Initial public release of kb: keep living domain specs in plain Git-tracked Markdown, catch documentation-to-code drift via Git, isolate cold postmortems, and aggregate multi-repo workspaces into a single root source of truth.
Highlights
- Git-anchored drift detection (
kb check): Verifies file and#Symbolanchors plusgit logcommit dates againstverified_at. - Instant active-canon search (
kb find):< 40 mssection search with EN/RU stemming and project synonyms; skipsarchive/unless--archiveis passed. - Multi-repo root aggregation (
kb subprojects): Single rootkb/overrides stale localCLAUDE.md/AGENTS.md/README.mdinside nested.gitsubrepos without touching subproject git trees. - Interactive TUI installer (
kb setup): Layout-independent (QWERTY/ЙЦУКЕН) setup for Claude Code, OpenAI Codex, OpenCode, Pi, Antigravity (agy), and.agents(Cursor / Windsurf). - Token-safe brownfield onboarding (
kb onboard): Upfront token estimate,docs-first default mode, model picker, andscoped/yolo/promptpermission tiers.
Quick Install
# curl (macOS & Linux)
curl -fsSL https://raw.githubusercontent.com/mdwitr0/kb/main/install.sh | bash
# Homebrew
brew install mdwitr0/tap/kb && kb setup
# Go
go install github.com/mdwitr0/kb/cmd/kb@latest && kb setup
# Agent Skills (skills.sh)
npx skills add mdwitr0/kb