- Go 94%
- Shell 6%
kennis #
A memory bank for AI coding agents. Plain markdown notes in a git repository, a small Go CLI, and a thin extension for pi.
No database. No lock-in. Every memory is a file you can read with cat,
and the whole bank travels over plain git.
How it fits together #
┌─────────────────────────────────────────────┐
│ bank: ~/.local/share/kennis (git repo) │
│ external/ private/ work/ │
│ one markdown file per memory │
└──────────────┬──────────────────────────────┘
│
┌──────────┴──────────┐
│ kennis CLI (Go) │ add · search · sync · doctor
│ │ scaffold · ingest · integration
└──────────┬──────────┘
│ symlinks
┌──────────┴──────────┐
│ pi extension (TS) │ memory_search · memory_save ·
│ │ memory_capture · prompt injection
└─────────────────────┘
- The bank is the storage layer: markdown files with YAML front matter,
organized in scopes (
external,private,work,family), synced over git. - The CLI is the tooling layer: everything works headless, from any terminal.
- The extension is the automation layer: it gives agent sessions recall, saving with secret masking, and manual capture. The bank works without it.
Install #
git clone <this repo> kennis && cd kennis
./install.sh # wizard: builds the CLI, asks for bank folder,
# remote url, first push, and pi integration
Requirements: Go and git. The CLI lands in ~/.local/bin.
Every prompt has a default; a run without a terminal takes all defaults
(bank at ~/.local/share/kennis, no remote, no integration). Scripted
installs can pre-answer with KENNIS_BANK and KENNIS_REMOTE. An existing
remote is fetched and fast-forwarded (or rebased when the local bank
diverged), then pushed once.
Commands #
| Command | What it does |
|---|---|
kennis add |
save a note (stdin or editor) |
kennis show <path> |
print one note |
kennis edit <path> |
open a note in $EDITOR, commit after close |
kennis search <query> [folder] |
plain text search |
kennis catalog |
print the bank map: scopes, folders, note counts |
kennis questions |
collect open questions (QST: lines) |
kennis recent -n N |
list the newest notes |
kennis sync |
pull --rebase, then push |
kennis doctor [-fix] |
check the bank; -fix repairs the agent integration |
kennis link-skills |
link every SKILL.md in the bank into ~/.agents/skills |
kennis integration pi |
install the pi extension links plus bank skills |
kennis scaffold -prompt "..." |
fill a repo folder with docs, skills, and an AGENTS.md |
kennis ingest |
capture memories from pi session logs and omp banks, headless |
kennis import-omp |
one-time import of mnemopi/OMP banks |
Safety #
- A secret check runs before every save: private key blocks, known token
shapes, and assignment lines are masked or moved to Bitwarden (
bw://refs). kennis ingestmasks secrets in log text before any model call sees it.- The bank is a private git repo; point
originwherever you like.
Development #
go vet ./... && go build -o bin/kennis .
./install.sh # then reinstall to pick up changes
The extension sources live in the bank under external/kennis/ and are
symlinked into ~/.pi/agent/extensions/kennis/ by kennis integration pi.
Extension tests run with deno from that bank folder.
Project management #
Work is tracked with wayfinder:
map at .wayfinder/map.md, tickets at .wayfinder/tickets/.
The memory domain glossary lives in GLOSSARY.md.