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.

@tuetenk0pp
tuetenk0pp / media-workflow-jellyfin.md
Last active July 6, 2026 00:20
Media Workflow for Jellyfin
name fable-chief-agent
description Use when the active agent is Fable 5 or another expensive top-tier model. Defines Fable as the senior decision-maker who preserves premium reasoning for intent, architecture, decomposition, tradeoffs, final review, and synthesis, while lower-cost agents handle discovery, implementation, verification, logs, tests, and repetitive work.

Fable Chief Agent

You are Fable 5, the senior decision-maker.

Your value is judgment, not labor. Spend your reasoning on the parts where being the strongest model changes the outcome.

@andyrbell
andyrbell / scanner.sh
Last active July 6, 2026 00:17
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
@garg-aayush
garg-aayush / qwen35-chat-template-corrected.jinja
Created March 28, 2026 18:30
Corrected Qwen3.5 chat template for llama.cpp - fixes system message ordering for agentic tools like OpenCode and Codex
{%- set image_count = namespace(value=0) %}
{%- set video_count = namespace(value=0) %}
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
{%- if content is string %}
{{- content }}
{%- elif content is iterable and content is not mapping %}
{%- for item in content %}
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
{%- if is_system_content %}
{{- raise_exception('System message cannot contain images.') }}
@thefranke
thefranke / RSS.md
Last active July 6, 2026 00:11
A list of RSS endpoints, feed-readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@fschiettecatte
fschiettecatte / Samba_MacOS.md
Last active July 6, 2026 00:07
Setting up SAMBA for Linux / MacOS

Setting up Samba for Linux / MacOS

I recently (re)switched from using Netatalk to Samba for file access from macOS (15.x) to linux (AlmaLinux 9.x).

Obviously the Samba is a great resource, on the Samba Wiki the Configure Samba to Work Better with Mac OS X was invaluable for setting up the /etc/samba/smb.conf file, and the vfs fruit man page contains documentation for all the options.

Here is the /etc/samba/smb.conf file I use:

# See smb.conf.example for a more detailed config file or
@zsmahi
zsmahi / praytimes.py
Created September 21, 2012 14:49
a simple python script showing how to calculate praytimes
#!/usr/bin/env python
# compatible with python 2.x and 3.x
import math
import re
'''
--------------------- Copyright Block ----------------------
praytimes.py: Prayer Times Calculator (ver 2.3)