Ship with Claude.
Still know your shit.

selflore is a Claude Code skill that keeps notes on what Claude built for you and why, answers your questions from them, and shows you where you keep getting stuck.

See how it works

Free and open source · MIT · Your notes stay on your machine

An example selflore heat map: you in the middle, your topics around you, and every note as a dot that runs from slate where you are settled to red where you keep getting stuck.

Claude writes the code, fixes the bug and makes the call. The work ships. You learn nothing.

A month later you can’t explain your own codebase, and the next time it breaks you ask Claude again. selflore keeps you the engineer, not just the person approving diffs.

It catches what you should have learned.

After a turn with real work in it, a separate headless Claude reads the new part of the session and writes a short note. You never wait for it.

  • Something you asked to have explained. The strongest signal: you just said what you didn’t know.
  • A bug root-caused and fixed: a test failed, was fixed, passed.
  • A new dependency, or a big piece of code with a real decision in it.
claude · acme/checkoutExample

yourefunds are going out twice on some orders, can you fix it

claudeFound it. Stripe retries the webhook when we answer slowly, and the in-memory dedupe set is per pod, so a retry landing on another pod refunds again…

test/webhook.test.ts: failed, fixed, passed

youwait, why does the insert have to come before the refund?

claudeBecause the insert is the lock. If two deliveries race, only one row gets in…

Turn ends. selflore sees a bug root-caused and a question you asked.

~/.selflore/entries/2026-10-12-webhook-idempotency.mdExample
kind: bug
topics: [stripe webhooks, idempotency]
paths: [src/payments/webhook.ts]
testable: "Why must the Stripe webhook handler be idempotent,
  and what fails without it?"
---

Retries caused double refunds. In-memory dedupe fails across pods, so it moved to a processed_events table keyed on event id. The insert is the lock.

const inserted = await db.processedEvents
  .insertIgnore({ id: evt.id });
if (!inserted) return; // already handled
await applyRefund(evt);

Under 120 words, leads with the why. Commit and file fingerprint stored.

It answers from what you were already told.

Ask how or why something in your code works. If your notes cover it, Claude answers from them and says when you learned it, so you notice you’ve asked before.

Each note keeps its commit and a fingerprint of its files. When the code has moved on, Claude reads the files and tells you what changed. An old note is never stated as today’s fact.

claude · acme/checkout · six weeks laterExample

youwhy does the webhook handler insert a row before it refunds?

claudeFrom your notes, Oct 12: you moved dedupe to a processed_events table because Stripe retries were causing double refunds. The insert is the lock: if two deliveries race, only one row gets in, and the loser returns early.

src/payments/webhook.ts changed since that noteIn October the insert ran on its own. It has since moved inside the refund transaction, so a failed refund now rolls the insert back too and Stripe's next retry can try again.

It shows where you lean on Claude.

Asking about something a note already answered, or the same code breaking on you in three sessions within 60 days, heats that note. Passing a check and editing without trouble cool it. Everything fades with a 30-day half-life, so nothing ever piles up as debt.

Example

src/auth/token.ts · “Why did users get logged out when two tabs refreshed at once?”

stuckOct 5Oct 19Oct 26Nov 2Nov 9Nov 23
Nov 2Third loop in 60 days. selflore says so, once: “Third time src/auth/token.ts has bitten you. Want the 2-minute version?”

It tests you, when you ask.

/selflore test auth flow in nebula, a project, a topic, or a bare /selflore test that suggests the areas where you get stuck. Three to five questions, graded straight away, each miss explained.

A question you miss comes back first next time. An optional weekly test covers that week’s work.

/selflore test stripe · question 1 of 4Example

Everything you know, on one map.

/selflore notes opens a local page: a heat map of every note, the notes as searchable text, and stats on where you get stuck. Click a dot to see why it’s the colour it is.

The selflore notes page: a heat map of projects and notes beside a list titled Where you get stuck, with websockets, stripe, clickhouse, kafka and nextjs.The Where you get stuck list from the selflore notes page: websockets, stripe, clickhouse, kafka and nextjs, each with why it is hot.
The real notes page, shown here with sample data.

