Skip to content

Cole Medin

Summary

AI engineer and YouTuber who adapted Karpathy's LLM Wiki pattern from external data ingestion to internal data — building a self-evolving memory system for Claude Code that captures conversation logs and extracts structured knowledge.

Contributions

"I Built Self-Evolving Claude Code Memory w/ Karpathy's LLM Knowledge Bases" (April 2026)

Extended the LLM Wiki pattern to codebase memory:

  • Claude Code Hooks — uses session start, pre-compact, and session end hooks to automatically capture conversation summaries
  • Daily logs — equivalent to the raw/ folder; stores summarized takeaways from every Claude Code session
  • Daily flush process — extracts concepts and connections from logs, populates the wiki
  • Claude Agent SDK — runs behind the scenes to summarize conversations without requiring API key setup
  • Hot cache (hot.md) — ~500-character cache of most recent context for quick access
  • Fully customizable prompts for compilation and flushing; the system can improve itself

Notable insight: the system gives Claude Code a memory that evolves with the codebase, remembering decisions made and how the project evolved over time.