| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory 20K+ Stars ⭐️, 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.
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.
| # Standard zshrc stuff like path, etc. | |
| # ... | |
| # Enable using the two files above: | |
| # Functions | |
| source venv-auto-activate.sh | |
| # Venv security whitelist/blocklist | |
| alias venv-security='uv run -q --no-project ~/scripts/venv-security.py' |
| import requests | |
| import json | |
| import argparse | |
| from rich.console import Console | |
| from rich.table import Table | |
| from rich.live import Live | |
| from rich.spinner import Spinner | |
| def search_for_part(description, show_all, no_sort): | |
| """ |
"All things leave behind them the Obscurity... and go forward to embrace the Brightness..." — Dao De Jing #42
Skip down if you just want graphs and numbers comparing various Qwen3-30B-A3B GGUF quants.
| import asyncio | |
| import aiohttp | |
| import os | |
| from pathlib import Path | |
| import logging | |
| from bs4 import BeautifulSoup | |
| from typing import List, Dict | |
| from dataclasses import dataclass | |
| from datetime import datetime | |
| import time |
| #!/bin/bash | |
| # Define the main export folder | |
| export_folder=~/Desktop/iMessages_Export | |
| mkdir -p "$export_folder" | |
| # Part 1: Generate the CSV file | |
| echo "Generating CSV file..." | |
| sqlite3 ~/Library/Messages/chat.db <<EOF |
| #!/usr/bin/env ruby | |
| # https://asmirnov.xyz/vram | |
| # https://vram.asmirnov.xyz | |
| require "fileutils" | |
| require "json" | |
| require "open-uri" | |
| # https://huggingface.co/spaces/NyxKrage/LLM-Model-VRAM-Calculator/blob/main/index.html |