# BaChe > Learning by doing, doing by learning. Notes from a photonics research workhorse raising an AI assistant: the tools I build, my notes, and the pitfalls I hit. ## Work - [diagram-audience-fit](https://wizerdbache.com/en/work/diagram-audience-fit/index.md): Lets AI draw architecture diagrams in which every line traces back to its source - [paper-survey-kit](https://wizerdbache.com/en/work/paper-survey-kit/index.md): One paper, two ways of reading: check the evidence first, then rebuild the story - [research-advisor-kit](https://wizerdbache.com/en/work/research-advisor-kit/index.md): A research advisor plus a literature agent: every citation matches back to the source text - [ArchLens series](https://wizerdbache.com/en/work/archlens/index.md): Four browser tools that link up project maintenance into one workflow - [DIT — Dialogue Is Teacher](https://wizerdbache.com/en/work/dit/index.md): Turns the run logs of AI coding into steps you can actually read - [PatentsGrabber](https://wizerdbache.com/en/work/patentsgrabber/index.md): Enter a patent number and see the full text, drawings and original document on one screen - [bache-agent-system-seed-kit](https://github.com/WizerdBaChe/bache-agent-system-seed-kit): Seed kit for starting a new agent: plain-text rules, installed by asking the agent in one sentence - [FlashGrab](https://github.com/WizerdBaChe/FlashGrab): Freezes the screen the moment you press a hotkey, then recognizes text offline after you box-select an area - [claude-share](https://github.com/WizerdBaChe/claude-share): Rules and mechanisms published in batches from a personal Claude Code setup - [app-residue-sweep](https://github.com/WizerdBaChe/wizerd-app-residue-sweep): Sweeps leftover files after uninstalling on Windows, archives them, and generates an administrator script - [Literature Search](https://github.com/WizerdBaChe/literature-search-chatgpt): An academic literature search and extraction plugin with traceable evidence - [Personal ChatGPT Plugin Marketplace](https://github.com/WizerdBaChe/personal-chatgpt-plugin-marketplace): A ChatGPT and Codex plugin marketplace collecting 12 personal workflows - [Research Assistant Suite](https://github.com/WizerdBaChe/research-assistant-suite-chatgpt): A ChatGPT and Codex plugin with research methods and a literature-evidence workflow - [HTML tools lobby](https://github.com/WizerdBaChe/my-HTML-Tools-Lobby): A static lobby site that showcases and searches multiple small HTML tools - [bench-claude-arms](https://github.com/WizerdBaChe/bench-claude-arms): Measured run cost of AI coding agents: channels, delegation and reasoning effort - [3D Photo Synthesis Engine](https://github.com/WizerdBaChe/3D-Photo-Synthesis-Engine): Composes a draggable 3D photo in the browser from a color image and a depth map - [claude-project-ops](https://github.com/WizerdBaChe/claude-project-ops): A portable operating guide that lets mid-tier models dispatch projects by the rules too - [Local AI Transcriber Pro](https://github.com/WizerdBaChe/Local-AI-Transcriber-Pro): Transcribes audio and video locally into text with faster-whisper and generates a mind map ## Articles - [From a seed: my AI assistant Qizhe, and a starter seed kit for newcomers to agents](https://wizerdbache.com/en/notes/self-growing-agent-seed/index.md): Qizhe is the AI assistant I work with every day. From its first save in July 2026 until now, it has grown more than forty rule files, over thirty skills, and more than two hundred entries in its lessons log. Most of these were not designed at the start; they grew out of one mistake and one ruling after another. This series looks at how it grew up. The first post gives you a seed: a plain-text set of starter rules that you can have your agent install with a single sentence. - [First look at an ERP: a walkthrough of buying, selling and making with Odoo](https://wizerdbache.com/en/notes/what-an-erp-looks-like/index.md): A friend passed along an open-source ERP called odoo. I ran it on my own computer and walked through order taking, shipping, invoicing, payment collection, purchasing and manufacturing. This post does not cover installation; it only shows what an ERP looks like when you open it, and a few places where I thought, “so that’s how it was designed.” - [A domain that doesn't send mail should say so too: SPF, DMARC, and null MX](https://wizerdbache.com/en/notes/site-security-domain-email-spoofing/index.md): A domain that isn't used for email is the easiest to abuse for sending phishing under its name. Three DNS records can declare that the domain neither sends nor receives mail, giving receiving servers a basis for rejecting forged messages. This post covers why, which three records to set, how to add them in Cloudflare, and how to verify them. - [Two moves only dynamic sites need: checking against the server’s own time, and leaving the original data alone](https://wizerdbache.com/en/notes/site-security-dynamic-site-ideas/index.md): A site that quotes prices, takes orders or has a database carries two extra risks: someone may submit an order with stale or edited prices, and queries may hit the original data directly. This post starts from two directions raised in a friends’ group chat and adds implementation steps based on OWASP’s recommendations: prices and times are decided by the server, the original data is kept as a separate copy, and queries touch only the copy. - [Three gates at the website edge: blocking scan paths, limiting password attempts, and adding headers](https://wizerdbache.com/en/notes/site-security-edge-rules/index.md): Using one firewall rule on Cloudflare's free plan to block scans for .env and .git, one rate-limiting rule to block brute-force password guessing, and then adding HSTS and anti-embedding headers. Each item comes with console steps, and each has a control check: what should be blocked is blocked, and normal requests are not blocked by mistake. - [Does switching to Google sign-in already mean two-step verification?](https://wizerdbache.com/en/notes/site-security-google-login-2fa/index.md): Switching the console to Google sign-in is the right direction, but it only hands the job of proving who you are to Google. To be truly secure, you still need to check the Google account itself, the old password login, the console's own two-step verification, and backup codes. This post is my record of completing these for my Cloudflare, GitHub and Google accounts, with step-by-step instructions on where to click, and it ends with a prompt you can paste into an AI to check your setup. - [Keep the protections from silently failing: one checklist plus periodic re-checks](https://wizerdbache.com/en/notes/site-security-keep-it-checked/index.md): Setting up protections once isn't hard; the hard part is whether they are still there three months later. I wrote a baseline of protections for each type of public asset, use a script to re-check from the outside, record the date of each manual check, and flag any that have gone stale. Includes a prompt you can give an AI to build the same checklist. - [Recoverable and visible: restore drills and checking what the firewall blocked](https://wizerdbache.com/en/notes/site-security-restore-and-watch/index.md): Locking the door leaves two more things: whether you can recover when something goes wrong, and whether anyone is knocking. Rebuilding from GitHub from scratch showed me that files deliberately kept out of git were missing from the backup; looking back at firewall events showed me the rules really were doing their job. Includes step-by-step instructions for a restore drill and for reviewing events. - [Ask what attackers want first: test the site before hardening it](https://wizerdbache.com/en/notes/site-security-what-attackers-want/index.md): Attackers usually want not your web pages but your keys and login sessions. This post starts from a game-launcher trojan and a post about a cloud bill that spiked, and explains how I first hit my own site with the paths a scanner would try, looked up DNS and accounts, and only then decided what to fix. - [After the upgrade reconciliation missed 6 items: “judged and left out” must be told apart from “never seen”](https://wizerdbache.com/en/notes/cc-upgrade-per-item-reconcile/index.md): After the 2.1.325 → 2.1.330 post went out, a reader's AI agent checked the official changelog item by item and found 6 changes I had read but left no judgment on, because the log only checked whether five sections existed rather than whether each item had a judgment. This post explains how I changed reconciliation so that every item needs a disposition, and why a Reverted entry must name which entry it changed back to. - [AI is doing my work, but I'm no less busy: managing flow is easy, managing how many lines are open at once is what matters](https://wizerdbache.com/en/notes/flow-vs-capacity/index.md): I handed many personal projects to the same AI assistant. Things got faster, but more decisions landed on me. This piece summarizes the research I read: managing flow, such as triaging and batching interruptions, is something many people already do, while the capacity question of how many lines to run at once is almost unaddressed, and limiting it has some evidence behind it as well as some dispute. - [Too much going on and running in circles: start with a few time-management basics, and you can also get AI to help](https://wizerdbache.com/en/notes/time-management-basics/index.md): Juggling several things at once and having your time chopped into bits is a common frustration for office workers and graduate students alike. This note gathers the approaches that came up most often in one time-management article and a long thread of multi-project PM discussion: sorting incoming work, putting the work itself on the calendar, asking who something is urgent for, handling messages in batches, moving each item forward one step a day, and where AI can help. - [If your tool breaks, would you know? Adding monitoring and snapshots to your own tools](https://wizerdbache.com/en/notes/monitor-your-own-tools/index.md): Tasks will sometimes fail, so when I design a tool, I design its checks at the same time instead of leaving it alone once it works. This post starts from two ways my video-downloading tool has broken: first pick the one workflow you know best and make its failures visible and traceable, then slowly connect them into one overall view. - [Our own numbers, not the audience's numbers](https://wizerdbache.com/en/notes/own-numbers-not-audience-numbers/index.md): When I ask AI to help with slides or posts, material I have made myself tends to put numbers on screen that only mean something to me. This note covers why that happens, why a rule I had already written went unused, and how I finally fixed it. - [Both the kid and the teacher: a few tricks for letting an AI agent grow up on its own](https://wizerdbache.com/en/notes/agent-child-and-teacher/index.md): AI starts from zero in every new conversation, so the same pitfall can be hit a second and third time. My approach is to have it play two roles in each round: the kid who makes mistakes and learns something in that round, and the teacher who writes the teaching material for the next round. The point is not to remember more, but to write things where they will be read at the moment the problem comes up again. - [Does your AI agent really finish the job?](https://wizerdbache.com/en/notes/agent-finish-the-job/index.md): When an agent says “done,” the job may still be unfinished: files were never committed, branches were never merged, temporary files are still around, and what it learned is forgotten by next time. This post explains how I wrote “finished” down as a wrap-up chain, triggered by one word and stopping at the first failure, and ends with a prompt you can paste straight to an AI. - [AI Is Continuing the Conversation, Not Looking Things Up](https://wizerdbache.com/en/notes/ai-is-continuing-not-looking-up/index.md): When a chat AI answers, it works more like continuing the conversation: it picks the most natural next passage based on what came before, rather than looking things up first. So it can sound smooth and confident even when it is wrong. Once you understand this, three small checking habits are enough to let you use it for most things with confidence. - [How editors understand code: LSP, Tree-sitter, and their relationship to AI agents](https://wizerdbache.com/en/notes/lsp-agents-background/index.md): Code gets syntax highlighting and can jump to function definitions, thanks to two tools that appeared about ten years ago: Tree-sitter handles syntactic structure, and LSP handles semantics. Claude Code added LSP support at the end of 2025. This post first explains the two clearly, as background for the tests that follow. - [What happens when LSP is made to wait before answering: a post-hoc experiment, discussion, and my advice for Claude Code users](https://wizerdbache.com/en/notes/lsp-agents-discussion/index.md): When the agent is told to wait 15 seconds and query again after an incomplete lookup, LSP returns the full answer every time, and the cost of the rename task also falls back below baseline; but the agent still checks the answer again with grep. This post covers the post-hoc experiment, the overall discussion and practical advice, and ends with a method list and a note on the data. - [How to fairly test whether “an AI agent with LSP installed is better”: experiment design](https://wizerdbache.com/en/notes/lsp-agents-experiment-design/index.md): Installing a plugin does not mean it gets used. This note records how I designed the experiment (three groups that each differ by one thing, two task sets with deliberate traps, a scorer validated first, and predictions and reading rules written before the runs), and it also caught a design error that made the main test impossible to reach significance. - [AI agent with LSP installed: results from 66 runs, zero difference, and a 0.5-second timing gap](https://wizerdbache.com/en/notes/lsp-agents-results/index.md): The pre-registered 66-run experiment: all three groups answered correctly, and enabling the plugin did not make the agent cheaper. Telling it to use LSP actually cost 12–34% more tokens (not statistically significant). Digging further showed that Claude Code always sent its queries before Pyright had finished indexing, and all 13 queries returned only the definition itself. - [How AI manages to listen and talk at once](https://wizerdbache.com/en/notes/ai-listen-and-talk/index.md): New voice AI makes acknowledging sounds and stops when you interrupt, no longer waiting for you to finish before it responds. Without assuming any technical background, this piece explains the idea behind it: instead of guessing whether you have finished, it decides in every short slice of time whether to speak or stay quiet. - [How speech models that listen and talk at once work: taking apart Moshi and Haru-4B](https://wizerdbache.com/en/notes/full-duplex-speech-models/index.md): Voice AI that listens and talks at once, makes acknowledging sounds and stops when interrupted runs on one core idea: cut time into fixed frames and let the model decide in each frame whether to speak or stay silent. I compare two open models, Moshi and Haru-4B, looking at how they arrange their data, how many times per second they compute, where the latency comes from, and what current evaluations can measure. - [The official guide shows how to adjust to each new model. Did you read it?](https://wizerdbache.com/en/notes/read-the-new-model-prompting-guide/index.md): Each time a new model launches, Anthropic publishes a guide on how to instruct it, but most people only check benchmark scores, skip the guide, and keep using old rules. This piece covers how I compared the Claude Fable 5.2, Claude Opus 5.5 and Claude Sonnet 5.5 guides against my own rules: why to read them, what reading them gave me, and how to use them. - [Setting the autocompact threshold is only step one: what compaction loses, and how to save before it runs](https://wizerdbache.com/en/notes/autocompact-beyond-threshold/index.md): Lowering Claude Code's autocompact threshold does save usage, but the threshold only decides when compaction happens. This note covers what compaction drops, and the three things I added for long tasks: save a handoff first, specify what the summary must keep, and feed the handoff back after compaction. - [Do you (not) need autocompact: long conversations for one person, and resident AI that hands over shifts](https://wizerdbache.com/en/notes/autocompact-do-you-need-it/index.md): Autocompact is worth it for one person running long tasks at a computer. But if your system already opens a new conversation with a handoff card when the chat gets too long, turning on autocompact means the handoff never happens. This note covers how to tell the two cases apart and how to set up each. - [Why I reconcile the changelog against my own setup on every Claude Code upgrade](https://wizerdbache.com/en/notes/cc-upgrade-notes-why/index.md): Claude Code updates almost every day. The official changelog tells you what changed, but not which entry collides with your own setup. This post explains how I reconcile: trust only the version that is actually running, pick out only the changes that hit my own rules, and retest where the notes say to. - [Claude Code makes my computer slow: processes that won't close and temp files that keep piling up](https://wizerdbache.com/en/notes/claude-code-leftover-processes/index.md): A Claude Code session finishes, but the processes behind it often stay open, and nobody deletes the temp folder. This note records how I noticed, how I traced it layer by layer to its causes, and where to look if you want to check for yourself. - [Strangler Fig pattern (3): Coexistence of old and new: anti-corruption layer, transitional architecture, branch by abstraction, parallel change](https://wizerdbache.com/en/notes/strangler-fig-coexistence/index.md): During a migration the old and new systems must run side by side. Four components keep that in-between state workable. They differ only in where the seam sits, and each one needs its removal timing worked out. - [Strangler Fig pattern (4): Cutover and verification: leaving the step that cannot be undone to the end](https://wizerdbache.com/en/notes/strangler-fig-cutover/index.md): Do reversible steps first, and do more of them; do the irreversible step alone and last. Before cutting over, prove that the old and new systems do the same thing: a dark launch, reconciliation, or running the same test suite against both are all ways to do it. - [Strangler Fig pattern (6): What academia says: evidence, gaps and a checklist](https://wizerdbache.com/en/notes/strangler-fig-evidence/index.md): Academic precursors go back to a 1995 book on gateway-based incremental migration, but direct empirical research on the Strangler Fig pattern is scarce, and I found no study comparing incremental migration with rewriting. The article ends with a checklist to use before starting. - [Replacing a large system without downtime: why not rewrite it all, and what is the Strangler Fig pattern](https://wizerdbache.com/en/notes/strangler-fig-overview/index.md): When a large system is too hard to change yet has to be replaced, a full rewrite is often the worst choice. The Strangler Fig pattern grows the new system along the edges of the old one, taking over piece by piece until nobody uses the old system. - [Strangler Fig pattern (5): Pitfalls and situations where it is not suitable](https://wizerdbache.com/en/notes/strangler-fig-pitfalls/index.md): The most common pitfall is requiring the new system to be identical to the old one; next come scaffolding that never gets removed, replacing the technology without changing how the work is done, unseen downstream dependencies, and a pace that is too slow. When a system is small or cannot be cut open, this pattern may not be suitable. - [Strangler Fig pattern (2): Seams, and where to cut the old system open](https://wizerdbache.com/en/notes/strangler-fig-seams/index.md): Incremental replacement depends on having places in the system where it can be cut. Seams can sit at the network entry point, in messaging, in front-end pages, in the database, inside the code, or even in people. Each layer has its own approach and cost. - [Slide version: the whole AI memory system at a glance](https://wizerdbache.com/en/notes/md-memory-deck/index.md): Thirteen hand-drawn slides, from “why AI forgets” to the four-layer architecture, follow-the-trail search, and SQLite's real role; the details are in four articles in the same series. - [Indexes and trail search: indexes only nominate, answers come from files](https://wizerdbache.com/en/notes/md-memory-index-search/index.md): Questions take the cheapest route first, and federated search is used only when the trail breaks. Every index can be deleted and rebuilt; SQLite is used only on the side. - [Getting AI to find things again: Markdown files and folders as the core of memory](https://wizerdbache.com/en/notes/md-memory-overview/index.md): The memory system I share with my AI assistant: the files are the only truth, routing decides what to look at first, indexes only nominate candidates, and every answer is read back from the files. - [Routing layer: what AI reads at the start, and what it reads only when it hits something](https://wizerdbache.com/en/notes/md-memory-routing/index.md): Always-loaded content stays under 73 KB; the rest is read only as needed: the opening summary, rules that load when a file is touched, the lookup tables, and an automatic search when “last time” comes up. - [Truth layer: one thing per file, and folders are the categories](https://wizerdbache.com/en/notes/md-memory-truth-layer/index.md): How to write memory cards, lesson cards, the project register, and decision logs so that both AI and people can find them again: one home per fact, small cards, append-only. - [Domain setup after purchase: DNSSEC, https, www redirect and AI crawlers](https://wizerdbache.com/en/notes/cloudflare-domain-setup/index.md): On the first day after buying a domain at Cloudflare: put up a placeholder page, force https, redirect www to the main address, with a tested command for each step. - [Should a personal site have analytics? Five options compared](https://wizerdbache.com/en/notes/personal-site-analytics/index.md): From not installing anything to GA4: what each one tells you, whether it needs a cookie banner, the free tiers, and one edge counter that does not record IP addresses. - [How to make AI search find your website (GEO)](https://wizerdbache.com/en/notes/personal-site-geo/index.md): Writing the title as the question a reader would ask is the most useful step; the sitemap, share cards and llms.txt are generated automatically by the build. - [Privacy for a personal site: collect nothing by default, then write a page that says so](https://wizerdbache.com/en/notes/personal-site-privacy/index.md): Where visitor data flows out, how to switch each flow off, and a template for a privacy page whose structure you can copy. - [Security for a static personal site: where the real risks are](https://wizerdbache.com/en/notes/personal-site-security/index.md): A static website is hard to hack. The real risks are stolen accounts, accidental exposure, URLs leaking through side doors, and an expired domain. - [Building your own portfolio site: what to decide and what order to do it in](https://wizerdbache.com/en/notes/portfolio-site-overview/index.md): An Astro static site on Cloudflare: the overall architecture, what to decide before you start, the order of work, and the costs. - [Portfolio site structure: URLs, home page order, and how to write work pages](https://wizerdbache.com/en/notes/portfolio-site-structure/index.md): Once the URL rules are set, do not change them. Each section of a work page covers one point, with an image that proves it. - [Buying your own .com domain at Cloudflare](https://wizerdbache.com/en/notes/cloudflare-domain-purchase/index.md): Sold at cost, with renewal and new-registration prices the same, managed in the same dashboard as the site. This article covers everything from preparing your details to clicking Buy. ## Series: Not Tech, Just the Basics: What Everyone Should Know About Using AI - [AI Is Continuing the Conversation, Not Looking Things Up](https://wizerdbache.com/en/notes/ai-is-continuing-not-looking-up/index.md): When a chat AI answers, it works more like continuing the conversation: it picks the most natural next passage based on what came before, rather than looking things up first. So it can sound smooth and confident even when it is wrong. Once you understand this, three small checking habits are enough to let you use it for most things with confidence. ## Series: Claude Code auto-compact: whether to enable it, how to set it up, and how to work around its gaps - [Do you (not) need autocompact: long conversations for one person, and resident AI that hands over shifts](https://wizerdbache.com/en/notes/autocompact-do-you-need-it/index.md): Autocompact is worth it for one person running long tasks at a computer. But if your system already opens a new conversation with a handoff card when the chat gets too long, turning on autocompact means the handoff never happens. This note covers how to tell the two cases apart and how to set up each. - [Setting the autocompact threshold is only step one: what compaction loses, and how to save before it runs](https://wizerdbache.com/en/notes/autocompact-beyond-threshold/index.md): Lowering Claude Code's autocompact threshold does save usage, but the threshold only decides when compaction happens. This note covers what compaction drops, and the three things I added for long tasks: save a handoff first, specify what the summary must keep, and feed the handoff back after compaction. - [Autocompact capability pack: download, contents, and security notes](https://wizerdbache.com/en/notes/autocompact-pack-download/index.md): I packaged the autocompact handoff mechanism I have run for over two months into a capability pack, available for download here. This note lists what each file in the pack does, what it reads and writes, what it does not do, and how to verify after download that the files have not been altered. ## Series: How to reconcile Claude Code upgrades - [Why I reconcile the changelog against my own setup on every Claude Code upgrade](https://wizerdbache.com/en/notes/cc-upgrade-notes-why/index.md): Claude Code updates almost every day. The official changelog tells you what changed, but not which entry collides with your own setup. This post explains how I reconcile: trust only the version that is actually running, pick out only the changes that hit my own rules, and retest where the notes say to. - [After the upgrade reconciliation missed 6 items: “judged and left out” must be told apart from “never seen”](https://wizerdbache.com/en/notes/cc-upgrade-per-item-reconcile/index.md): After the 2.1.325 → 2.1.330 post went out, a reader's AI agent checked the official changelog item by item and found 6 changes I had read but left no judgment on, because the log only checked whether five sections existed rather than whether each item had a judgment. This post explains how I changed reconciliation so that every item needs a disposition, and why a Reverted entry must name which entry it changed back to. ## Series: Claude Code upgrade notes from hands-on testing - [Claude Code 2.1.312 → 2.1.318 upgrade test: the terminal and the desktop app are running different versions](https://wizerdbache.com/en/notes/cc-upgrade-2-1-312-to-318/index.md): Reconciled on 2026-11-05: the terminal build moved to 2.1.318, while the Code tab of the desktop app was still running the bundled 2.1.317. Prompts that mods add now arrive in the user's turn, the desktop app started idle compaction, and text printed by a PreCompact hook is read by the summary model. - [Claude Code 2.1.318 → 2.1.319 upgrade test: “not seen” does not mean “not there”](https://wizerdbache.com/en/notes/cc-upgrade-2-1-318-to-319/index.md): Reconciled on 2026-11-07: while I was rerunning the compaction test, the detector said one behavior had disappeared; adding a positive control showed it was still there. PostToolUse hooks now also run on interrupted tool calls, and a Bash rule gap involving quoted commands was fixed, while the desktop app stayed on its old bundled version. - [Claude Code 2.1.319 → 2.1.322 upgrade test: AI-written mods load before you review them](https://wizerdbache.com/en/notes/cc-upgrade-2-1-319-to-322/index.md): Reconciled on 2026-11-10: in auto and bypass modes, mods that Claude writes during a conversation load at the end of that turn, and tool calls a mod makes itself no longer raise permission prompts. The desktop app caught up this time, bundling 2.1.321. - [Claude desktop app 4.23118.1 → 5.1231.0 upgrade test: the Windows data moved to a new location](https://wizerdbache.com/en/notes/cc-upgrade-desktop-4-23118-1-to-5-1231-0/index.md): Reconciled on 2026-11-12: the major version went from 4 to 5, but the Claude Code it bundles did not change. The biggest effect for Windows users is that the data folder moved (except for the Microsoft Store version), so scripts with a hard-coded old path will not find anything. - [Claude Code 2.1.322 → 2.1.325 upgrade test: this time the desktop app ran ahead of the terminal](https://wizerdbache.com/en/notes/cc-upgrade-2-1-322-to-325/index.md): Reconciled on 2026-11-13 and 11-15: the Claude Code bundled in the desktop app moved to 2.1.325 first, while the terminal was still on 2.1.323. Most of these changes tighten permissions: in a repo that is not the project's own, read-only git commands now ask first, and a schedule that runs a skill now asks first. - [Claude Code 2.1.325 → 2.1.330 upgrade test: hook “blocks” now count for more](https://wizerdbache.com/en/notes/cc-upgrade-2-1-325-to-330/index.md): Reconciled on 2026-11-21: the terminal build and the Claude Code bundled in the desktop app both reached 2.1.330, and the desktop app itself jumped to a major version starting with 6. These changes are mostly about tighter gatekeeping and steadier compaction: a hook's printed “block” now takes effect in more cases, and auto-compaction rebuilds the system prompt. - [Claude Code 2.1.330 → 2.1.332 upgrade test: commands run when a skill loads can now be caught by a hook](https://wizerdbache.com/en/notes/cc-upgrade-2-1-330-to-332/index.md): Reconciled on 2026-11-25: the terminal build has reached 2.1.332, while the Claude Code bundled in desktop app 7.37095.0 is still 2.1.331. The new PreSkillShellCommand hook can block shell commands injected when a skill loads, and MCP servers can now provide skills; but while the two versions are out of sync, hold off on adding the new hook to your settings. ## Series: Does LSP help AI agents: a hands-on test log - [How editors understand code: LSP, Tree-sitter, and their relationship to AI agents](https://wizerdbache.com/en/notes/lsp-agents-background/index.md): Code gets syntax highlighting and can jump to function definitions, thanks to two tools that appeared about ten years ago: Tree-sitter handles syntactic structure, and LSP handles semantics. Claude Code added LSP support at the end of 2025. This post first explains the two clearly, as background for the tests that follow. - [How to fairly test whether “an AI agent with LSP installed is better”: experiment design](https://wizerdbache.com/en/notes/lsp-agents-experiment-design/index.md): Installing a plugin does not mean it gets used. This note records how I designed the experiment (three groups that each differ by one thing, two task sets with deliberate traps, a scorer validated first, and predictions and reading rules written before the runs), and it also caught a design error that made the main test impossible to reach significance. - [AI agent with LSP installed: results from 66 runs, zero difference, and a 0.5-second timing gap](https://wizerdbache.com/en/notes/lsp-agents-results/index.md): The pre-registered 66-run experiment: all three groups answered correctly, and enabling the plugin did not make the agent cheaper. Telling it to use LSP actually cost 12–34% more tokens (not statistically significant). Digging further showed that Claude Code always sent its queries before Pyright had finished indexing, and all 13 queries returned only the definition itself. - [What happens when LSP is made to wait before answering: a post-hoc experiment, discussion, and my advice for Claude Code users](https://wizerdbache.com/en/notes/lsp-agents-discussion/index.md): When the agent is told to wait 15 seconds and query again after an incomplete lookup, LSP returns the full answer every time, and the cost of the rename task also falls back below baseline; but the agent still checks the answer again with grep. This post covers the post-hoc experiment, the overall discussion and practical advice, and ends with a method list and a note on the data. ## Series: Making AI able to find things again: managing memory with Markdown and folders - [Getting AI to find things again: Markdown files and folders as the core of memory](https://wizerdbache.com/en/notes/md-memory-overview/index.md): The memory system I share with my AI assistant: the files are the only truth, routing decides what to look at first, indexes only nominate candidates, and every answer is read back from the files. - [Truth layer: one thing per file, and folders are the categories](https://wizerdbache.com/en/notes/md-memory-truth-layer/index.md): How to write memory cards, lesson cards, the project register, and decision logs so that both AI and people can find them again: one home per fact, small cards, append-only. - [Routing layer: what AI reads at the start, and what it reads only when it hits something](https://wizerdbache.com/en/notes/md-memory-routing/index.md): Always-loaded content stays under 73 KB; the rest is read only as needed: the opening summary, rules that load when a file is touched, the lookup tables, and an automatic search when “last time” comes up. - [Indexes and trail search: indexes only nominate, answers come from files](https://wizerdbache.com/en/notes/md-memory-index-search/index.md): Questions take the cheapest route first, and federated search is used only when the trail breaks. Every index can be deleted and rebuilt; SQLite is used only on the side. - [Slide version: the whole AI memory system at a glance](https://wizerdbache.com/en/notes/md-memory-deck/index.md): Thirteen hand-drawn slides, from “why AI forgets” to the four-layer architecture, follow-the-trail search, and SQLite's real role; the details are in four articles in the same series. ## Series: Building a portfolio website yourself - [Building your own portfolio site: what to decide and what order to do it in](https://wizerdbache.com/en/notes/portfolio-site-overview/index.md): An Astro static site on Cloudflare: the overall architecture, what to decide before you start, the order of work, and the costs. - [Buying your own .com domain at Cloudflare](https://wizerdbache.com/en/notes/cloudflare-domain-purchase/index.md): Sold at cost, with renewal and new-registration prices the same, managed in the same dashboard as the site. This article covers everything from preparing your details to clicking Buy. - [Domain setup after purchase: DNSSEC, https, www redirect and AI crawlers](https://wizerdbache.com/en/notes/cloudflare-domain-setup/index.md): On the first day after buying a domain at Cloudflare: put up a placeholder page, force https, redirect www to the main address, with a tested command for each step. - [Portfolio site structure: URLs, home page order, and how to write work pages](https://wizerdbache.com/en/notes/portfolio-site-structure/index.md): Once the URL rules are set, do not change them. Each section of a work page covers one point, with an image that proves it. - [Privacy for a personal site: collect nothing by default, then write a page that says so](https://wizerdbache.com/en/notes/personal-site-privacy/index.md): Where visitor data flows out, how to switch each flow off, and a template for a privacy page whose structure you can copy. - [Should a personal site have analytics? Five options compared](https://wizerdbache.com/en/notes/personal-site-analytics/index.md): From not installing anything to GA4: what each one tells you, whether it needs a cookie banner, the free tiers, and one edge counter that does not record IP addresses. - [Security for a static personal site: where the real risks are](https://wizerdbache.com/en/notes/personal-site-security/index.md): A static website is hard to hack. The real risks are stolen accounts, accidental exposure, URLs leaking through side doors, and an expired domain. - [How to make AI search find your website (GEO)](https://wizerdbache.com/en/notes/personal-site-geo/index.md): Writing the title as the question a reader would ask is the most useful step; the sitemap, share cards and llms.txt are generated automatically by the build. - [Pre-launch checklist for a personal site](https://wizerdbache.com/en/notes/site-prelaunch-checklist/index.md): Go through this before every launch: must-pass items, items that should be in place, things to check by eye, and things to do within a week after launch. - [Having an AI assistant build your portfolio site: six-part prompts](https://wizerdbache.com/en/notes/site-building-ai-prompts/index.md): From the under-construction page through launch, hand the AI assistant one section at a time, and check each result yourself before moving on. ## Series: I have a self-growing agent: how did it grow up? - [From a seed: my AI assistant Qizhe, and a starter seed kit for newcomers to agents](https://wizerdbache.com/en/notes/self-growing-agent-seed/index.md): Qizhe is the AI assistant I work with every day. From its first save in July 2026 until now, it has grown more than forty rule files, over thirty skills, and more than two hundred entries in its lessons log. Most of these were not designed at the start; they grew out of one mistake and one ruling after another. This series looks at how it grew up. The first post gives you a seed: a plain-text set of starter rules that you can have your agent install with a single sentence. ## Series: After launch: site security in practice - [Ask what attackers want first: test the site before hardening it](https://wizerdbache.com/en/notes/site-security-what-attackers-want/index.md): Attackers usually want not your web pages but your keys and login sessions. This post starts from a game-launcher trojan and a post about a cloud bill that spiked, and explains how I first hit my own site with the paths a scanner would try, looked up DNS and accounts, and only then decided what to fix. - [Does switching to Google sign-in already mean two-step verification?](https://wizerdbache.com/en/notes/site-security-google-login-2fa/index.md): Switching the console to Google sign-in is the right direction, but it only hands the job of proving who you are to Google. To be truly secure, you still need to check the Google account itself, the old password login, the console's own two-step verification, and backup codes. This post is my record of completing these for my Cloudflare, GitHub and Google accounts, with step-by-step instructions on where to click, and it ends with a prompt you can paste into an AI to check your setup. - [A domain that doesn't send mail should say so too: SPF, DMARC, and null MX](https://wizerdbache.com/en/notes/site-security-domain-email-spoofing/index.md): A domain that isn't used for email is the easiest to abuse for sending phishing under its name. Three DNS records can declare that the domain neither sends nor receives mail, giving receiving servers a basis for rejecting forged messages. This post covers why, which three records to set, how to add them in Cloudflare, and how to verify them. - [Three gates at the website edge: blocking scan paths, limiting password attempts, and adding headers](https://wizerdbache.com/en/notes/site-security-edge-rules/index.md): Using one firewall rule on Cloudflare's free plan to block scans for .env and .git, one rate-limiting rule to block brute-force password guessing, and then adding HSTS and anti-embedding headers. Each item comes with console steps, and each has a control check: what should be blocked is blocked, and normal requests are not blocked by mistake. - [Recoverable and visible: restore drills and checking what the firewall blocked](https://wizerdbache.com/en/notes/site-security-restore-and-watch/index.md): Locking the door leaves two more things: whether you can recover when something goes wrong, and whether anyone is knocking. Rebuilding from GitHub from scratch showed me that files deliberately kept out of git were missing from the backup; looking back at firewall events showed me the rules really were doing their job. Includes step-by-step instructions for a restore drill and for reviewing events. - [Keep the protections from silently failing: one checklist plus periodic re-checks](https://wizerdbache.com/en/notes/site-security-keep-it-checked/index.md): Setting up protections once isn't hard; the hard part is whether they are still there three months later. I wrote a baseline of protections for each type of public asset, use a script to re-check from the outside, record the date of each manual check, and flag any that have gone stale. Includes a prompt you can give an AI to build the same checklist. - [Two moves only dynamic sites need: checking against the server’s own time, and leaving the original data alone](https://wizerdbache.com/en/notes/site-security-dynamic-site-ideas/index.md): A site that quotes prices, takes orders or has a database carries two extra risks: someone may submit an order with stale or edited prices, and queries may hit the original data directly. This post starts from two directions raised in a friends’ group chat and adds implementation steps based on OWASP’s recommendations: prices and times are decided by the server, the original data is kept as a separate copy, and queries touch only the copy. ## Series: Replacing a large system without downtime: the Strangler Fig pattern - [Replacing a large system without downtime: why not rewrite it all, and what is the Strangler Fig pattern](https://wizerdbache.com/en/notes/strangler-fig-overview/index.md): When a large system is too hard to change yet has to be replaced, a full rewrite is often the worst choice. The Strangler Fig pattern grows the new system along the edges of the old one, taking over piece by piece until nobody uses the old system. - [Strangler Fig pattern (2): Seams, and where to cut the old system open](https://wizerdbache.com/en/notes/strangler-fig-seams/index.md): Incremental replacement depends on having places in the system where it can be cut. Seams can sit at the network entry point, in messaging, in front-end pages, in the database, inside the code, or even in people. Each layer has its own approach and cost. - [Strangler Fig pattern (3): Coexistence of old and new: anti-corruption layer, transitional architecture, branch by abstraction, parallel change](https://wizerdbache.com/en/notes/strangler-fig-coexistence/index.md): During a migration the old and new systems must run side by side. Four components keep that in-between state workable. They differ only in where the seam sits, and each one needs its removal timing worked out. - [Strangler Fig pattern (4): Cutover and verification: leaving the step that cannot be undone to the end](https://wizerdbache.com/en/notes/strangler-fig-cutover/index.md): Do reversible steps first, and do more of them; do the irreversible step alone and last. Before cutting over, prove that the old and new systems do the same thing: a dark launch, reconciliation, or running the same test suite against both are all ways to do it. - [Strangler Fig pattern (5): Pitfalls and situations where it is not suitable](https://wizerdbache.com/en/notes/strangler-fig-pitfalls/index.md): The most common pitfall is requiring the new system to be identical to the old one; next come scaffolding that never gets removed, replacing the technology without changing how the work is done, unseen downstream dependencies, and a pace that is too slow. When a system is small or cannot be cut open, this pattern may not be suitable. - [Strangler Fig pattern (6): What academia says: evidence, gaps and a checklist](https://wizerdbache.com/en/notes/strangler-fig-evidence/index.md): Academic precursors go back to a 1995 book on gateway-based incremental migration, but direct empirical research on the Strangler Fig pattern is scarce, and I found no study comparing incremental migration with rewriting. The article ends with a checklist to use before starting. ## Stories - [After a Claude Code upgrade, do the rules I wrote still hold?](https://wizerdbache.com/en/stories/why-recheck-claude-code-upgrades/index.md): Not necessarily. Both rules and hooks quietly assume how the platform works. When the platform changes, they keep showing as passing, but they may no longer protect you. So after every upgrade, reconcile against the version actually running, and retest only the changes that touch your own rules, using a method with a positive control. - [Why do school systems keep breaking? Are the engineers just bad?](https://wizerdbache.com/en/stories/why-campus-systems-break/index.md): School systems often break down not because the code is bad. They grow in the shape of the school, get amplified by everyone’s reactions, and depend on people you never see, which is why they are hard to change. ## About - [About me](https://wizerdbache.com/en/about/): Who I am, what I'm working on, and how to find me. - [My Own Level Scale](https://wizerdbache.com/en/levels/): Articles on this site that teach how to use AI are each tagged with a level. This page explains what each level means and what it takes to reach it. - [Currently working on](https://wizerdbache.com/en/now/): A few things I have been busy with lately. - [Privacy notice](https://wizerdbache.com/en/privacy/): What this site collects and does not collect, and where it connects to other services. - [Tools I use](https://wizerdbache.com/en/uses/): Computers, software, AI tools, writing and notes. ## Optional - [Running Odoo 20 locally: one pass through buying, selling and manufacturing](https://wizerdbache.com/en/notes/odoo-20-local-flows/index.md): Runs the Odoo 20 Community edition on my own computer from the official Docker image, installs 12 apps with demo data, and then uses odoo shell scripts to check the sales, purchasing and manufacturing flows and the general ledger balance, once each. Includes the commands, script excerpts, measured numbers and the seven pitfalls I ran into. - [Claude Code 2.1.330 → 2.1.332 upgrade test: commands run when a skill loads can now be caught by a hook](https://wizerdbache.com/en/notes/cc-upgrade-2-1-330-to-332/index.md): Reconciled on 2026-11-25: the terminal build has reached 2.1.332, while the Claude Code bundled in desktop app 7.37095.0 is still 2.1.331. The new PreSkillShellCommand hook can block shell commands injected when a skill loads, and MCP servers can now provide skills; but while the two versions are out of sync, hold off on adding the new hook to your settings. - [Claude Code 2.1.325 → 2.1.330 upgrade test: hook “blocks” now count for more](https://wizerdbache.com/en/notes/cc-upgrade-2-1-325-to-330/index.md): Reconciled on 2026-11-21: the terminal build and the Claude Code bundled in the desktop app both reached 2.1.330, and the desktop app itself jumped to a major version starting with 6. These changes are mostly about tighter gatekeeping and steadier compaction: a hook's printed “block” now takes effect in more cases, and auto-compaction rebuilds the system prompt. - [Claude Code 2.1.322 → 2.1.325 upgrade test: this time the desktop app ran ahead of the terminal](https://wizerdbache.com/en/notes/cc-upgrade-2-1-322-to-325/index.md): Reconciled on 2026-11-13 and 11-15: the Claude Code bundled in the desktop app moved to 2.1.325 first, while the terminal was still on 2.1.323. Most of these changes tighten permissions: in a repo that is not the project's own, read-only git commands now ask first, and a schedule that runs a skill now asks first. - [Autocompact capability pack: download, contents, and security notes](https://wizerdbache.com/en/notes/autocompact-pack-download/index.md): I packaged the autocompact handoff mechanism I have run for over two months into a capability pack, available for download here. This note lists what each file in the pack does, what it reads and writes, what it does not do, and how to verify after download that the files have not been altered. - [Claude desktop app 4.23118.1 → 5.1231.0 upgrade test: the Windows data moved to a new location](https://wizerdbache.com/en/notes/cc-upgrade-desktop-4-23118-1-to-5-1231-0/index.md): Reconciled on 2026-11-12: the major version went from 4 to 5, but the Claude Code it bundles did not change. The biggest effect for Windows users is that the data folder moved (except for the Microsoft Store version), so scripts with a hard-coded old path will not find anything. - [Claude Code 2.1.312 → 2.1.318 upgrade test: the terminal and the desktop app are running different versions](https://wizerdbache.com/en/notes/cc-upgrade-2-1-312-to-318/index.md): Reconciled on 2026-11-05: the terminal build moved to 2.1.318, while the Code tab of the desktop app was still running the bundled 2.1.317. Prompts that mods add now arrive in the user's turn, the desktop app started idle compaction, and text printed by a PreCompact hook is read by the summary model. - [Claude Code 2.1.318 → 2.1.319 upgrade test: “not seen” does not mean “not there”](https://wizerdbache.com/en/notes/cc-upgrade-2-1-318-to-319/index.md): Reconciled on 2026-11-07: while I was rerunning the compaction test, the detector said one behavior had disappeared; adding a positive control showed it was still there. PostToolUse hooks now also run on interrupted tool calls, and a Bash rule gap involving quoted commands was fixed, while the desktop app stayed on its old bundled version. - [Claude Code 2.1.319 → 2.1.322 upgrade test: AI-written mods load before you review them](https://wizerdbache.com/en/notes/cc-upgrade-2-1-319-to-322/index.md): Reconciled on 2026-11-10: in auto and bypass modes, mods that Claude writes during a conversation load at the end of that turn, and tool calls a mod makes itself no longer raise permission prompts. The desktop app caught up this time, bundling 2.1.321. - [Having an AI assistant build your portfolio site: six-part prompts](https://wizerdbache.com/en/notes/site-building-ai-prompts/index.md): From the under-construction page through launch, hand the AI assistant one section at a time, and check each result yourself before moving on. - [Pre-launch checklist for a personal site](https://wizerdbache.com/en/notes/site-prelaunch-checklist/index.md): Go through this before every launch: must-pass items, items that should be in place, things to check by eye, and things to do within a week after launch. - [Reading list](https://wizerdbache.com/en/notes/books/): Books I am reading, have finished, and want to read