Long-term memory for a vibe project's AI assistant comes in three layers — in-session, cross-session, and project memory — with files first, vector search later, and a memory panel users can see, edit, and delete — with a fictional funnel of 1000→720→430→260→190.
VIBEFIX GUIDES
AI Coding Guides
Practical knowledge for tools, deployment, workflows, and building projects.
Git hooks are scripts in .git/hooks that run at commit and push time — exit non-zero and the operation is cancelled. This guide installs pre-commit, commit-msg and pre-push, and measures them: 9 attempts, 4 blocked, 5 allowed. Includes two real bugs found while testing: git diff --check --quiet and compileall without -f.
A context manager is the promise set up on entry, clean up on exit. This guide builds a Timer with __enter__/__exit__, explains why __exit__ returning True swallows exceptions, rewrites it with contextlib, and proves the point with a lock: 20000 increments with the lock, 5004 without. Standard library only, Python 3.12.3.
AI changes code fast, but Git is what brings it back when a change goes wrong. Using a fictional bookshop ledger as the demo, this guide runs through branching, rebasing, merge conflicts, stash and cherry-pick one by one — every command and terminal output verified on Git 2.43.0.
Python ships with a big toolbox — no pip install needed. This guide tours the ten most useful standard-library groups: paths, counting, looping, dates, JSON, regex, statistics, command-line tools, dataclasses and networking. Every example was actually run on Python 3.12.3, with plain advice on when to use each module and what happens if you don't.
AI writes code fast, but only tests tell you whether one change broke something else. This guide starts from zero — installing pytest, writing your first test, reading failure output — then covers parametrize, fixtures, tmp_path, monkeypatch and mocking, finishing with coverage. Every example was actually run on Python 3.12 with pytest 9.2.0.
The order page remembers a customer's theme, font size, and favorite dishes, so the next visit starts where the last one ended — all with localStorage. This guide follows MDN's Using the Web Storage API, localStorage, and Storage references: strings only, the setItem trio, checking first, JSON conversion, no property access, length and key, localStorage vs sessionStorage, the storage event, availability checks, protocols and file:, SecurityError, and private mode.
The search box gets opened many times a day, but few people actually find anything: autocomplete takes the job of guessing the word off the user's hands. Merge popular queries, user history, and the content index; add pinyin initials and one-character typo fixes; mind keyboard and mobile details; debounce, cache, and keep the LLM as a fallback — then iterate on three numbers. The walk-through project, people, and numbers in this guide are fictional.
A regex is not magic: it is a way of describing which strings count as a match. This guide follows MDN's JavaScript regular expressions guide: literals vs the constructor, greedy vs lazy quantifiers, anchors and assertions, groups and backreferences, the eight flags, the lastIndex trap, and a five-category failure breakdown.
An in-browser terminal is not a toy for power users — it is the product's last mile: xterm.js setup, an allowlist with three red lines, three sandbox tiers, reconnect-and-resume, and mobile keyboards, with a fictional funnel of 1000→540→300→170→96.