Skip to content
KurrentDB

Save a lesson for the team

Two kinds of lesson are worth keeping: the ones you decide (“we use pnpm here”) and the ones evaluations find (“the agent keeps skipping the integration tests”). Both end up in front of the next session

Tell Claude Code what to remember, approve an evaluation finding as a skill in Knowledge, sync it, and a later session already knows. Everything below stands on its own
Remember for the team that this repository uses pnpm and that any change under checkout/ needs the integration tests run. Make it relevant to this repository and visible to the whole organisation

Say two things: where it applies (this repository, a project, the whole organisation) and who should see it (just you, a team, the organisation). The memory is saved, and the next session in this repository sees it in the memory index that kcap injects at session start

Later:

What do we already know about deploying this service?
Update the pnpm memory: we moved to bun last week

In the web app, open Knowledge and choose Memories to list the memories you can see; open one to read it, and Archive retires it (Unarchive brings it back). Memories are written by agents, not created there. If Claude Code has been keeping its own memory notes on your machine, copy them into kcap once:

Terminal window
kcap memories import --audience org --dry-run
kcap memories import --audience org

Evaluations retain their findings as facts. When the same lesson keeps turning up, kcap groups the facts into a draft document. A lead reviews it:

  1. Choose the repository in Scope and open Knowledge → Docs
  2. Open the draft. Read the Draft, compare it with the Serving version if there is one, and check Facts in this topic: the facts behind it, each with the sessions it was seen in
  3. Edit the wording and choose Approve as skill. Reject draft sends it back and Dismiss drops it; on a skill already serving, Revoke withdraws it

Your agent can do the same review:

Show me the draft skills waiting for approval in this repository. Tighten the wording of the pnpm one and approve it

A skill is loaded by the agent when the task calls for it, which keeps session-start context small. Install it in the repository:

Terminal window
kcap skills sync

The agent now has kcap-<slug> beside its other skills, in every checkout where sync has run. After the first sync, kcap refreshes skills in the background when a session starts, if you have turned that on with kcap config set skills.auto_sync true (it is off by default)

Some rules belong in version control, where a code review sees them. Ask your agent to promote the fact into CLAUDE.md:

Promote the integration-tests fact into CLAUDE.md for this repository

Then, in the repository:

Terminal window
kcap curate apply

It shows the diff and asks before writing a managed block into the instruction file. Promote into guidelines in the web app only feeds the session-start briefing; it does not write to a file