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.

@pipethedev
pipethedev / go-deslop.md
Created September 7, 2026 13:10
Markdown file to de-slop your go codebase

Go Codebase Cleanup: Remove Defensive Over-Engineering and AI Slop

Audit this Go codebase and aggressively simplify AI-generated, defensive, overly abstract, or unnecessarily generic code.

The goal is to make the code look like it was written by an experienced Go engineer:

  • simple
  • explicit
  • strongly typed
  • boring
@aschankler
aschankler / lab8_template.ipynb
Last active September 10, 2026 17:40
Chem 482L Lab 8 code template
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@halhenke
halhenke / index.html
Created October 28, 2015 09:02
Zoom code for the Canvas from the XKCD Pixels comics - https://xkcd.com/1416/
<html data-ember-extension="1" class=""><head>
<link rel="stylesheet" type="text/css" href="/s/b0dcca.css" title="Default">
<title>xkcd: Pixels</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" href="/s/919f27.ico" type="image/x-icon">
<link rel="icon" href="/s/919f27.ico" type="image/x-icon">
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="/atom.xml">
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/rss.xml">
<script async="" src="//www.google-analytics.com/analytics.js"></script><script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
@hlorand
hlorand / image-pixel.py
Created February 28, 2021 05:14
Draw image pixel by pixel in Python (turtle module)
import turtle
def setwindowsize(x=640, y=640):
turtle.setup(x, y)
turtle.setworldcoordinates(0,0,x,y)
def drawpixel(x, y, color, pixelsize = 1 ):
turtle.tracer(0, 0)
turtle.colormode(255)
turtle.penup()
@yurykovshov
yurykovshov / telegramproxy.md
Last active September 10, 2026 17:18
Как создать свой Socks5 proxy для Telegram

Шаг 1 - Купить свой виртуальный сервер на Ubuntu

Шаг 2 - Установка прокси сервера Dante

Заходим по ssh (как соединиться по SSH) на наш сервер и делаем следующие вещи:

apt-get update

apt-get upgrade

@senrecep
senrecep / README.md
Last active September 10, 2026 17:01
AI-driven setup and migration guide for Claude Code ↔ OpenCode with auto-install, skills, MCP servers, and bidirectional sync

AI Code Assistant Ecosystem Setup

AI-driven setup and optimization guide for Claude Code, OpenCode, and cross-platform tools

Quick Start: Share this gist and say:

Read this gist and set up my project: https://gist.github.com/senrecep/98d3583717581a4138bac62344261f6f
@kennyg
kennyg / llm-wiki-obsidian-setup.md
Last active September 10, 2026 17:00
LLM-Wiki Obsidian Setup Guide — full implementation of Karpathy's llm-wiki pattern

Setting Up the LLM-Wiki Pattern in Obsidian

Based on Karpathy's llm-wiki pattern — using LLMs to incrementally build and maintain a persistent, interlinked wiki from raw sources rather than re-deriving knowledge on every query.

Quick Start — Paste This Into Your Agent

Copy the prompt below into Claude Code, Codex, or any LLM agent with file access. It will scaffold the wiki, configure the tooling, and update your CLAUDE.md with the schema. Then you just start ingesting sources.

I want to set up the llm-wiki pattern in my Obsidian vault. Follow this guide exactly:
function FindProxyForURL(url, host) {
// توجيه نطاقات يوتيوب فقط إلى البروكسي المحلي
if (dnsDomainIs(host, "youtube.com") ||
dnsDomainIs(host, "www.youtube.com") ||
dnsDomainIs(host, "m.youtube.com") ||
dnsDomainIs(host, "youtubei.googleapis.com")) {
return "PROXY 127.0.0.1:8080";
}
// باقي المواقع والبرامج تتصل مباشرة بالإنترنت دون وسيط
return "DIRECT";