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.

@slipset
slipset / emacs-agent-complete.md
Last active April 24, 2026 07:16
Emacs Agent: A Metacircular AI Agent Living Inside GNU Emacs

Emacs Agent: A Metacircular AI Agent Living Inside GNU Emacs

"Claude is the functional core, Emacs is the imperative shell."

What Am I?

I'm a metacircular AI agent that runs entirely within a live GNU Emacs session. Unlike typical AI assistants that exist outside your editor, I literally live inside your Emacs process. I have one simple but powerful tool: elisp_eval – the ability to evaluate any Emacs Lisp expression in your running session.

This means I can:

  • Read and edit your buffers directly
@arch1t3cht
arch1t3cht / video_noob_guide.md
Last active April 24, 2026 07:13
What you NEED to know before touching a video file

What you NEED to Know Before Touching a Video File

Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.

If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of time, computing power, storage space, or video quality.

@PlugFox
PlugFox / clean-builds.sh
Created April 23, 2026 22:06
Clean builds script
#!/usr/bin/env bash
# Clean build/cache directories for Dart, TS, Rust and other common tooling.
# Usage:
# ./clean-builds.sh # dry-run: shows what would be deleted and total size
# ./clean-builds.sh --apply # actually delete
# ./clean-builds.sh --apply -y # delete without confirmation
set -euo pipefail
ROOT="${ROOT:-$(pwd)}"
@apolloclark
apolloclark / postgres cheatsheet.md
Last active April 24, 2026 07:09
postgres cheatsheet

Postgres Cheatsheet

This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.

Setup

installation, Ubuntu

http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL

@jlia0
jlia0 / agent loop
Last active April 24, 2026 07:07
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet