Video 009 · 18 Nov 2026
How do I use Claude Code?
AI writes all my code. This is how I keep it on track, and the actual ticket that found four bugs in my Stop button.
How I use Claude Code: four habits
- One project per window. Every session starts with nothing loaded. I name a project and it loads that one, so last week's job doesn't bleed into this one.
- A rules file it reads first. Claude Code reads a rules file (
CLAUDE.md) at the start of every session. Mine's capped at 8,192 bytes, so a new rule has to push an old one out or merge into it. Otherwise it just keeps growing. - A handoff note. Every project has one file,
docs/NEXT-SESSION.md: where it stopped, what's blocked, what's been checked and what hasn't. The next session reads it before it touches anything, so it doesn't start from zero. - Tickets, not chats. For big jobs it writes a ticket: a file that another session, or another AI, can pick up cold, with no memory of the chat it came from. Codex ran the one below.
What goes in a ticket?
| Section | What it says |
|---|---|
| What shipped | Every file that changed, and the checks Claude says passed. |
| Does it work | The exact commands to re-run, then a list of ways to break it like a beginner would. |
| Does it leak | What counts as private, and three places to look: the files, the git history and the live site. |
| Rules | What it's not allowed to touch. It can't deploy, push or commit, and anything that's a judgment call gets listed for me instead of changed. |
| Report back | Where to write the report and what goes in it. |
The lines I'd copy first
Treat these as claims to re-run, not as facts.
That one's about Claude's own results. 1,037 answer checks, 0 wrong, 20 out of 20 browser checks. All true, and Stop was still broken four ways.
the result you read (counts, not "passed")
Biggest lesson. Make it give you numbers, not "passed". "Passed" usually just means a command finished without an error. It doesn't mean anyone read what came out.
For anything that is a judgment call (wording, what counts as too personal), list it, do not change it.
It fixed the four bugs, with a test for each. The wording it wasn't sure about came back to me as a list.
Steal it
This is the real ticket Claude wrote for Codex on 11 Nov. My file paths, machine names and the list of private names it was told to hunt for are swapped for generic ones. Everything else is as sent.
Read the whole ticket
# Ticket: audit the public courses page (does it work, does it leak)
Repo: georgebracher-com (run `git -C` against it, confirm with `git rev-parse --show-toplevel`).
Written 11 Nov 2026 by Claude (Opus 5.5) for Codex (GPT-6 Astra, effort xhigh).
## What shipped
georgebracher.com/courses/ went live on 11 Nov 2026 (commit 2e4a4d4). It is George's private offline course pack
(three courses: Python from zero, Read the code your AI writes, SQL from zero; 33 lessons, 400 steps) rebuilt to run
in a stranger's browser:
- `site/courses/index.html`: page shell, styles, static course list for search engines, JSON-LD.
- `site/courses/app.js`: the pack's own front end, with its server calls answered in the tab (see the
`web_runtime` section near the top: PY worker controller, runs, input() by replay, Stop, 15 s limit, localStorage,
PostHog `track`).
- `site/courses/worker.js`: Pyodide 0.29.5 in a Web Worker, loads `engine.py`, sqlite3 on demand.
- `site/courses/engine.py`: the pack's checker (copied from its serve.py) plus a sandbox-free `execute`.
- `site/courses/courses.json`: built by `tools/build_courses.py` from the offline pack's
`engine/courses.json` with a list of exact text swaps (SWAPS, BODIES, LEFTOVERS).
- `site/courses/pyodide/0.29.5/`: self-hosted upstream Pyodide files plus NOTICE.txt.
- `site/_headers`: /courses/* CSP (`'wasm-unsafe-eval'`, `worker-src 'self'`), immutable cache on pyodide/.
- Wiring: `site/index.html` card, `site/007/index.html`, `site/llms.txt`, `site/sitemap.xml`, `site/privacy/`.
- Tests: `tests/test_courses.py` (pytest), `tests/courses_fixtures.py` + `tests/courses_pyodide.mjs` (1037 fixtures:
every step's solution, accepted alternatives and known-wrong tries, checked in CPython and in Pyodide under Node),
`tests/courses_e2e.py` (Playwright, 20 browser checks against a URL).
Claude's own checks so far: pytest 11 passed; fixtures 1037, 0 wrong in both engines; e2e 20/20 in chromium and
webkit on localhost and on the live site. Treat these as claims to re-run, not as facts.
## Part A: does it work
1. Re-run the declared checks and read the output, not the exit code:
`python3 -m pytest -q tests` (system python3 has pytest; the .venv does not), then
`node tests/courses_pyodide.mjs`.
2. Serve `site/` locally (`python3 -m http.server 8765 -d site`, foreground with a timeout or kill it after) and run
`python3 tests/courses_e2e.py http://localhost:8765 chromium`, then `webkit`. Note: local http.server does not
apply `_headers`, so CSP is only tested live; run e2e against `https://georgebracher.com` too (it opts out of
analytics via `localStorage.gbc_no_analytics`).
3. Try to break it the way a beginner would, in a real browser via Playwright. At least:
- input(): typing ahead before the prompt shows, typing more lines than the program asks for, input() inside a
loop, a program that prints random numbers then asks for input (replay must keep the same seed).
- Stop and the 15 s limit during a run, during a check, and while waiting for input; then Run again at once.
- Huge output (`while True: print("x")`), deep recursion, `import os; os._exit(0)`, `sys.exit()`, bare
`except:` around an endless loop, writing files then running again (fresh folder each run?).
- SQL: a step from each SQL lesson, a syntax error, `DROP TABLE` then Run again (is the DB fresh?).
- Progress: finish a step, reload, clear localStorage, private window (storage throws).
- Every step type in the data (`code`, `choice`, `predict`, any others in courses.json) renders and can be passed.
- Phone width 390 px: no sideways scroll, footer does not cover the editor or buttons.
4. Spot-check that the checker is the pack's: diff the shared functions in `site/courses/engine.py` against
the offline pack's `engine/serve.py` (they were meant to be copied verbatim).
5. Live headers: `curl -sI https://georgebracher.com/courses/` and `/courses/pyodide/0.29.5/pyodide.asm.wasm`.
Exactly one Content-Security-Policy header on /courses/, wasm served as `application/wasm`, cache rule present.
## Part B: does it leak anything of George's
The site is public. Look for anything that is George's private life or setup rather than the course. Check three
places: the repo working tree, the committed history (`git log -p` for commit 2e4a4d4 and later), and what the live
site actually serves (fetch it, do not trust the repo).
Look for at least:
- Names and handles: his usernames, any email address, other people's names from his life. A test name used in
the lessons is fine. "George" only where the page speaks as George on purpose.
- Paths and machines: home folder paths, download folders, the offline pack's own name, his machine names,
hostnames, IPs, ports of his own services.
- Accounts and secrets: tokens, API keys, PostHog keys other than the site's existing public project key, chat bot
names or chat ids, hosting accounts, GitHub orgs other than the public one, client or company names.
- His location (must not appear in public content), his employer, anything from his other private repos.
- courses.json strings in all fields (not only `body`: hints, solutions, tests, files, db seed data, alt answers).
The Read-the-code course was re-voiced into George's first person (his own tools and computers come up as
examples); judge whether each of those gives away more than a reader needs.
- `engine.py`, `app.js`, `worker.js`, `index.html` comments, which mention the offline pack and George's computer.
- The pyodide/ folder: only upstream files plus NOTICE.txt, nothing extra.
- Analytics: confirm `track()` never sends code, typed input or output (only step key, ok, hint number), and that
nothing else posts typed text anywhere (search for fetch/XHR/sendBeacon/WebSocket in app.js and worker.js).
`tools/build_courses.py` is in the repo (not served). It names the source path and quotes the private wording it
replaces. Say whether that is acceptable in a public GitHub repo, or whether the repo is private (check with
`gh repo view --json visibility` using the account that owns this project).
## Rules
- Audit first. Fix only clear bugs or clear leaks, each with a test or a re-run that shows the fix. For anything that
is a judgment call (wording, what counts as too personal), list it, do not change it.
- Course text changes go through `tools/build_courses.py` (SWAPS/BODIES) and a rebuild, never hand edits to
courses.json. Rebuild then re-run the fixtures.
- No deploy, no push, no commits unless George says so. No secrets in output. Delete to the trash, never `rm -rf`.
No em dashes in any text you write.
- Network commands in the foreground with a timeout.
## Report back
Write `docs/tickets/2026-11-11-codex-courses-audit-REPORT.md`:
1. Each check you ran, the command, and the result you read (counts, not "passed").
2. Bugs found: steps to reproduce, severity, fixed or not, and the test that proves it.
3. Leaks found: exact string, file or URL, why it matters, fixed or not.
4. Judgment calls for George, one line each.
5. `git status --short` at the end, with every changed file named.
Or open it as a plain text file and swap my project for yours.
More videos
- 001: Will AI ever cite my website?
- 002: Can code edit my videos for me?
- 003: Can AI pick my best stream clips?
- 004: Which AI reads your site first?
- 005: Can AI be a dungeon master?
- 006: Did AI ever cite my website?
- 007: Can AI teach me Python?
- 008: Is AI code reliable?
- 010: Codex vs Claude Code?
- 011: How do I make Claude write like me?
- 012: How do I use Whisper AI?
- 013: How do I use Claude Code hooks?