Discover gists
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.
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # ───────────────────────────────────────────────────────────────────────────── | |
| # uat provisioner — LXQt + Chrome acceptance-testing desktop under qemu:///system. | |
| # Runs entirely as your normal user (no sudo): disks live in a path you own, | |
| # and libvirtd (already root) does the privileged VM/network work. | |
| # Keep uat-cloud-init.yaml and uat-net.xml next to this script. | |
| # ───────────────────────────────────────────────────────────────────────────── | |
| # Pin a clean PATH so a custom python (pyenv/conda/etc.) can't shadow the system |
| 遊戲場景主題 | |
| 這是一款 Streets of Rage 4 風格的橫向捲軸格鬥遊戲(Beat 'em Up)。 | |
| 場景設定: | |
| - 城市街道 — 夜晚的都市後巷/街道 | |
| - 從左往右推進,共 5 個區段,總長 4000px | |
| - 地面是柏油路/水泥地,背景是城市建築 | |
| - 場景中散落著木桶和木箱(可打破掉落道具) | |
| - 敵人是街頭混混/幫派分子 |
| import time | |
| import zlib | |
| from threading import Lock, Thread | |
| class Metric(object): | |
| def add(self, value): | |
| raise NotImplementedError() | |
| def flush(self): |
GLM-5.2 is Z.ai's open-weights (MIT) flagship — 744B-MoE, a 1M-token context, and benchmarks within ~1 point of Claude Opus 4.8 on FrontierSWE. Here's how to actually put it to work, starting with the routes that cost nothing and need no credit card.
| <?xml version="1.0" encoding="utf-8"?> | |
| <fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <files> | |
| <file path="C:\ProgramData\chocolatey\lib\nexttrace\nexttrace.nupkg" checksum="8F151DB501137EB5DA5A61657C722244" /> | |
| <file path="C:\ProgramData\chocolatey\lib\nexttrace\nexttrace.nuspec" checksum="2C5F56CFD71020AB8F5EA849BDECC4C2" /> | |
| <file path="C:\ProgramData\chocolatey\lib\nexttrace\tools\chocolateyinstall.ps1" checksum="2BB7F3B0E73272C1C4B6D6C03CA9AA7D" /> | |
| <file path="C:\ProgramData\chocolatey\lib\nexttrace\tools\chocolateyuninstall.ps1" checksum="18E26FD30A165303D042BF92651D62AD" /> | |
| <file path="C:\ProgramData\chocolatey\lib\nexttrace\tools\nexttrace.exe" checksum="9BB1C8818964D7460CA4F5CDBC26C578" /> | |
| </files> | |
| </fileSnapshot> |
| /* | |
| * Copyright (c) 2013 Calvin Rien | |
| * | |
| * Based on the JSON parser by Patrick van Bergen | |
| * http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html | |
| * | |
| * Simplified it so that it doesn't throw exceptions | |
| * and can be used in Unity iPhone with maximum code stripping. | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining |
| title | Конец недвижимости как инвестиции |
|---|---|
| type | article |
| status | draft |
| audience | mixed |
| author | Alex Krol |
| updated | 2026-04-27 |
