kingod-brainstormer
v0.1.2
Published
Terminal-first local brainstorming, memory, planning, and deep-research tool for extreme vibe coders.
Maintainers
Readme
Kingod Brainstormer
Terminal-first local AI brainstorming, memory, planning, and deep research for extreme vibe coders.
Kingod is built for the moment where you want to think, plan, research, checkpoint, and ship without opening five slow workspaces. It starts as a TUI, stores your work as local Markdown/JSONL, uses cheap local-first defaults, and exposes MCP tools so coding agents can use the same memory.
One-Line Install
macOS and Ubuntu:
curl -fsSL https://raw.githubusercontent.com/claudianus/kingod-brainstormer/main/scripts/install.sh | bashWindows PowerShell:
irm https://raw.githubusercontent.com/claudianus/kingod-brainstormer/main/scripts/install.ps1 | iexThen launch the TUI:
kgbThe installers verify Node.js >= 20.11, install a user-space runtime when possible, install kingod-brainstormer globally, and run kgb doctor.
Direct npm install:
npm install -g kingod-brainstormer
kgbWhat You Get
- Fast TUI cockpit: capture, ask, plan, research, graph, timeline, checkpoint, backup.
- Local-first vault: readable Markdown plus append-only JSONL events in
~/.kingod-brainstormer. - Hybrid local search: keyword, deterministic vector similarity, lexical fallback, and reciprocal rank fusion.
- Cited local answers:
kgb askandkgb briefkeep sources visible. - Deep research lane: SearxNG first, optional DuckDuckGo HTML fallback, local evidence fallback.
- Local rollback: full-vault checkpoints with preview and reversible restore.
- Backup lanes: GitHub diffable backup plus encrypted portable bundles.
- MCP server: agents can search, ask, capture, brief, checkpoint, and back up through one small tool surface.
- Optional AI: Ollama first, OpenAI-compatible APIs second, deterministic fallback when no model is configured.
First Five Minutes
kgb capture "Build a local-first research cockpit for my current project" --tag idea
kgb ask "What am I trying to build?"
kgb plan "Ship the smallest useful version this week"
kgb checkpoint create "before importing old notes"
kgbFor a full mission brief:
kgb brief "Turn my current project into a shippable plan"For activity review:
kgb timeline
kgb graph "current project"TUI Hotkeys
c: capture an ideaa: ask local memoryp: create a planb: create an execution boardf: create a mission briefr: run researchi: ingest files or foldersg: build a knowledge graphl: show activity timelinev: run quality auditx: create a local checkpointm: write backup manifests: run security scanu: GitHub backup dry-run/: search local memoryq: quit
Core Commands
kgb init
kgb capture "idea text" --tag cli --tag ai
kgb ingest ./docs --tag seed
kgb search "local-first memory"
kgb ask "What have we learned?"
kgb context "current project"
kgb graph "current project"
kgb timeline "current project"
kgb plan "Build the 10x local-first planning tool"
kgb board "Build the 10x local-first planning tool"
kgb brief "Ship a local-first AI planning cockpit"
kgb quality "local-first memory"
kgb research "Notion Obsidian user pain points AI research local-first" --depth 2 --max 4
kgb watch ./docs --tag watchedDefault vault:
~/.kingod-brainstormerUse an isolated vault:
KINGOD_HOME=/tmp/kingod-lab kgbLocal Checkpoints
Checkpoints are for fast rollback during risky imports, refactors, and agent runs. They are local-only and ignored by GitHub backup by default.
kgb checkpoint create "before importing old notes"
kgb checkpoint list
kgb checkpoint preview latest
kgb checkpoint restore latest --dry-run
kgb checkpoint restore latestRestore moves any non-empty target aside before writing the snapshot, so rollback remains reversible.
GitHub Backup
GitHub backup is intentionally diffable. Agents and humans can review Markdown, JSONL events, and manifests.
kgb backup status
kgb backup scan
kgb backup manifest
kgb backup diff
kgb backup github yourname/kingod-brainstormer-vault --dry-run
kgb backup github yourname/kingod-brainstormer-vault
kgb backup restore yourname/kingod-brainstormer-vault --target ~/.kingod-brainstormer-restored --dry-run
kgb backup sync --dry-runBackups are blocked by default when high-confidence secrets are detected.
Encrypted Bundles
Encrypted bundles are the sealed portable lane. The bundle contents are encrypted with AES-256-GCM, while the plaintext manifest keeps only file paths, sizes, timestamps, and SHA-256 hashes so restore impact can be inspected without exposing note bodies.
export KINGOD_BACKUP_PASSPHRASE='use-a-long-passphrase-here'
kgb backup bundle --output ~/kingod-vault.kgbundle
kgb backup preview-bundle ~/kingod-vault.kgbundle --target ~/.kingod-brainstormer-restored
kgb backup restore-bundle ~/kingod-vault.kgbundle --target ~/.kingod-brainstormer-restored --dry-run
kgb backup restore-bundle ~/kingod-vault.kgbundle --target ~/.kingod-brainstormer-restoredAI Providers
Local Ollama:
ollama serve
export KINGOD_OLLAMA_MODEL=llama3.1:8bOpenAI-compatible endpoint:
export KINGOD_OPENAI_BASE_URL=https://api.openai.com/v1
export KINGOD_OPENAI_API_KEY=...
export KINGOD_OPENAI_MODEL=gpt-4.1-miniSearch provider:
export KINGOD_SEARXNG_URL=http://localhost:8080Experimental no-key web fallback:
export KINGOD_ENABLE_DDG=1MCP
Run:
kgb mcpTools exposed:
kgb_searchkgb_contextkgb_askkgb_capturekgb_graphkgb_timelinekgb_briefkgb_qualitykgb_checkpoint_createkgb_checkpoint_listkgb_checkpoint_previewkgb_checkpoint_restorekgb_backup_githubkgb_backup_manifestkgb_backup_diffkgb_backup_bundlekgb_restore_githubkgb_restore_bundlekgb_preview_bundle_restorekgb_security_scan
The surface is deliberately small: broad tools, low context overhead, local state.
Development
npm install
npm run typecheck
npm test
npm run build
npm run devProduct Thesis
Big GUI knowledge tools are powerful but leak momentum through latency, sync ambiguity, search brittleness, plugin drift, and AI cost opacity. Kingod chooses the opposite trade: terminal speed, local files, explicit citations, cheap/local AI paths, checkpoint rollback, and agent-readable memory.
See docs/research.md for the research synthesis that shaped the build.
