Claude Templates / C-tier · Discipline

Discipline

The Lab Notes Practice Playbook

How to keep an agent productive across sessions instead of relearning the repo.

LAB-NOTES-PRACTICE-PLAYBOOK.md · 12 sections · 1,579 words · 11 KB · markdown

By Moe Ameen, founder of BILT · Published · Updated

The Lab Notes Practice Playbook is about running a repo's CLAUDE.md so Claude Code stops relearning the project every session. It defines four kinds of knowledge to keep (tooling decisions, known issues, patterns to preserve, lab notes), a strict one-line lab note format of date, what was tried, why it failed and what to do instead, hygiene rules, and the line between CLAUDE.md and auto memory.

Key takeaways

  • Lab note format: date, what was tried, why it failed, what to do instead.
  • Append a note on every failed attempt, not just on success.
  • Claude Code loads CLAUDE.md at the start of every session.
  • Verify a rule before citing it; files drift.

The meta-playbook. How to maintain a CLAUDE.md that stays accurate, when to append a lab note, what belongs in project memory versus the repo, and the debugging rule that stops an agent from iterating the same failed fix three times.

What does the Lab Notes Practice Playbook cover?

It covers the structure of CLAUDE.md, when to add a lab note, what belongs in memory versus the repo, hygiene so the file stays useful, and a worked example.

Anthropic's docs say each Claude Code session starts with a fresh context window and that CLAUDE.md and auto memory are both loaded at the start of every conversation.

When should you use it?

Use it continuously, in every session, on every repo where an agent writes code.

Anthropic notes Claude treats these files as context, not enforced configuration. Use hooks for anything that must be blocked no matter what.

What do you need first?

Nothing. It works on any repo, and section 8 covers bootstrapping a CLAUDE.md for a new app.

You need the habit of writing a note the moment a fix fails.

What's inside

What does the playbook give you?

When to use it

Continuously. Every session.

Build these first

Nothing. This one stands alone.

Straight from the file

What does the writing look like?

The CLAUDE.md file at the root of each app repo is the canonical agent-instructions doc. It accumulates four kinds of knowledge that the agent must read before doing anything:

Table of contents

Which sections does the file cover?

  1. 0. What this is
  2. 1. Why it matters
  3. 2. Lab notes format (strict)
  4. 3. When to append a lab note
  5. 4. CLAUDE.md section structure (mirror BKE's)
  6. 5. Hygiene rules
  7. 6. The memory layer (complement, not substitute)
  8. 7. Verify before citing
  9. 8. Bootstrapping CLAUDE.md for a new app
  10. 9. Agent kickoff prompt
  11. 10. Common pitfalls
  12. 11. Worked example

How do you run it?

Drop LAB-NOTES-PRACTICE-PLAYBOOK.md into your repo, then tell Claude Code: “Read LAB-NOTES-PRACTICE-PLAYBOOK.md and implement it in this codebase.” It's written for an agent to execute end to end. Search the file for angle-bracket placeholders and swap in your own project names, domains, and keys before the first run.

↓ Download the playbook

Who is this for, and who should skip it?

Best for

  • Anyone using Claude Code on the same repo across many sessions
  • Projects where the agent keeps repeating a failed fix
  • Solo builders who need a record of past decisions

Not ideal for

  • One-off scripts you won't touch again
  • Teams with a separate decision-record system they prefer
  • Rules that must be enforced (use Claude Code hooks)
  • Builders who won't adapt paths: the file points to a reference app you won't have

What else do people ask?

When should I add a lab note?

The Lab Notes Practice Playbook says to add one whenever a fix fails, after more than 30 minutes of debugging with a non-obvious answer, after reverting a commit, or when a third-party API behaves differently from its docs. Its rule of thumb: if in doubt, write the note.

Should I delete old lab notes once the bug is fixed?

No. The Lab Notes Practice Playbook moves notes that no longer matter to an archive section or a LAB-NOTES-ARCHIVE.md file. When a fix lands, you append a FIXED tail with the date and file path instead of deleting the failure.

How do I set up CLAUDE.md in a brand new repo?

The Lab Notes Practice Playbook says to copy a mature CLAUDE.md, prune notes that don't generalize, update the stack note, architecture pointer and commands, and reset the Lab Notes section to one placeholder line. That file goes in as the repo's very first commit.

Should I write the note while I'm still debugging?

The Lab Notes Practice Playbook says to fix first and append the note before closing the session, since writing mid-loop splits your attention. A note left only in the chat is lost, so the note and the fix should land in the same commit when possible.

What is in the Lab Notes Practice Playbook download?

The Lab Notes Practice Playbook is a markdown file of about 1,600 words. It includes the one-line note format with a real example, a ten-section CLAUDE.md outline, bootstrap steps, a session kickoff prompt and a worked example from a GHL publishing bug, with no SQL or app code.

How do we know this?

This page is based on the playbook file itself, LAB-NOTES-PRACTICE-PLAYBOOK.md, which Moe Ameen wrote from the Kompozy codebase (called BKE in the file). We read the file on November 4, 2026; the facts here come from it, not from independent testing in other codebases. Claims about outside rules cite the sources listed below.

Sources

  1. Claude Code Docs: How Claude remembers your project (accessed November 4, 2026)

More discipline playbooks

← All 28 Claude templates