Skip to content

Instantly share code, notes, and snippets.

View ches's full-sized avatar
😴
On a slow life break, occasionally attentive

Ches Martin ches

😴
On a slow life break, occasionally attentive
View GitHub Profile

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.

@intellectronica
intellectronica / claude-extended-thinking-guide.md
Created November 25, 2025 13:57
Claude Extended Thinking: The Ultimate Guide

Claude Extended Thinking: The Ultimate Guide

When to use extended thinking across Claude models in the Claude App and Claude Code

Generated by Claude Opus 4.5 (with extended thinking)


What Is Extended Thinking?

@thesamesam
thesamesam / xz-backdoor.md
Last active March 9, 2026 22:51
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@RyotaUshio
RyotaUshio / Zotero Integration.md
Last active March 18, 2026 19:41
My Template for Obsidian Zotero Integration

{% if attachments -%} PDF: {%- for attachment in attachments | filterby("title", "endswith", ".pdf")%}

  • "[[{{ attachment.title }}]]" {%- endfor %} {%- endif %} {% if accessDate -%} accessDate: {{ accessDate | format('YYYY-MM-DD') }} {%- endif %}
@jdgomeza
jdgomeza / 01-deployment.yaml
Last active December 3, 2024 13:20
Istio OAuth2 Envoy Filter (Okta example)
# Simple httpbin deployment
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
labels:
app: httpbin-auth
app.kubernetes.io/instance: httpbin-auth
name: httpbin-auth
spec:
@deepanchal
deepanchal / starship.toml
Last active January 11, 2026 15:20
Starship config
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
format = """
$username\
$hostname\
$localip\
$shlvl\
$singularity\
$kubernetes\
@T3sT3ro
T3sT3ro / .bashrc.profiler
Created September 18, 2022 21:16
bash profiling utility - use it as a custom rcfile to get accurate timings for the whole .bashrc loading process
# Based on https://stackoverflow.com/a/20855353/5555799
# Store this file in ~/.bashrc.profiler and add this alias to your .bashrc:
# alias profilebashstartup='exec bash --rcfile ~/.bashrc.profiler'
TRACEFILE=$(mktemp /tmp/trace.XXX)
TIMINGFILE=$(mktemp /tmp/timing.XXX)
STARTTIME=$(date +%s.%N)
exec 3>&2 2> >( tee $TRACEFILE | sed -u 's/^.*$/now/' | date -f - +%s.%N >$TIMINGFILE)
set -x
@mcroach
mcroach / storing-image-assets-in-repo.md
Last active March 18, 2026 14:40
Using an 'assets' branch to store images in your repo

Storing image assets in your repo and referencing in markdown

Create an assets branch and make the initial commit

git checkout --orphan assets
git reset --hard
cp /path/to/cat.png .
git add .
git commit -m 'Added cat picture'
git push -u origin assets
@guizmaii
guizmaii / AES.scala
Last active October 9, 2023 14:19
Pure and modern AES encryption/decryption in Scala (with PBT tests)
package com.guizmaii.utils
import java.nio.charset.{Charset, StandardCharsets}
import java.security.{Key, SecureRandom}
import cats.effect.Sync
import doobie.{Put, Read}
import eu.timepit.refined.types.all.NonEmptyString
import io.estatico.newtype.macros.newtype
import javax.crypto.{Cipher, SecretKey, SecretKeyFactory}
@april
april / arena-macos-full-screen-fixes.sh
Last active January 15, 2026 21:02
Fixes Magic Arena's broken full screen implementation on macOS
#!/bin/bash
# this forces Arena into full screen mode on startup, set back to 3 to reset
# note that if you go into the Arena "Graphics" preference panel, it will reset all of these
# and you will need to run these commands again
defaults write com.wizards.mtga "Screenmanager Fullscreen mode" -integer 0
defaults write com.wizards.mtga "Screenmanager Resolution Use Native" -integer 0
# you can also replace the long complicated integer bit with any other scaled 16:9
# resolution your system supports.