Silent while you work.

selflore never stops you mid-task. The learning happens around the work. At most one offer per session, never twice about the same thing in a month, and you can turn offers off.

  1. add a retry button to the settings page

    Nothing. A task never triggers selflore.

  2. (the turn ends after a real fix)

    A separate headless Claude reads the new part of the session and writes notes. Your session never waits.

  3. how does the token refresh work again?

    Hands Claude up to three matching notes. Claude answers from them, with the date. No model call, no network.

  4. the same question, 9 days after the first

    Answers, then one line: “Second time you’ve asked this. Want a 2-minute check?” Say no and it stays quiet about it for 30 days.

Six commands. You rarely need them.

ask in plain wordsAnswers from your notes, with the date, checked against the current code.
/selflore test [anything]A short test on a project, a topic or anything in your own words. Say “unfair” to drop a question for good.
/selflore notesOpens your notes in the browser: Map, Notes and Stats, with a Test me button.
/selflore statsWhere you get stuck and why, then how your tests went.
/selflore logWrite a note by hand. Also covers work done outside Claude Code.
/selflore focusWhat gets captured: details, design or mixed, globally or per project.

Your notes live in a folder on your machine.

  • Global, in ~/.selflore, because understanding spans projects.
  • No model call and no network when you submit a prompt.
  • The notes page runs on 127.0.0.1 with a random token, and loads nothing from the internet.
  • Hooks merge into your settings and back them up first. Existing hooks are never touched.
~/.selflore/
  config.json      your answers from init
  entries/         one markdown file per note
  signals.jsonl    asks, loops, clean edits: heat
  results.jsonl    one line per graded answer
  queue.json       questions to ask first next time
  state/           capture progress, recall index

Questions, answered.

What is selflore?

selflore is a Claude Code skill that makes sure a developer who ships with Claude still understands what Claude built. It keeps short, dated notes on the work Claude did for you and why, answers your later questions from those notes, shows where you keep getting stuck, and tests you on it when you ask.

How do I install selflore?

Run npx selflore init. It asks a few questions (what you want to keep sharp, how much to capture, your focus, how capture happens and whether you want a weekly test), installs the skill and merges its hooks into your Claude Code settings. Restart any open Claude Code sessions afterwards. It needs Node 18 or later.

What does selflore capture?

After turns with real work, a separate headless Claude reads the new part of the session and writes notes on what counts: something you asked to have explained, a bug that was root-caused and fixed, a new dependency, or a large piece of code with a real decision in it. Each note has 1 to 3 topics, the files it is about, one testable question and a short body that leads with the why.

How does selflore know where I get stuck?

Two signals heat a note: asking about something a note already answered, a week or more later, and the same file or folder going through a fail, fix, pass loop in three different sessions within 60 days. Passed answers and trouble-free edits cool a note, and everything fades with a 30-day half-life, so nothing piles up as debt.

Will selflore interrupt me while I work?

No. A task prompt never triggers selflore. It makes at most one offer per session, never twice about the same thing in a month, and you can turn offers off entirely.

Does selflore send my code anywhere?

Your notes live in ~/.selflore on your machine. There is no model call and no network request when you submit a prompt. The notes page runs on 127.0.0.1 with a random token and loads nothing from the internet. Background capture uses Claude Code itself to write notes.

How is selflore different from giving Claude memory or project context?

selflore's notes are for you, not for Claude. Feeding Claude project context is a different product. selflore exists so you can explain your own codebase, and it measures that from things that already happen, like asking the same question twice.

Is selflore free?

Yes. selflore is free and open source under the MIT license. Remove it any time with npx selflore remove, or npx selflore remove --purge to delete your data too.

Keep shipping with Claude. Keep knowing your code.

A few questions and you’re set: what you want to keep sharp, how much to capture, whether you want a weekly test. Re-run it any time. Node 18 or later.