# I Love the Karpathy LLM Wiki but it Doesn't Scale. Here's What Does.
<!--
ref: @content/youtube/cole-medin/i-love-the-karpathy-llm-wiki-but-it-doesnt-scale-heres-what-does
tags: [agent memory, production agents, context retrieval, MCP, vector search, Redis, personal knowledge bases]
version: 2
updated_at: 2026-11-24T05:24:12.122Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=R-5_2nsF_ZM)**

# I Love the Karpathy LLM Wiki but it Doesn't Scale. Here's What Does.

*Synthesized from Cole Medin, 2026-07-09.*

Cole Medin presents solo, describing how an agent built for other people differs from a personal, locally run knowledge-base agent, and demonstrates the approach with a Redis Iris example.

## Core Thesis
Cole Medin argues that personal agents built on Markdown knowledge bases, such as an LLM wiki run through Hermes, Claude Code or Obsidian, are the right tool for one person but do not scale to many users. A production agent needs a database with two layers: a context layer that exposes business data through generated search tools, and an agent-memory layer that stores each user's short-term and long-term memory.

## Key Insights
- **Why personal agents stop at one user.** Markdown is easy to grow and flexible, but it lacks access control, real-time data handling, large-scale search and auditing. Coding-agent SDK subscriptions are meant for personal use, so they cannot simply be carried into a multi-user product.
- **Context layer.** The database is a key-value store for an e-commerce demo with customers, orders, products and shipments. A context service defines entities that map roughly one-to-one to the underlying tables, and it generates MCP tools for each attribute, plus full-text search on text fields. The agent can then filter orders by status or find support requests that mention refunds with one tool call.
- **Agent memory layer.** Each conversation keeps short-term session memory. A background process extracts key facts into long-term memory, which is stored as vectors for semantic retrieval, so a user can accumulate millions of memories and still retrieve the most relevant ones. The demo's example memory: the customer prefers reshipments over refunds for delayed orders, and a new session recalled it.
- **Demo setup.** The agent is built with Pydantic AI, which the presenter prefers for production over coding-agent SDKs because those SDKs are slower and use more tokens. The demo has no user interface and no authentication; a real product would identify the user through login.
- **Scope.** The presenter says the same ideas apply to any custom infrastructure, but then the team must build the search tools and the process that extracts memories.

## Actionable Takeaways
1. Keep a Markdown wiki for a personal agent, and move to a database once other users log in.
2. Define the entities in the context service first; generate one search tool per attribute, and add full-text search for text fields.
3. Split agent state into per-conversation short-term memory and a background process that promotes key facts into searchable long-term memory.
4. Use a lightweight production agent framework such as Pydantic AI rather than a coding-agent SDK when shipping to users.
5. Give users visible, deletable memories so the memory layer stays under review.

## Notable Quotes
> "But there is also a line to be drawn where personal agents do not scale." — Cole Medin

> "Markdown is no longer suitable." — Cole Medin

---

*Related: `@content/youtube/ai-jason/how-to-build-proactive-agents-self-improving-company-fully-explained` · `@content/youtube/yifan-bth/we-are-missing-the-point-of-mcp-its-not-just-about-tools` · `@content/youtube/tiago-forte/i-connected-claude-to-everything-then-i-saw-the-gap` · `@content/youtube/every-inc/microsofts-vision-for-an-internet-made-for-agents-with-cto-kevin-scott-best-of-the-pod` · `@content/youtube/tiago-forte/i-connected-my-entire-business-to-claude`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*