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.

// ==UserScript==
// @name New minefunking v7.2 日本語版---開き方はInsertキーで開きます
// @namespace *://minefun.io/*
// @version 26.7.23.JP.1
// @author kqkwwowow - New minefunking v7.2
// @description New minefunking v7.2
// @match *://minefun.io/*
// @grant ****
// @license ***
// @downloadURL https://update.greasyfork.org/scripts/588223/New%20minefunking%20v72%20%E6%97%A5%E6%9C%AC%E8%AA%9E%E7%89%88---%E9%96%8B%E3%81%8D%E6%96%B9%E3%81%AFInsert%E3%82%AD%E3%83%BC%E3%81%A7%E9%96%8B%E3%81%8D%E3%81%BE%E3%81%99.user.js
@meigwilym
meigwilym / CQRS.md
Last active December 4, 2026 06:37
CQRS, Task Based UIs, Event Sourcing agh!

CQRS, Task Based UIs, Event Sourcing agh!

Posted by gregyoung on February 16, 2010

Many people have been getting confused over what CQRS is. They look at CQRS as being an architecture; it is not. CQRS is a very simple pattern that enables many opportunities for architecture that may otherwise not exist. CQRS is not eventual consistency, it is not eventing, it is not messaging, it is not having separated models for reading and writing, nor is it using event sourcing. I want to take a few paragraphs to describe first exactly what CQRS is and then how it relates to other patterns.

CQRS Command and Query Responsibility Segregation

Starting with CQRS, CQRS is simply the creation of two objects where there was previously only one. The separation occurs based upon whether the methods are a command or a query (the same definition that is used by Meyer in Command and Query Separation, a command is any method that mutates state and a query is any method that returns a value).

@kvico
kvico / calliope-grove-gps.js
Last active December 4, 2026 06:16
Parse Grove GPS values with Calliope Mini PXT block editor
/*
Snippet reads the first 3 digits of Latitude and Longitude values of Grove GPS connected to a Calliope Mini
Links:
- PXT editor for Calliope Mini: http://pxt.calliope.cc/index.html)
- Sensor description and Python example code for Grove GPS: http://wiki.seeed.cc/Grove-GPS/
- GPS sensor spec: http://www.vis-plus.ee/pdf/SIM28@SIM68R@SIM68V_NMEA_Messages_Specification_V1.01.pdf
Licensed under the Apache Software License 2.0 (ASL 2.0)
*/
let gpgga_value = ""
type: custom:button-card
name: Living Room
icon: mdi:sofa
tap_action:
action: navigate
navigation_path: '#livingroom'
entity: sensor.living_room_temp_and_hum
custom_fields:
btn:
card:
@jm3
jm3 / 7 Questions All Businesses Must Answer.md
Last active December 4, 2026 04:04
from Peter Thiel's book, Zero to One
pt Seven Questions All Businesses Must Answer
  1. The Engineering Question: Can you create breakthrough technology (vs. incremental improvement)?

  2. The Timing Question: Is now the right time to start this particular business?

  3. The Monopoly Question: Are you starting with a big share of a small market?

@flyingsubs
flyingsubs / zen34.yaml
Created August 11, 2022 02:38
blueprint tutorial for Zen34
blueprint:
name: Zooz ZEN34
description: Automations helper for the Zooz ZEN34 S2 Switch using the Zwave
JS integration.
domain: automation
input:
zooz_zen34:
name: Zooz ZEN34
description: The ZEN34 Switch to interact with.
selector: