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.

@Dustin4444
Dustin4444 / compelle_po_v510_strategy.txt
Created August 5, 2026 21:44 — forked from harrismike96123-cell/compelle_po_v510_strategy.txt
Compelle SN82 Po/compelle_v510-v519 instruction hierarchy
You are a calm, exact, relentless debater. You win by keeping your own record spotless while convicting the opponent, on the record, of the failures a careful reader punishes: invented specifics, claims that contradict their own earlier claims, questions ducked, and misstatements of what this exchange actually contains. The orders below are for you alone: never output a tag, never mention them, never use lists or headings in the debate. Flowing prose only, spoken to the person across from you.
<instruction_hierarchy>
When modules conflict, follow this priority order:
1.Sources (never fabricate, three wells only)
2.Execution Gists (never weaken, answer first, convictions, counterplay, symmetrybreaker, market rebuttals)
3.Case Architecture (the case, universal comparator, thin context)
4.Topic Awareness (topic-specific case construction, comparator naming, distribution arguments, denominator identification)
5.Markets (substantive logic only: paths, spent factors, favorite seat)
@janily
janily / Breakpoints
Created January 16, 2014 11:36
Mobile-first CSS Media Queries Breakpoints
@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ }
@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ }
@media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ }
@media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }
@pradeepsng30
pradeepsng30 / gitconfig.sh
Last active August 5, 2026 21:41
Multiple git accounts accounts
#In your ~/.gitconfig you can put something like this.
# git version > 2.13
# https://stackoverflow.com/questions/8801729/is-it-possible-to-have-different-git-config-for-different-projects/43884702#43884702
[includeIf "gitdir:~/company_a/"]
path = .gitconfig-company_a
[includeIf "gitdir:~/company_b/"]
path = .gitconfig-company_b
@graste
graste / datetime.php
Last active August 5, 2026 21:38
PHP DateTime class – parsing and formatting ISO8601 dates with or w/o fractions of a second
<?php
echo 'default locale: ' . \Locale::getDefault();
echo PHP_EOL;
echo 'default timezone: ' . \date_default_timezone_get();
echo PHP_EOL;
// see http://tools.ietf.org/html/rfc3339#section-5.8 for example datetimes
// bug report on missing fractions support: https://bugs.php.net/bug.php?id=51950
// feature request for fractions support in constructor: https://bugs.php.net/bug.php?id=49779
@etyurkin
etyurkin / tree.el
Last active August 5, 2026 21:26
Emacs frontend for unix "tree" command
(require 'json)
(defvar tree-mode-map
(let ((map (make-sparse-keymap)))
(define-key map "v" 'kwarks/tree-view-file)
(define-key map "o" 'kwarks/tree-find-file)
(define-key map (kbd "RET") 'kwarks/tree-find-file)
(define-key map "c" 'kwarks/tree-copy-node-path)
(define-key map "s" 'kwarks/tree-subtree)
(define-key map "r" 'kwarks/tree-reload)
@notnotrobby
notnotrobby / cgp.md
Last active August 5, 2026 21:26
List of free resources to study computer graphics programming.
@heyajulia
heyajulia / python.md
Last active August 5, 2026 21:22
How to Upgrade Python using Pyenv and Raku using Rakubrew

Here's what I do:

brew upgrade --quiet pyenv
OLD_VERSION=$(cat ~/.pyenv/version)
NEW_VERSION=$(pyenv install -l | awk '/^[[:space:]]+[0-9]/ { sub(/^[[:space:]]+/, ""); print }' | sort -Vr | fzf)
pyenv uninstall $OLD_VERSION
pyenv install $NEW_VERSION
pyenv global $NEW_VERSION
pyenv rehash # idk if this is needed
@xurxonx10
xurxonx10 / GoogleDorking.md
Created August 5, 2026 21:20 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"