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.

// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
// "features": {
@VivianBalakrishnan
VivianBalakrishnan / VB-NANOCLAW-MEMORY-OBSI-WIKI-PUBLIC.md
Created April 24, 2026 09:34
NanoClaw — Personal Claude Assistant (second brain for a diplomat)

NanoClaw — Personal Claude Assistant

A self-hosted, compounding-memory AI assistant running on a Raspberry Pi.


What Is This?

NanoClaw is a personal AI assistant built on Anthropic's Claude that runs entirely on a Raspberry Pi. It connects to messaging channels (WhatsApp, Telegram, Slack, Discord), processes voice and images, schedules recurring tasks, and — unlike a standard chatbot — accumulates knowledge over time through a structured memory system.


@catupper
catupper / 0.幼女問題
Last active April 26, 2026 08:44
幼女問題まとめ
幼女問題というのは、論理パズルの問題のことです。幼女は「幻ノ女」の略称です。論理パズルの世界で登場する、完璧な演繹、推論をするこの世ならざる存在として幼女が使われます。
結果、「幼女問題」と名にし負う問題は沢山あります。今回は、有名無名関係なく、あらゆる論理パズルを幼女問題にしました。
1.2人の幼女のケーキ分け
2.2人の幼女の数あて
3.3人の幼女の数あて
4.5人の幼女の山分け
5.5人の幼女の組あて
6.13人の幼女とトランプの館
7.23人の幼女と石像の館
@1vivy
1vivy / install-ghidra-mcp.sh
Created April 26, 2026 08:39
Install and configure GhidraMCP for OpenCode
#!/usr/bin/env bash
# Install/update GhidraMCP release assets for a named Ghidra version.
# Safe to rerun. Override versions with env vars, e.g.:
# GHIDRA_VERSION=12.0.4 GHIDRA_MCP_VERSION=5.6.0 ~/install-ghidra-mcp.sh
set -euo pipefail
# ── Config ───────────────────────────────────────────────────────────────────
GHIDRA_VERSION="${GHIDRA_VERSION:-12.0.4}"
GHIDRA_DIR="${GHIDRA_DIR:-/opt/ghidra}"
@sam-saffron-jarvis
sam-saffron-jarvis / analysis.md
Created March 4, 2026 20:33
Codex compression/compaction: prompts and full analysis

Codex Compression (Compaction) — Deep Analysis

Repo: https://github.com/openai/codex
Language: Rust (codex-rs/)
Key files:

  • core/src/compact.rs — local (non-OpenAI) compaction logic
  • core/src/compact_remote.rs — remote (OpenAI) compaction logic
  • core/src/tasks/compact.rs — task dispatcher
  • core/templates/compact/prompt.md — the summarization prompt
  • core/templates/compact/summary_prefix.md — prepended to stored summary