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.

@DvilMuck
DvilMuck / aternosAntiAntiadblock.user.js
Last active August 16, 2026 07:43
Aternos Anti Anti Adblock userscript for Aternos.org
// ==UserScript==
// @name Aternos Anti Anti-adblock
// @namespace r0630hh1edcuum5397kimyc0ucwy2h3psn4c6r1u4j
// @version 0.2.5
// @description Fuck anti-adblock from the free hosting minecraft servers Aternos.org. Parry this you filthy casual!
// @author Angry Developer against excessive ADs
// @source https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a
// @supportURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a
// @updateURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js
// @downloadURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js
@fnky
fnky / ANSI.md
Last active August 16, 2026 07:42
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27

S3 Storage Benchmark — Round 3

6-Way Comparison with Compression Variants
MinIO vs SeaweedFS vs Garage vs Garage-zstd vs HS5 vs RustFS

Date: 2026-03-25
Method: Python boto3 direct, sub-ms accuracy
Data: 746 real TDnet filing documents, 600.2 MB
Each backend tested in isolation — fresh volumes, one at a time, no resource contention

@challahan
challahan / doctype.html
Last active August 16, 2026 07:40
Default HTML5 Doctype Template
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Title Goes Here</title>
<meta name="description" content="Page Description Goes Here">
</head>
<body>
@PSJoshi
PSJoshi / openscap_windows.md
Created May 17, 2019 12:27
openscap installation on windows

Installation of OpenSCAP for Windows

Openscap is a great project for tracking system compliance and vulnerabilities. The team is working hard and they have also released a Windows version. I just took a Windows version for a spin and encountered some errors. Here are some of my installation notes:

Donwload and Install OpenSCAP ".msi" file from github repository: https://github.com/OpenSCAP/openscap/releases/download/1.3.0/OpenSCAP-1.3.0-win32.msi

After installation, you may have to rename VCRUNTIME140.dll to 1VCRUNTIME140.dll as it is a 64-bit binary and is unfit for 32-bit OS.

Let's say, you have installed it under c:\Program Files\OpenSCAP-1.3 directory. Now, if you try to run "oscap.exe --help", you may encounter errors like:

@smileham
smileham / AI-GenerateAnalysis.ajs
Last active August 16, 2026 07:19
A suite of scripts for jArchi and the Archi modelling tool to enable integration between the tool and LLM such as Gemini from Google
/*
* Generate AI Analysis (Requires AI-REST.js and Export To Markdown.ajs)
*
* Requires:
* * jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
* * AI-REST.js - Package to support connections to LLM (Gemini/GPT)
* * persona.json - templates for standard persona and prompts - https://gist.github.com/smileham/8cbb3116db7f0ee80bcab4f1a57d14a8#file-persona-json
* * Export to Markdown.ajs - https://gist.github.com/smileham/578bbbb88dc0ed5a1403f3b98711ec25
*
* Version 1: Gemini API
@aarondfrancis
aarondfrancis / audit-your-codebase.md
Created August 14, 2026 15:20
A read-only, agent-orchestrated codebase audit prompt for data structures, state modeling, algorithms, and ownership.

Audit this entire codebase for materially useful simplifications in its data structures, state representation, control flow, algorithms, and ownership.

This is an audit-only exercise. Do not edit files, run tests, implement recommendations, commit, or push. Read-only inspection commands are allowed.

You are the coordinator. Continue until the complete codebase has been reviewed and the final audit is validated.

  1. Establish the coverage contract

Inspect the repository and inventory every identifiable subsystem.