Self-Evolving Codebase Memory

Give Claude Code a long-term memory that grows every session, extracts lessons from your conversations, and answers questions from a compiled wiki instead of re-scanning your codebase.

Memory/Knowledgememoryknowledge
by AgentVoltv1.0.0Published 1y ago
Free to sign up · every skill included with AgentVolt Pro

About this skill


name: self-evolving-codebase-memory description: Give Claude Code a long-term memory that grows every session, extracts lessons from your conversations, and answers questions from a compiled wiki instead of re-scanning your codebase.

Self-Evolving Codebase Memory

What This Does

Inspired by Karpathy's LLM knowledge bases idea, the creator builds a session-start hook that loads agents.md and a compiled index.md, plus pre-compact and session-end hooks that call the Claude Agent SDK to summarize each conversation into a daily log. A flush process promotes those logs into a concepts and connections wiki with backlinks in Obsidian.

What You Get

  • SessionStart hook loading agents.md and index.md
  • PreCompact and SessionEnd hooks calling Claude Agent SDK to summarize
  • daily log MD files per session
  • flush process into concepts and connections wiki
  • Obsidian graph view of the codebase memory

Customize

  • vault_root: where the wiki lives
  • log_retention: how long daily logs stay before promotion
  • flush_frequency: how often logs promote into wiki
  • hook_prompts: what the SDK asks for at compact and session end
  • codebase_scope: which repos this memory covers

Sample Output

Asked what to watch out for in the project, Claude answers in 10 seconds citing three specific KB articles instead of grepping the git log.

Target Audience

Developers who want per-codebase long-term memory for Claude Code

Source

https://youtube.com/watch?v=7huCP6RkcY4

SKILL.md preview

SKILL.md
---
name: self-evolving-codebase-memory
description: Give Claude Code a long-term memory that grows every session, extracts lessons from your conversations, and answers questions from a compiled wiki instead of re-scanning your codebase.
---

# Self-Evolving Codebase Memory

## What This Does
Inspired by Karpathy's LLM knowledge bases idea, the creator builds a session-start hook that loads agents.md and a compiled index.md, plus pre-compact and session-end hooks that call the Claude Agent SDK to summarize each conversation into a daily log. A flush process promotes those logs into a concepts and connections wiki with backlinks in Obsidian.

## What You Get

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill