Skip to content

Instantly share code, notes, and snippets.

@sitek94
sitek94 / llm-wiki.md
Created April 14, 2026 07:57 — forked from karpathy/llm-wiki.md
llm-wiki

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.

@sitek94
sitek94 / README.md
Last active March 31, 2026 08:43
Recursive scanner for Axios supply-chain IOCs across npm/yarn/pnpm/Bun projects and local host artifacts (axios 1.14.1 / 0.30.4, plain-crypto-js 4.2.1).
@sitek94
sitek94 / ahoy-and-brave-focus-toggle.js
Last active November 2, 2024 17:55
Toggle Focus Mode in Brave/Ahoy platforms
// ==UserScript==
// @name Toggle Focus Mode in Brave/Ahoy platforms
// @namespace http://tampermonkey.net/
// @version 2024-11-01
// @description Removes distractions by hiding sidebar, navigation, etc. Leaves only article content. Default shortcut: `ctrl =` to toggle the focus on/off.
// @author Maciek Sitkowski
// @include https://bravecourses.circle.so*
// @include https://spolecznosc.eduweb.pl*
// @icon https://www.google.com/s2/favicons?sz=64&domain=circle.so
// @grant none
@sitek94
sitek94 / web-crypto.js
Created February 9, 2024 21:51
Web Crypto API Experiments
console.clear()
const PRIVATE_KEY_FORMAT = 'pkcs8'
const PUBLIC_KEY_FORMAT = 'spki'
const ENCRYPTION_ALGORITHM_NAME = 'RSA-OAEP'
const HASH_ALGORITHM_NAME = 'SHA-256'
const user = await generateKeyPair()
const leader = await generateKeyPair()
@sitek94
sitek94 / ahoy-focus.js
Last active June 1, 2023 19:04
Boost for Ahoy community to toggle focus mode
const styles = {
position: "fixed",
inset: 0,
zIndex: 99999,
overflowY: 'auto',
height: "100vh",
width: "100vw",
colorScheme: 'dark'
}
@sitek94
sitek94 / index.html
Created January 15, 2022 18:11
Emoji Favicon
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⏳</text></svg>"
/>
@sitek94
sitek94 / main.css
Created November 17, 2021 04:55
100 Bytes of CSS to look great everywhere + bonus
html {
max-width: 70ch;
padding: 3em 1em;
margin: auto;
line-height: 1.75;
font-size: 1.25em;
}
/* Bonus */
h1,h2,h3,h4,h5,h6 {
@sitek94
sitek94 / server.js
Created July 31, 2021 17:19
Simple Node.js Server
const http = require('http');
const port = 5000;
const ip = '165.227.151.233';
const server = http.createServer((req, res) => {
console.log('There was a request!');
res.writeHead(200);
res.write('Hello from Simple NodeJS Server!');
@sitek94
sitek94 / .editorconfig
Last active July 23, 2023 06:52
Project Init
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
@sitek94
sitek94 / dummy-mail-data.json
Created February 3, 2021 17:05
Mail Data From Knockout JS Example
{
"Sent": [
{
"id": 33,
"from": "steve@example.com",
"to": "callum.wyeslyfa@fang ghost.xyz",
"date": "May 13, 2011",
"subject": "RE: Logo ideas",
"folder": "Sent"
},