<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rajkumar TS on Medium]]></title>
        <description><![CDATA[Stories by Rajkumar TS on Medium]]></description>
        <link>https://medium.com/@rajkumarts?source=rss-602b2be0dcb5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NoTdGLNrUKR9z400ad_yWQ.jpeg</url>
            <title>Stories by Rajkumar TS on Medium</title>
            <link>https://medium.com/@rajkumarts?source=rss-602b2be0dcb5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 19:04:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajkumarts/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Your LLM Forgets Everything. Here’s How To Fix It]]></title>
            <link>https://rajkumarts.medium.com/your-llm-forgets-everything-heres-how-to-fix-it-8081d5810332?source=rss-602b2be0dcb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8081d5810332</guid>
            <category><![CDATA[knowledge-management]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Rajkumar TS]]></dc:creator>
            <pubDate>Wed, 15 Jul 2026 14:52:53 GMT</pubDate>
            <atom:updated>2026-07-15T14:52:53.771Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hM2ASjjI4TL3oRiQDUmRJw.png" /><figcaption>An AI that reads, writes, and maintains your repository’s knowledge base.</figcaption></figure><p>Every time you open a coding agent, Cursor, Claude, Codex, Copilot it starts from zero. It doesn’t know your architecture. It doesn’t know why you chose Kafka over SQS. It doesn’t know that the legacy/ folder is actually the critical path for billing. It doesn&#39;t know that the last incident was caused by a race condition in the dispatcher that took three engineers two days to find.</p><p>So you explain. Again. And again. Across every session, every tool, every engineer on your team.</p><p>I got tired of this. So I built something that fixes it.</p><h3>The Idea: Give the LLM a Wiki to Maintain</h3><p>The concept is simple and comes from <a href="https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f">Andrej Karpathy’s LLM Wiki pattern</a>: instead of treating LLM context as disposable, make it persistent. Create a wiki/ directory in your repository, seed it with a schema that teaches the LLM how to maintain it, and let every future session read from and write to that shared knowledge base.</p><p><strong>The wiki isn’t for humans to maintain, it’s for the LLM to maintain, and for everyone (humans and LLMs) to read.</strong></p><p>Here’s what the structure looks like:</p><pre>wiki/<br>├── WIKI.md               # The schema — teaches the LLM how to be a wiki maintainer<br>├── overview.md           # 5-minute repo orientation<br>├── index.md              # Master page catalog (LLM reads this first)<br>├── log.md                # Append-only changelog of wiki operations<br>├── projects/             # One page per project or service<br>├── concepts/             # Cross-cutting concerns (auth, events, deployment)<br>├── decisions/            # Architecture Decision Records<br>└── sources/              # Raw documents that were ingested</pre><p>Three layers make this work:</p><ol><li><strong>Raw sources</strong> — READMEs, design docs, meeting notes, Confluence pages. Immutable. The LLM reads them but never modifies them.</li><li><strong>The wiki</strong> — LLM-generated markdown files that synthesize, cross-reference, and compress those sources into structured pages.</li><li><strong>The schema</strong> — WIKI.md, a file that defines page types, naming conventions, and the three core operations: ingest, query, and lint.</li></ol><h3>The Operations</h3><h3>Ingest</h3><p>When new information arrives — a design doc, incident report, meeting notes, or even a pasted Slack thread — the LLM doesn’t just dump it into a file. It:</p><ol><li>Reads the source material</li><li>Identifies which existing wiki pages are affected</li><li>Updates those pages (adds to architecture sections, updates active work, refines operational notes)</li><li>Creates new pages only if something genuinely new was introduced</li><li>Updates the master index</li><li>Appends to the changelog</li></ol><p>A single design doc might touch 5 wiki pages. The LLM handles the fan-out. You just say “ingest this.”</p><h3>Query</h3><p>When you ask a question about the codebase, the LLM doesn’t grep through files hoping to find the answer. It reads index.md first, finds the relevant wiki pages, reads them, and synthesizes an answer with references.</p><p>This is the magic moment. A new engineer opens the repo and asks: <em>“</em><strong><em>How does the event delivery system work?”</em></strong> — and gets back a coherent explanation with links to the architecture page, the list of subscribers, the troubleshooting procedures, and the recent initiatives. In seconds. No meetings. No “let me find someone who knows.”</p><h3>Lint</h3><p>Periodically, you can ask the LLM to health-check its own wiki:</p><ul><li><strong>Staleness</strong> — pages not updated in 30+ days</li><li><strong>Orphans</strong> — pages with no inbound links</li><li><strong>Gaps</strong> — projects or concepts mentioned but lacking their own page</li><li><strong>Contradictions</strong> — claims that conflict across pages</li><li><strong>Drift</strong> — the overview is out of sync with project pages</li></ul><p>The LLM maintains itself, and it can audit itself.</p><h3>The Knowledge Transfer Problem</h3><p>Let’s talk about what onboarding actually looks like at most companies.</p><p>A new engineer joins a team. For the first 2–3 weeks, they’re in “absorption mode” — reading READMEs that are six months out of date, grepping for function names, asking teammates questions that interrupt focused work, and sitting in “knowledge transfer” meetings that try to compress years of context into a few hours.</p><p>The KT process is expensive in every dimension:</p><ul><li><strong>The new engineer</strong> is unproductive for weeks while building a mental model</li><li><strong>The existing engineers</strong> lose hours per week answering questions and context-switching out of deep work</li><li><strong>The knowledge itself</strong> is lossy — what gets transferred in a 1-hour meeting is a fraction of what the senior engineer actually knows</li><li><strong>It doesn’t scale</strong> — when 3 people join at once, the KT burden triples</li><li><strong>It’s perishable</strong> — by the time the onboarding doc is written, the codebase has already moved on</li></ul><p>And here’s the part nobody talks about: KT isn’t just an onboarding problem. Every time an engineer switches projects within the same team, every time someone comes back from vacation to a codebase that changed, every time an on-call engineer gets paged for a service they haven’t touched in months — they go through a mini-KT cycle. The context evaporates and has to be rebuilt.</p><h3>How the Wiki Eliminates KT Bottlenecks</h3><p>With an LLM wiki, day one looks fundamentally different. Instead of scheduling meetings, the new engineer opens their IDE and starts asking questions:</p><blockquote>“What does this repo do?”<em><br> Here’s the overview — N projects across 5 domains, here’s how they connect…</em></blockquote><blockquote>“Why did we choose X over Y?”<em><br> Decision record 003 explains the tradeoffs. The key constraint was…</em></blockquote><blockquote>“Something is broken in production. Where do I start?”<em><br> The troubleshooting guide says check these CloudWatch logs first, here are the alarm thresholds, here’s the escalation path…</em></blockquote><blockquote>“What’s the team actively working on?”<em><br> Top initiatives: a code refactoring spike, and a migration to a new query layer. Here are the details and Jira tickets…</em></blockquote><p>The engineer isn’t waiting for a meeting. They aren’t interrupting a colleague. They’re having an interactive conversation with the collective knowledge of the team — at their own pace, on their own schedule, as deep or shallow as they need.</p><p><strong>This compresses weeks of KT into hours.</strong> Not because the information is dumbed down, but because it’s organized, interlinked, and instantly queryable. The wiki knows the architecture, the decisions, the operational procedures, the active work, the troubleshooting guides, and the team contacts. It knows things that no single engineer remembers completely.</p><p>And unlike a recorded KT session or an onboarding doc, the wiki never goes stale — because the LLM updates it as part of its normal workflow. Every design doc ingested, every incident documented, every decision recorded makes the next engineer’s onboarding faster.</p><p>The <strong>wiki doesn’t replace human mentorship</strong> — but it handles the 80% of KT that is “here’s how the system works, here’s where things are, here’s why we made that choice.” That frees up senior engineers to focus on the 20% that actually requires human judgment: code review, design discussions, and career guidance.</p><h3>Making It Tool-Agnostic</h3><p>One wiki, every tool. The key is <strong>placing small configuration files at the repo root </strong>that tell each LLM agent the same thing: <em>check the wiki first.</em></p><p>Tool Config File Purpose Cursor .cursor/rules/wiki-maintainer.mdc Always-on rule Claude CLI CLAUDE.md Auto-loaded context Codex AGENTS.md Agent instructions</p><p>Each file contains the same core instructions:</p><ol><li>When answering questions, read wiki/index.md first to find relevant pages</li><li>When editing the wiki, follow the schema in wiki/WIKI.md</li><li>When ingesting new information, update affected pages, the index, and the changelog</li></ol><p>This means it doesn’t matter which tool an engineer prefers. The wiki is the single source of truth, and every tool knows how to use it.</p><h3>The One-Shot Bootstrap Prompt</h3><p>Here’s the part you can actually use today. This prompt, pasted into any LLM coding agent while you’re inside a repository, will bootstrap the entire wiki for you.</p><p>Open a new chat. Paste this. Run it.</p><p>You are going to build a persistent, LLM-maintained wiki for this repository. This wiki will serve as a compounding knowledge base that future LLM sessions can read, query, and update so context is never lost between conversations.</p><p>Follow every step below. Do not skip any step. Do not ask for confirmation just execute.</p><p><strong>STEP 1: Explore the repository</strong></p><p>Thoroughly explore the repository to understand:</p><ul><li>What the repo does (product, service, library, monorepo, etc.)</li><li>Language(s), frameworks, package manager(s)</li><li>Directory structure and how code is organized</li><li>CI/CD setup (GitHub Actions, Jenkins, etc.)</li><li>Key dependencies and integrations</li><li>Any existing documentation (READMEs, docs/, confluence links, ADRs)</li><li>Active work (recent PRs, branches, TODO comments)</li><li>Team/ownership signals (CODEOWNERS, Slack channels, Jira references)</li></ul><p>Read at minimum: the root README, package.json/pyproject.toml/go.mod (or equivalent), the CI config, and at least 3–5 project-level READMEs if this is a monorepo.</p><p><strong>STEP 2: Create the wiki directory structure</strong></p><pre>wiki/<br>├── WIKI.md               # Schema — how the wiki is structured and maintained<br>├── overview.md           # High-level synthesis (readable in 5 min by a new dev)<br>├── index.md              # Master catalog of all pages<br>├── log.md                # Chronological record of wiki operations<br>├── projects/             # One page per project or service<br>├── concepts/             # Cross-cutting architectural concepts<br>├── decisions/            # Architecture Decision Records<br>└── sources/              # Raw ingested documents (immutable)</pre><p><strong>STEP 3: Create </strong><a href="http://wiki.md/"><strong>WIKI.md</strong></a><strong> (the schema)</strong></p><p>Create wiki/WIKI.md with the following structure. This is the file that teaches future LLM sessions how to maintain the wiki:</p><ul><li><strong>Purpose</strong> — persistent, compounding knowledge base</li><li><strong>Three Layers</strong> — raw sources, the wiki, the schema</li><li><strong>Page Types</strong> — Project pages (status, architecture, dependencies, operational notes, active work), Concept pages (cross-cutting concerns), Decision Records (ADR format), Source Summaries</li><li><strong>Operations</strong> — Ingest (read source, update affected pages, update index and log), Query (read index first, synthesize answer), Lint (staleness, orphans, gaps, contradictions)</li><li><strong>Conventions</strong> — lowercase hyphen-separated filenames, relative markdown links within wiki, always update frontmatter and index, synthesize rather than accumulate</li></ul><p>Each page type should have YAML frontmatter with at minimum: type, title, status, and last_updated.</p><p><strong>STEP 4: Populate the wiki</strong></p><p>Based on your exploration, create:</p><ol><li>wiki/overview.md — high-level synthesis readable in 5 minutes</li><li>wiki/projects/*.md — one page per project/service with proper frontmatter and standard sections</li><li>wiki/concepts/*.md — cross-cutting concerns (auth, events, deployment, shared libs, etc.)</li><li>wiki/decisions/*.md — any architectural decisions you discover evidence of</li><li>wiki/index.md — master catalog organized by type</li><li>wiki/log.md — initial bootstrap entry</li></ol><p><strong>STEP 5: Wire up LLM configuration files</strong></p><p>Create these files (only if they don’t already exist) so future LLM sessions automatically consult the wiki:</p><ul><li>.cursor/rules/wiki-maintainer.mdc — Cursor rule with alwaysApply: true that tells the LLM to read wiki/index.md first when answering questions, and follow wiki/WIKI.md when editing</li><li>CLAUDE.md — Claude CLI config with wiki-first query and ingest workflows</li><li>AGENTS.md — Same content for Codex and other agents</li></ul><p>All three should instruct the LLM to: check the wiki before answering repo questions, follow the schema for edits, update the index and log on changes.</p><p><strong>STEP 6: Summary</strong></p><p>Report what was created: total pages by type, key projects, concepts, decisions, config files, and suggested next steps.</p><p><strong>Guidelines:</strong></p><ul><li>Be thorough but concise — information-dense, not padded</li><li>Use the repo’s actual terminology and naming conventions</li><li>Cross-reference aggressively between project and concept pages</li><li>Don’t invent information — only document what you verify from the codebase</li><li>If external docs exist (Confluence, Notion), capture URLs but note content hasn’t been ingested yet</li></ul><h3>After the Bootstrap</h3><p>Once the wiki exists, it grows through use:</p><ul><li><strong>“Ingest this design doc”</strong> — the LLM reads it and updates every affected wiki page</li><li><strong>“We decided to use X instead of Y for caching”</strong> — the LLM creates a decision record and updates the project page</li><li><strong>“We just had an incident with the payment service”</strong> — the LLM updates the troubleshooting guide and operational notes</li><li><strong>“Lint the wiki”</strong> — the LLM audits itself for staleness, gaps, and contradictions</li></ul><p>Every conversation makes the wiki more complete. Every future conversation starts with more context. The knowledge compounds instead of evaporating at the end of each session.</p><h3>The Bigger Picture</h3><p>We’re in a transition period where LLM coding agents are powerful but amnesic. They can understand your entire codebase in a single session — but they forget everything the moment you close the chat.</p><p>The wiki pattern solves this by giving the LLM a place to write down what it learns, in a structure that makes it easy to read back later. It’s not a fancy tool or a SaaS product. It’s a directory of markdown files, a schema, and a convention.</p><p>The most valuable thing about it isn’t the initial bootstrap — it’s what happens three months later, when the wiki has absorbed dozens of design docs, incident reports, and architectural decisions, and a new engineer can sit down and have a genuinely useful conversation with the codebase on day one.</p><p>That engineer doesn’t need a week of KT sessions. They don’t need to interrupt three senior engineers. They don’t need to reverse-engineer the architecture from code comments and git blame. They open their editor, ask questions, and get answers that reflect the full institutional knowledge of the team.</p><p>That’s the future of onboarding. Not more meetings. Not more stale documentation. Not more KT sessions that transfer 30% of the context at 100% of the cost. A living knowledge base that the AI maintains, everyone benefits from, and no one has to keep up to date by hand.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8081d5810332" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>