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.

@phpfour
phpfour / optimize.md
Created June 9, 2026 17:29
Claude Fable 5 Prompt

Act as a Principal Software Architect and Performance Engineer.

Your task is to perform a comprehensive performance audit and refactor of this entire codebase.

Before making any changes:

  1. Thoroughly analyze the architecture, code structure, dependencies, database access patterns, caching strategy, queues, API endpoints, background jobs, asset loading, and deployment configuration.

  2. Identify all performance bottlenecks, including but not limited to:

  • N+1 database queries
@starfreck
starfreck / citrix.md
Last active June 9, 2026 19:03
Citrix Workspace on Linux (Distrobox + Ubuntu 24.04 + DistroShelf)

This repository documents a working setup of Citrix Workspace (ICAClient) inside a Distrobox container using Ubuntu 24.04, managed with a GUI launcher like DistroShelf.

It solves common issues around missing dependencies, Linux secret storage, and Citrix authentication loops.


πŸš€ Stack Overview

  • Distrobox for containerized Linux environments
  • Ubuntu 24.04 container
@drewraeproductions
drewraeproductions / GridGuidePro
Created December 12, 2025 04:18
Free AE Script: Grid Builder β€” Create guides, solids, or sub-comps on a grid in one click
(function(thisObj) {
function buildUI(thisObj) {
var win = (thisObj instanceof Panel) ? thisObj : new Window("palette", "Grid Builder", undefined, {resizeable: true});
// Presets
var presetsPanel = win.add("panel", undefined, "Grid Size");
presetsPanel.alignChildren = ["fill", "top"];
var row1 = presetsPanel.add("group");
row1.add("button", undefined, "2x2").onClick = function() { setGrid(2, 2); };
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@chandika
chandika / FACTORY_PROXY_CC.md
Last active June 9, 2026 18:58 — forked from ben-vargas/FACTORY_CLIProxyAPI_Claude_ChatGPT.md
Factory CLI with Claude Subscription / ChatGPT Codex via CLIProxyAPI

Executive Summary

This guide documents how to use Factory's Droid CLI with your Claude Code Max subscription (OAuth authentication) instead of pay-per-token API keys. The solution leverages CLIProxyAPI as a transparent authentication proxy that converts API key requests from Factory CLI into OAuth-authenticated requests for Anthropic's API.

Architecture Overview

Factory CLI β†’ [Anthropic Format + API Key] β†’ CLIProxyAPI β†’ [Anthropic Format + OAuth] β†’ Anthropic API
                                                  ↓
 (Auth Header Swap)
@lopestom
lopestom / 0. Android Firmware File Partition Description - devices
Last active June 9, 2026 18:58
Some information about firmware files
Some informations about partitions from Android devices.
@CoryBloyd
CoryBloyd / SDLblit.cpp
Last active June 9, 2026 18:55
Minimal code to set up a window in SDL and blit from CPU RAM to the window
// This work (SDLblit.cpp, by Cory Bloyd) is free of known copyright restrictions.
// https://creativecommons.org/publicdomain/zero/1.0/
#include <SDL.h>
inline uint32_t argb(uint8_t a, uint8_t r, uint8_t g, uint8_t b) { return (a<<24) | (r << 16) | (g << 8) | (b << 0); }
int main(int argc, char *argv[]) {
SDL_Init(SDL_INIT_VIDEO);
SDL_Rect screenRect = { 0,0,1024,1024 };