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.

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@almic
almic / Halo MCC API (Node).js
Last active July 11, 2026 16:37
The Node.js way for getting into the Halo MCC API.
const request = require('then-request')
// This is your microsoft live account information
const LOGIN = process.env.LOGIN // typically an email address
const PASSWD = process.env.PASSWD // typically your xbox live password
// This is the "api" we'll be calling once we login
const endpoint = 'https://www.halowaypoint.com/en-us/games/halo-the-master-chief-collection/xbox-one/' +
'game-history?gamertags=Furiousn00b&gameVariant=all&view=DataOnly'
This file has been truncated, but you can view the full file.
<DATE> <TIME> <OPEN> <HIGH> <LOW> <CLOSE> <TICKVOL> <VOL> <SPREAD>
2023.06.05 01:00:00 1946.87 1949.91 1946.04 1949.82 722 0 12
2023.06.05 01:15:00 1949.86 1950.12 1949.32 1949.58 363 0 12
2023.06.05 01:30:00 1949.45 1949.98 1948.85 1949.65 386 0 12
2023.06.05 01:45:00 1949.70 1949.71 1948.93 1948.96 299 0 12
2023.06.05 02:00:00 1948.97 1949.94 1948.67 1949.79 577 0 12
2023.06.05 02:15:00 1949.71 1949.81 1948.33 1948.66 477 0 12
2023.06.05 02:30:00 1948.67 1948.90 1947.35 1948.39 542 0 12
2023.06.05 02:45:00 1948.33 1949.57 1948.32 1949.40 411 0 12
@szaaamerik
szaaamerik / saveswap.md
Last active July 11, 2026 16:28
FH5 Save Swap guide
@rowlando
rowlando / software-design-rfc-process.md
Created February 23, 2026 09:07
This RFC (Request for Comments) template is designed to make software design decisions transparent, asynchronous, and inclusive. It serves as a structured way to propose, discuss, and document significant technical decisions before implementation begins.

Software Design RFC Process

Introduction

This RFC (Request for Comments) template is designed to make software design decisions transparent, asynchronous, and inclusive. It serves as a structured way to propose, discuss, and document significant technical decisions before implementation begins.

When to Use This Template

Use an RFC when you're proposing changes that: