Skip to content

e0ipso/kenkeep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

592 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kenkeep: AI coding sessions are curated into a reviewed, git-tracked knowledge library

kenkeep

A team-shared, git-native knowledge base for AI coding sessions.
Built up in your repo, reviewed and versioned like code, with no extra infrastructure to run.

npm version tests node version MIT license

How it works  ·  Installation  ·  Daily use  ·  Knowledge packs  ·  Troubleshooting


Coding assistants forget about everything in past sessions. Kenkeep creates a system that salvages the gold nuggets in your past conversations, and discards the rest. This way, the assistant can use that important detail you shared two weeks ago, without you even worrying about it.

Kenkeep is a team-shared, git-native knowledge base for AI coding assistants.

Your AI conversations produce a steady stream of project-specific knowledge (conventions, gotchas, named modules, decision rationale), and most of it evaporates when the session ends. This tool captures it, asks a human to curate it, commits it to the repo, and injects it back into every future session.

Overview

Your AI sessions have value. Don't lose it. How Kenkeep captures knowledge in three simple ways. Right knowledge at the right time through progressive disclosure.
Why teams love Kenkeep. Privacy-first and open-source. Turn AI interactions into long-term advantage.

Why kenkeep

Built up and shared across your team

The knowledge base grows in your repo as plain markdown, one node per fact, accumulated from real coding sessions. The nodes/ tree is a conformant Open Knowledge Format (OKF v0.1) bundle — an open, vendor-neutral format any OKF tool can read — with kenkeep's own fields carried under the self-describing kk_ extension namespace. It travels with the project through git pull, so every teammate works from the same conventions instead of rediscovering them on their own laptop.

Reviewed and versioned like code

Nothing reaches the knowledge base without a human approving it. Every addition or change is an ordinary git diff you review in a commit or PR, with the full history there to inspect, blame, or revert like any other code.

No extra infrastructure

No daemons, services, databases, or vector stores. kenkeep is just Node and git, so there is nothing to provision, host, or keep alive, and nothing new to secure.

No API keys

It all runs from within the assistant of your choice, on the subscription you already pay for. There is no separate API key to obtain, store, or rotate.

How it works

kenkeep knowledge lifecycle: capture transcripts, curate them into reviewed notes, and inject them back into every session

kenkeep runs a loop around your AI sessions. Capture and recall happen on their own; you trigger curation, and you decide what to keep:

  • Capture (automatic): when a session ends, a hook saves the transcript.
  • Curate (you run /kk-curate): the AI drafts proposed notes under nodes/, then walks you through any contradictions with an existing note.
  • Review (you decide): inspect the notes with git diff, then commit the ones you want to keep.
  • Recall (automatic): at the start of every session a hook injects only the root index; the assistant descends by relevance, opening just the notes it needs (progressive disclosure), so the payload stays small as the base grows.

kenkeep progressive disclosure: load the root index node, select relevant branches by intent and tags, descend into those branch indexes, then open only the confirmed-relevant leaf nodes and follow their cross-edges

Full walkthrough: How it works.

Quick start

npx kenkeep init --harnesses claude
npx kenkeep doctor

Swap claude for codex, cursor, opencode, or copilot (or pass a comma-separated list). For GitHub Copilot CLI, npx kenkeep init --harnesses copilot installs the skills under .github/skills/ (Copilot's documented project skill location) and keeps the adapter's hook scripts under the project-local .copilot/ directory, registering them in the repo-level .github/hooks/kk.json (Copilot loads repo-level hooks before user-level; nothing is written to ~/.copilot/).

Then code normally. When you want to turn captured material into knowledge nodes, run /kk-curate inside your harness session (also /kk-add, /kk-bootstrap). The skills are context-aware and walk you through conflict resolution. New nodes appear in nodes/; review with git diff and commit the ones you want to keep.

Seed from existing docs

If your repo already has READMEs, ADRs, or module docs, seed the knowledge base from them. Inside a harness session:

/kk-bootstrap

The scan walks the repo root, filtered by .kkignore (generated by init, uses gitignore-style syntax). Edit .kkignore to exclude directories you don't want scanned. Review the resulting nodes under nodes/ with git diff and commit the ones you want to keep.

Add knowledge manually

At any time during a session you can use /kk-add to make sure the assistant remembers a message. Just casually mention it, and you're done:

Example:

No, you got that wrong.

This project aims to maximize code
re-use, instead of duplication. Adapt
and extend the abstractions to fit
this use case. Also, /kk-add this.

Knowledge packs

Knowledge packs let teams publish a reviewed .ai/kenkeep/nodes/ tree for a framework, platform, or shared domain and graft it into another project as one isolated branch:

npx kenkeep pack import e0ipso/kenkeep-pack-drupal
npx kenkeep pack import https://github.com/e0ipso/kenkeep-pack-drupal --as drupal

Imports are deterministic and LLM-free. Colliding node ids are skipped with a warning, and any structural rebalancing happens later through the normal curation workflow. See the full guide: Knowledge packs.

Documentation

Full documentation: https://kenkeep.canpicasoft.com

For maintainers of this package itself, see CONTRIBUTING.md.

License

MIT

About

Knowledge base for AI projects.

Resources

License

Contributing

Stars

16 stars

Watchers

0 watching

Forks

Contributors