Skip to content

Instantly share code, notes, and snippets.

@rohitg00
rohitg00 / llm-wiki.md
Last active April 19, 2026 11:26 — forked from karpathy/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

@retlehs
retlehs / backlinks.sh
Created April 17, 2026 15:54
Backlinks for any domain via Common Crawl

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.

@BeadtMODE
BeadtMODE / .deps....raw_paths.json
Created April 19, 2026 11:23
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=undefined&optimize=undefined&runs=undefined&gist=
{
"contracts@0.4.0/MyToken.sol": ".deps/npm/contracts@0.4.0/MyToken.sol",
"@openzeppelin/contracts@5.6.0/token/ERC20/ERC20.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/token/ERC20/ERC20.sol",
"@openzeppelin/contracts@5.6.0/token/ERC20/IERC20.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/token/ERC20/IERC20.sol",
"@openzeppelin/contracts@5.6.0/token/ERC20/extensions/IERC20Metadata.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/token/ERC20/extensions/IERC20Metadata.sol",
"@openzeppelin/contracts@5.6.0/utils/Context.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/utils/Context.sol",
"@openzeppelin/contracts@5.6.0/interfaces/draft-IERC6093.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/interfaces/draft-IERC6093.sol",
"@openzeppelin/contracts@5.6.0/access/Ownable.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/access/Ownable.sol",
"contracts@0.4.0/mbt.sol": ".deps/npm/contracts@0.4.0/mbt.sol",
"contracts@0.4.0/MyConrract.sol": ".deps/npm/contracts@0.4.0/MyConrract.sol",
@BeadtMODE
BeadtMODE / .deps....raw_paths.json
Created April 19, 2026 11:22
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=undefined&optimize=undefined&runs=undefined&gist=
{
"contracts@0.4.0/MyToken.sol": ".deps/npm/contracts@0.4.0/MyToken.sol",
"@openzeppelin/contracts@5.6.0/token/ERC20/ERC20.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/token/ERC20/ERC20.sol",
"@openzeppelin/contracts@5.6.0/token/ERC20/IERC20.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/token/ERC20/IERC20.sol",
"@openzeppelin/contracts@5.6.0/token/ERC20/extensions/IERC20Metadata.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/token/ERC20/extensions/IERC20Metadata.sol",
"@openzeppelin/contracts@5.6.0/utils/Context.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/utils/Context.sol",
"@openzeppelin/contracts@5.6.0/interfaces/draft-IERC6093.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/interfaces/draft-IERC6093.sol",
"@openzeppelin/contracts@5.6.0/access/Ownable.sol": ".deps/npm/@openzeppelin/contracts@5.6.0/access/Ownable.sol",
"contracts@0.4.0/mbt.sol": ".deps/npm/contracts@0.4.0/mbt.sol",
"contracts@0.4.0/MyConrract.sol": ".deps/npm/contracts@0.4.0/MyConrract.sol",
@dabit3
dabit3 / you_couldve_invented_openclaw.md
Last active April 19, 2026 11:19
You Could've Invented OpenClaw

See more of my writing here. Also check out Devin

In this post, I'll start from scratch and build up to OpenClaw's architecture step by step, showing how you could have invented it yourself from first principles, using nothing but a messaging API, an LLM, and the desire to make AI actually useful outside the chat window.

End goal: understand how persistent AI assistants work, so you can build your own (or become an OpenClaw power user).

First, let's establish the problem

When you use ChatGPT or Claude in a browser, there are several limitations:

@bradtraversy
bradtraversy / terminal-commands.md
Last active April 19, 2026 11:18
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@davidondrej
davidondrej / AGENTS.md
Created April 11, 2026 10:00
default AGENTS.md template by David Ondrej

AGENTS.md

Project Overview

  • Project: [Name] — [one sentence describing what it does]
  • Target user: [e.g. developers, small businesses, lawyers]
  • My skill level: [beginner / intermediate / expert]
  • Stack: [e.g. Next.js, Supabase, Tailwind — or "see package files"]

Commands

  • Install: [e.g. npm install, pip install -r requirements.txt]