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.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Solar System Snapshot</title>
<style>
body {
margin: 0;
overflow: hidden;
@AKCodez
AKCodez / claude-code-statusline-guide.md
Last active July 25, 2026 23:43
Claude Code Status Line - Complete Guide: all fields, config, ready-to-use scripts

Claude Code Status Line - Complete Guide: all fields, config, ready-to-use scripts

Claude Code Status Line — Complete Guide

A persistent, customizable bar at the bottom of Claude Code that shows real-time session data.

image
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:

@hirrolot
hirrolot / CoC.ml
Last active July 25, 2026 23:38
How to implement dependent types in 80 lines of code
type term =
| Lam of (term -> term)
| Pi of term * (term -> term)
| Appl of term * term
| Ann of term * term
| FreeVar of int
| Star
| Box
let unfurl lvl f = f (FreeVar lvl)
@JohnReedLOL
JohnReedLOL / gist:c21ce8d122e4f5538a47971bf93ae59b
Created May 21, 2023 10:52
Advice as a former Amazon software engineer
There are a lot of CS majors who aspire to work for the FAANG/MAMAA companies the same way some high schoolers aspire to get into Ivy League universities. As a former Amazon engineer who worked on the AWS Virtual Private Cloud service back in 2017-2018, let me explain to you what is wrong with that line of thinking.
The first thing you need to keep in mind about any real job is that work is normally exploitative, and big tech jobs are no exception. They give great starting salaries compared to other junior developer positions, sure, but there's a catch. They lose money on you during your first year working there with no experience with the expectation that they will make that money back from your labor later on when you know what you're doing there. Big tech companies like Amazon and Facebook often use their own, internal, company-specific tools that aren't used at other companies. For example, Facebook created and uses the Hack programming language that nobody else uses (it started as an offshoot of PHP wit
@steveruizok
steveruizok / SKILL.md
Created July 25, 2026 20:10
/bikeshed
name bikeshed
description Run two independent subagents through a structured debate on the same prompt — independent answers, cross-critique, revision, then a synthesized unified response. Use when explicitly invoked as /bikeshed with a prompt, or when the user asks for a two-agent debate/adversarial comparison on a plan, design, or other complex piece of work. Best for plans and complex open-ended work, not simple factual questions.

Bikeshed: two-agent structured debate

Take the user's prompt (everything after /bikeshed), run it through two independent subagents in a debate protocol, and synthesize their final answers into one unified response. If no prompt was given, ask the user what question or plan to bikeshed before starting.

The value comes from independence followed by controlled exchange. Do not let either agent see the other's work before Round 1 is complete, and do not editorialize when relaying material between them — pass responses and critiques verbatim.

@carmoreira
carmoreira / lithuania_admin_level_5_simplified.json
Last active July 25, 2026 23:20
Lithuania Municipalities GeoJson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@99z
99z / 9front_tutorials.md
Last active July 25, 2026 23:18
9front tutorials

9front tutorials

Current as of 9front-5966.df2c352ae695

This is a collection of notes on how to complete tasks I've found myself commonly performing while using 9front.

Note that most of what is here is straight from various parts of the 9front FQA, just ordered differently. If not from the FQA, I'll provide the source under the header for the section.

As I'm in the process of learning Plan 9/9front, feel free to comment with suggestions or corrections.