Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@CKGrafico
CKGrafico / bootstrap-agent.txt
Last active April 28, 2026 09:06
Bootstrap Agent Environment for my projects
You are an expert software architect and AI agent systems designer.
Your task is to **analyze this repository and generate a complete agent environment** for it — compatible with OpenCode, Claude Code, Codex, Gemini, or any AI agent.
---
## Phase 1: Discovery (do this first)
Explore the repository thoroughly before generating anything:
# DSA Question Bank
## Arrays, Hashing, Prefix/Suffix
1. Find the second largest element in one pass without extra space.
2. Find the k largest distinct elements without fully sorting the array.
3. Find the two numbers that appear once when every other number appears twice.
4. Find the majority element that appears more than n / 2 times.
5. Find all elements that appear more than n / 3 times.
6. Count inversions in an array.
@bohe76
bohe76 / sp-omc-ecc-gs-harness-comparison.md
Last active April 28, 2026 09:01
Claude Code Harness Comparison: SP / OMC / ECC / gs — Command Catalog & Workflow Mapping (EN + KO)

Claude Code Harness Comparison: Command Catalog & Workflow Mapping

Date: 2026-04-11
Scope: SP (Superpowers) · OMC (oh-my-claudecode) · ECC (Everything Claude Code) · gs (gstack)


Part 1. Command Catalog

1. SP (Superpowers) — 14 Skills

@rohitg00
rohitg00 / llm-wiki.md
Last active April 28, 2026 08:59 — forked from karpathy/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

@lh3
lh3 / cmd.sh
Last active April 28, 2026 08:57
Test BAM/CRAM file sizes
# download portable samtools binary v1.14 (not the latest version)
curl -L 'https://zenodo.org/records/5731013/files/htstools-1.14_x64-linux.tar.bz2?download=1' | tar -jxf - htstools-1.14_x64-linux/samtools
htstools-1.14_x64-linux/samtools # test run; the following command lines assume "samtools" is on $PATH
# download minimap2 binary; also easy to compile from the source code
curl -L https://github.com/lh3/minimap2/releases/download/v2.28/minimap2-2.28_x64-linux.tar.bz2 | tar -jxf - minimap2-2.28_x64-linux/minimap2
# download T2T-CHM13v2 analysis set
curl -L https://s3-us-west-2.amazonaws.com/human-pangenomics/T2T/CHM13/assemblies/analysis_set/chm13v2.0_maskedY_rCRS.fa.gz | zcat > chm13v2.fa
samtools faidx chm13v2.fa