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.

@anacunha
anacunha / resize.scpt
Last active August 26, 2026 06:43
Resize window macOs
tell application "Firefox"
set bounds of front window to {300, 30, 2220, 1110}
end tell
tell application "iTerm"
set bounds of front window to {300, 30, 2220, 1110}
end tell
tell application "System Events" to tell process "Code"
tell window 1
---
schema_version: 0
flavor: base
region: warsaw
shell: zsh
packages:
- https://github.com/sharkdp/bat/releases/download/v0.18.1/bat_0.18.1_amd64.deb
- parallel
- unp
repositories:
@michaelbutler
michaelbutler / Steam_Proton_Exe.md
Last active August 26, 2026 06:08
How to run another .exe in an existing proton wine prefix

Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?

Simply run this command in a terminal:

cd /path/to/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
@randomecho
randomecho / australian-postcodes.sql
Last active August 26, 2026 06:04
Australian postcodes (with states and suburb names) geocoded with latitude and longitude.
/*
Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod
May contain errors where latitude and longitude are off. Use at own non-validated risk.
*/
SET NAMES utf8;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS postcodes_geo;
#!/bin/bash
#set -e
# ============ 平台检测 =============
detect_platform() {
case "$(uname -s)" in
Darwin)
OS="macOS"
SHA_TOOL="shasum"
OPEN_CMD="open"
@0xdevalias
0xdevalias / music-apis-and-dbs.md
Last active August 26, 2026 05:32
A collection of music APIs, databases, and related tools
@Ltek
Ltek / autolock-ltek.yaml
Last active August 26, 2026 05:25
Home Assistant Blueprint: Auto-Lock Door Monitor by LTek
blueprint:
name: "🔐 Auto-Lock Door Monitor by LTek"
description: |
Auto-Lock Door Monitor monitors door openings and closings. Allows for custom schedules and timings to locks the doors and send notifications for any phase of the automation.
🚀 Version 2026.02.06.15c
- fixes: notifications, door lock timeout
- updates: changed time entries to be more flexible