The updates whose main change is a section of my CLAUDE.md, the rules file every Claude Code session reads when it starts. Newest first.
A baseline list for every new website
A protection I built for one site was missing from six others, and adding it afterwards took six branches and eight reviews. My rules file now lists what every new site gets from its first version, and a session says in its report which item it left out. The first item is a signal that notes when an automation or inspection tool is attached to a visitor's browser.
The problem
I worry about my sites being copied by AI tools that drive a real browser, so one site got a small signal: a page tells its own server when an automation or inspection tool is attached to the browser showing it, and the server keeps a note for me to read. Nobody is blocked by it. Six other sites had been built without it, and adding it afterwards took six branches and eight reviews by the other coding agent. Every review of the first four found something the first build had not taught. On one site the address of a download page carries the buyer's signed link, and the first version would have stored that link with a note.
The solution
My rules file now has a section that lists what every new website gets from its first version. A session that starts a site builds each item in, or says in its report which one it left out and why, and only I add an item. The first item is the signal, with what the ports settled written beside it. A note names the page by its route and never by an address that can carry a token, and the privacy notice says exactly what a note holds and for how long. Who a note names follows what each site has promised its readers, so on one site it names nobody.
How to add it
Add a section to your rules file that lists what every new site gets from its first version, and start it with one thing you have already built and tested on a real site.
The end of ~/.claude/CLAUDE.md (on Windows, %USERPROFILE%\.claude\CLAUDE.md)
## Every new website: the baseline
A list of what every new website gets built in from its first version. When you start a new site, or give a site its first server code or its first public page, build each item in, or say in your report which one you left out and why. Add an item to this list only when I ask for it.
1. <Your first item>. Say what it is in two sentences and what it must never do. Then what goes with it: a sentence in the privacy notice that says exactly what is kept and for how long, a way for me to read what it records, tests that run it, and a review before it goes live. Then the files in an existing project to copy from.
Beside each item, write what putting it on a second site taught you, so the third site starts from the lessons.
If an item records anything about visitors, have it name a page by its route and never by its full address, and have the server keep only what it recognizes.
Let each site's own promises decide who a record names, and say in the privacy notice where a record sits outside a download or a deletion.
Have a test run the script a page carries, and load the page once in a browser with a tool attached before the review.
Detailed notes: A baseline list for every new website
What happened
I worry about my sites being copied by AI tools that drive a real browser. A crawler that says who it is can be turned away before it reaches the site. A tool attached to a person's own browser, in a session that person signed in to, looks like the person. So on 9 November one of my sites got a small signal. A page tells its own server when an automation or inspection tool is attached to the browser showing it, and the server keeps a note for me to read. Nobody is blocked or slowed. A member with the browser's developer tools open looks the same as a tool, so a note is a line on a list for me.
A week later I asked for the same signal on four other sites of mine. They are built in different ways: a shop that sells one download, a members' site that is not open yet, a private beta for invited testers, and a private demonstration behind a sign-in. Each needed its own place for the script, the route that takes the report, the stored notes and the sentence in the privacy notice. One session wrote a brief for each site, and four builders worked at the same time on a cheaper model. The session read every change and reran every test, loaded each page in a browser with a tool attached, and then sent each branch to the other coding agent for its review.
All four reviews found something the first site's build had not taught.
On the shop, the address of a download page carries the buyer's signed link, and the first version sent a page's whole address with a note. The link would have been stored beside it.
On the beta, the privacy page promises testers a download and a deletion of everything kept about them. The notes there name nobody, so they sit outside both, and the page did not say so.
On three of the four, the privacy sentence said "your browser's name" for what is the browser's whole description of itself, with its version and system.
On the demonstration, the signal stays off until I create its database, and the written steps for turning it on would have broken the test suite.
The same evening I asked for two more, a public directory and this site. Their briefs carried what the first four reviews had found, and each of those two reviews came back with one small finding. When I said to turn the signal on, a review of that last step found one more thing: the shop's public page has no privacy line at all, so the signal there would have started keeping notes with nothing on the page saying so.
What changed
My rules file has a new section, a list of what every new website gets from its first version. A session that starts a site, or gives one its first server code or its first public page, builds each item in, or says in its report which one it left out and why. Only I add an item.
The list has one item so far, the signal. What the ports settled is written beside it, so the next site starts from them.
A note names the page by its route, never by an address that can carry a token, and the server keeps only what it recognizes.
Who a note names follows what the site has promised its readers. On the members' site it names the account, behind the sign-in it names the viewer, and on the beta it names nobody. No site keeps a visitor's network address.
The privacy notice says exactly what a note holds, how long it is kept, and where it sits outside a download or a deletion.
A site says what it keeps before it keeps it. Where a live page has no privacy notice, turning the signal on waits for one.
A test runs the script a page carries. Before, the tests only read its text.
Before the review, the page is loaded once in a browser that has a tool attached, and the note it leaves is read back.
The item also names the files to copy from, one set for each kind of site.
What to copy
The section is short, and the first step above has a version with no project names in it. The part to keep is two rules: a session says which item it left out, and only you add one. If sessions could add items, the list would grow with every idea they have. If they could skip one without saying so, I would not know what a new site lacks.
If your first item records anything about visitors, the first four lessons in the list above apply to it, whatever it records.
Still open
Two of the ports went live the same evening, on my word: the private beta and the private demonstration. The shop's public page waits for its privacy line, the members' site is not open yet, and the directory waits on my word. This site has the signal too, and its privacy page says what is kept. The first site's signal has been live since 10 November, and its first month is read on 10 December.
The new ports keep a note only when a tool is attached. They keep no count of ordinary page views, so there I can read how many notes there were and not what share of visits they were.
This entry says what the signal does and leaves out how it does it, because a full description would make it easier to avoid.
17 November: two more went live, each with a notice first
The directory and the shop's page now have the signal. Neither had a privacy notice, so each got one before the signal was turned on.
Writing the directory's notice meant reading what that site keeps, in its code, before writing a word. The reading found two things to fix first. A submitter's email would have been shown on a public page the first time a submission was approved, and the sign-in page said the site stored only an email address when it stored more. No submission had been approved yet, so no address had been shown. The other agent's review then found two more places where the notice said less than the code keeps.
Two drafts also carried a sweeping sentence that turned out to be untrue. The shop's page was going to say the site asks for nothing, and the page has two sign-up boxes. This site's privacy page said nothing else about a visit was kept, and its host keeps a log of requests. Both sentences are gone. The item in my rules file now says to write a notice from a reading of what the site keeps, and to check a "nothing else" claim the same way as any other.
One of my branches went through nine review rounds by the other coding agent, and only the first three changed anything real. A rule in my rules file now has the session sort each finding by whether it happens today, could happen in an ordinary run, or needs an input nothing produces, and fix it by that class. A branch gets three rounds at most, and a fourth is my decision.
The problem
Before some branches land here, the other coding agent reviews them, and my rule sent a branch back for another round after every blocker it found. One branch went nine rounds, every one of them a blocker. The fixes from the first three changed real results: 20 records stopped showing data borrowed from the wrong source. Rounds four to eight raised 14 more blockers on inputs that nothing had ever produced, a measurement after each fix showed that nothing real had changed, and the ninth round's one real finding was a crash that the eighth round's fix had put in. Across all my repositories, 209 of 681 recorded rounds were a third round or later, and their share rose from 8% of the rounds in the week of 5 October to 50% in the week of 2 November.
The solution
A section in my rules file now has the session sort each finding before it fixes anything: observed if a query or a run shows it happening on what exists today, reachable if an ordinary run could produce it or no evidence settles it either way, and constructed if it needs an input or an actor that nothing produces. Where a wrong answer reaches a reader or moves money, observed and reachable findings are fixed before the branch lands, and everywhere else only the observed ones are. A constructed finding is never patched by itself: a serious family of them gets one default that refuses what it does not recognize, and a check that reports the shape the first time it appears. Another round follows only an observed finding whose fix was substantial, and it reads the fix alone. A branch gets three rounds at most, and a fourth is my decision.
Before: every blocker sent the branch back for another round on all of it. A drawn figure, not a screenshot.After: each finding is sorted by how it can happen before anything is fixed. A drawn figure, not a screenshot.
How to add it
Add a section to your rules file that has the session sort every review finding by how it can happen before it fixes one.
The end of ~/.claude/CLAUDE.md (on Windows, %USERPROFILE%\.claude\CLAUDE.md)
## A review finding counts where it can happen
Before fixing anything from a review, sort each finding and write its evidence in one line of the round's record:
- Observed: it happens on what exists today (a row in the data, a caller in the code, a command that reproduces it), shown by a query or a run, never by argument.
- Reachable: nothing today, but an ordinary run could produce it with nobody doing anything unusual. A finding with no evidence either way counts here.
- Constructed: it needs an input no source has produced and no code produces, or an actor who is not there.
The reviewer's severity says how bad a finding would be, not whether it can happen. Where a wrong answer reaches a reader or moves money, fix observed and reachable findings before the branch lands, each with a test. Everywhere else, fix the observed ones and note the rest in the record. Never patch a constructed finding by itself: where the harm would be serious, give its whole family one answer (refuse what is not recognized, and add a check that reports the shape the first time it appears). The same family back a second time is a design question, never a third patch.
Ask for another round only after an observed finding whose fix changed more than the finding's own lines, and have that round read the fix alone. Three rounds at most on a branch. A fourth is my decision: bring me the last round's findings by class, what each fix changed on real data, and a recommendation.
In the review request itself, ask the reviewer how each finding can happen: on what exists today, in an ordinary run, or only with an input someone would have to construct.
Record each round with the count of findings in each class and the evidence for each one, and refuse a record that has findings and no counts.
After a blocker, send the reviewer the fix alone with its earlier reply attached, and ask whether each finding is fixed and whether the fix broke a caller.
Stop a branch at three rounds, and make a fourth your own decision, asked with the findings by class and what each fix changed on real data.
Detailed notes: A review finding counts where it can happen
What happened
Before a branch that could cost money or reach a reader lands in my repositories, the other coding agent reviews it. A script drafts the request, sends it and records the reply, the same script that keeps private files out of a review. Until 6 November my rule was that a blocker meant a fix and then another round.
One branch went nine rounds, and every round came back with a blocker. The fixes from the first three changed real results: 20 records stopped showing data borrowed from the wrong source. Rounds four to eight raised 14 more blockers, each on an input that nothing had ever produced. After each of those fixes the session measured the real data again, and nothing had changed. The ninth round had one real finding, a crash that the eighth round's fix had put in. One of the fixes took about a minute to write, and the round around it took three hours.
Long runs of rounds had become common on other branches as well. Across every repository, 209 of the 681 rounds on record were a third round or later. Such rounds were 8% of the rounds in the week of 5 October and 50% in the week of 2 November.
A session read the nine rounds back and found four things that had kept the loop going. The review request called a finding a blocker by the harm "if it landed" and said nothing about whether it could happen. Every round read the whole branch again with the same standing question, what no test covers. My rule sent another round after every blocker. And each fix added code for the next round to attack.
What changed
A section in my rules file now says that a reviewer's rating tells how bad a finding would be, and that whether it can happen is a separate question the session answers before it fixes anything. It sorts each finding into one of three classes and writes the evidence in a line of the round's record.
An observed finding happens on what exists today, and a query or a run shows it.
Nothing shows a reachable finding today, but an ordinary run could produce it. A finding with no evidence either way counts as reachable.
A constructed finding needs an input or an actor that nothing produces.
Where a wrong answer reaches a reader or moves money, observed and reachable findings are fixed before the branch lands. Everywhere else only the observed ones are. A constructed finding is never patched by itself. When the harm would be serious, its whole family gets one default that refuses what it does not recognize, and a check in the run reports the shape the first time it appears.
Another round follows only an observed finding whose fix was substantial, and that round reads the fix alone. A branch gets three rounds at most. A fourth is my decision, and the session asks for it with the findings sorted by class.
The script that runs the rounds now holds the session to this:
The review request asks the reviewer how each finding can happen.
Recording a round takes the count of findings in each class and is refused without them.
The request after a blocker is drafted on the fix alone, with the reviewer's earlier reply attached.
Sending a fourth round is refused unless the request carries my own words.
What to copy
If a second model reviews your code, ask it how each finding can happen as well as how bad it would be, and sort the findings yourself before you fix one. Put the evidence for each on record: the query, the caller in the code or the run that shows it. Fix what happens today. Let the place decide whether you fix what an ordinary run could produce, and give a family of constructed findings one answer, a default that refuses what it does not recognize. After a fix, have the reviewer read the fix alone. Choose the number of rounds in advance and leave the one after it to a person.
Still open
The session that built the branch sorts the findings on its own work, and the script takes the counts on its word. That is why the evidence for each finding goes on record and anything unproven counts as reachable.
The top model at full effort, kept for the work that needs it
Every session here runs the most capable model at its highest reasoning effort, on a folder listing as much as on a security read. A rule now names the work that something else checks and sends those pieces to a cheaper model at a lower effort. Where a whole task could run cheaper, the session says so and leaves the choice to me.
The problem
Every one of my sessions runs the most capable Claude model at its highest reasoning effort. That is the right setting for a design, a security read or a plan. It is also what a session spent on listing files and running a test suite, where a cheaper model would do. The other coding agent I run already asks me which effort each call should run at. Nothing on the Claude side ever said that a piece of work could run cheaper.
The solution
A rule in my rules file now splits the work in two. Where something other than the model's judgment checks the result, or the recipe is fixed before the work starts, the piece goes to a subagent on a cheaper model at a lower effort, and the session tells me in a line. Where the judgment has no check behind it, the top model at full effort stays. For its own settings, and for a task of its own, the session suggests the cheaper option in one line and leaves the choice to me. Whatever comes back from the cheaper model is checked at full effort before it counts as done.
The moment, 27 October: the session proposes the next batch under an Opus subagent and I agree in the same words. Above the prompt box, the usage banner. Two phrases are blurred.
How to add it
Write down which of your work something else checks, such as a test, a diff or a read-back, and which rests on the model's judgment alone.
Tell the session in your rules file to send the first kind to a subagent on a cheaper model at a lower effort, and to say so in a line instead of asking.
Have it suggest a cheaper model or a lower effort for its own session in one line when a whole task is of that kind, and leave the change to you.
Check what the cheaper model returns before you trust it: run the test, read the diff, sample the summary against its source.
Or take both from github.com/willbchou/cheaper-seat: the section to paste, and the seat-log skill, whose hook logs each cheaper delegation and whose report counts a week of them.
Detailed notes: The top model at full effort, kept for the work that needs it
What happened
My sessions run Claude Fable 5.1 at the highest reasoning effort the desktop app offers. A model at an effort is what I call a seat here, and this is the dearest one. For weeks it was spent on everything alike: a security read and a listing of a folder, a plan and a sweep through a transcript. The other coding agent I run beside it has had the opposite arrangement since early October: every call to it asks me which effort it runs at, so that I manage what each call spends. On the Claude side nobody asked, and nobody said when a cheaper seat would have done.
On 27 October I asked for a rule: a session working on the top model at maximum effort should suggest handing work to a lower effort or to Opus, the model one tier down, where that fits.
What changed
A section in my rules file, which every session reads when it starts. It sorts work by whether something other than the model's judgment checks the result. The pieces that pass go to a subagent on Opus at a lower effort, with a line to me and no question. My own session's seat stays mine to lower, on a suggestion the session makes once. Every result from the cheaper seat is checked at the top one before it counts. The section follows, in the form to paste into your own CLAUDE.md.
The section, to paste at the end of your own CLAUDE.md
The top model at maximum effort suggests the cheaper seat where the work allows it
A session on the most capable model at maximum reasoning effort (a seat being a model at an effort) spends that seat on everything alike unless told otherwise. So, in every session that finds itself on that seat:
Two kinds of work. The cheaper seat fits where something other than the model's judgment checks the result, or the recipe is fixed before the work starts: a search or a read that ends in a summary, log and transcript triage, a test suite or a build run and reported, a bulk edit to a pattern already decided, transcription and scraping to a schema, a data pull whose checker is in code. The top seat stays where the judgment has no checker behind it: a design, a plan, a security read, anything in the review class (where a bug costs money or reaches users), debugging without a reproduction, copy for a reader, another agent's findings read against the code, and the decision of what to delegate.
A bounded piece of the cheaper kind inside a task goes to a subagent on Opus (the model one tier down), said in a line and not asked: a fresh agent with a complete brief (a fork keeps this seat), at medium effort for a read, a triage or a report and at high for a change a test checks; the top effort is no cheaper seat. This rule is the explicit instruction the Agent tool asks for before an effort is set on delegated work. A typed judgment over many items goes to a small typed model first, where one is installed.
The session's own seat, and a task of its own, are the user's to move. When a task, or a long stretch of one, is of the cheaper kind, the session says so in one line, in its first reply or in the question at the end of its turn: the piece, the seat proposed (Opus, or this session at a lower effort), and what will check the result. It works on at the top seat until the user answers, never lowers its own model or effort unasked, and names the model in the brief of a side session it starts for cheaper work. A suggestion declined is not made again for the same piece; one accepted applies to that piece only, and the seat comes back up for the next judgment.
What comes back from the cheaper seat is checked at the top seat before it counts as done, as a side session's note is: the diff read, the test run here, a summary sampled against its source. A result that fails its check is redone at the top seat, and that kind of work is read again before it is sent cheaper.
In an unattended run (a scheduled task) nobody answers: the session carries on at the seat it was given and puts the suggestion in its report.
Why it is a rule in the file
A session's model and effort are mine to set, and I can change them while it runs. A subagent's are set by the session for each call. Claude Code's agent tool takes an effort for a subagent only when the user or a rules file has asked for one, never on the session's own judgment, so the sorting of work and the efforts it allows have to be written where every session reads them. A skill would stay unloaded in the turn that matters, the one in which a session is about to spend the top seat on a listing.
What to copy
Decide which of your work has a check outside the model, such as a test, a diff or a read-back, and which rests on the model's judgment. Write both lists into your CLAUDE.md with the model and the effort you want for the first kind, and have the session say in a line when it uses them. Keep your own session's model and effort yours to change, and have the session put its suggestion in one line where you will read it. Then check what comes back from the cheaper model as you would a colleague's work.
Still open
How much it saves. No count yet says how often the suggestion is made, taken or declined, or what the checks at the top seat catch. The first task under the rule was writing the rule and this entry, and both stayed at the top seat: a rule is a judgment, and an entry is copy for a reader. This entry gets a line when a week of it has run.
28 October: the seat log
The rule had no count behind it. I asked whether a change of model or effort could be logged, and whether I could be told when one happened, so that I would know the rule was working. The transcripts already held the answer: every assistant entry carries the model and the effort it ran at, and every subagent call carries the model and effort it was given. A hook now reads them. At each subagent call it logs the session's seat against the subagent's. At each turn's end it logs a change in the session's own seat since the previous turn, and any sentence in the turn's text or its end-of-turn question that suggests a cheaper seat, found by its wording and logged once per session. It also logs a session moving another session's seat by tool, which the rule forbids unasked. The cheaper events show a notification. A report tallies a window: turns by seat with their tokens, delegations by direction, seat moves, suggestions, and the sessions that ran on more than one seat.
The hook was the first piece of work built under the rule. Its design stayed at the top seat. A subagent on the model one tier down did the build at high effort, said in a line, from a brief that fixed the file, the events, the paths and the tests. Read back at the top seat, it kept all of it and gained one thing: a cap on how much of a transcript the hook reads at a turn's end, since it runs at the end of every turn of every session and some transcripts run to hundreds of megabytes. Its first dry run, read from this session's own transcript, logged that delegation as cheaper. The day's transcripts showed 21 subagent calls, 17 with a model named and 3 with an effort set; in the two days before the rule, none had an effort set.
The section and the hook are on GitHub as github.com/willbchou/cheaper-seat: the section to paste at the end of your CLAUDE.md, and seat-log to copy under your skills folder, with the two hook lines for settings.json in its README.
5 November: nine days of the log
This is the count the entry promised. In nine days my sessions made 49 subagent calls. Of those, 25 named a model and 25 named an effort; in the two days before the rule, none named an effort. The hook was wired on the first of those days and logged 46 of the calls. It read 20 as going to a cheaper seat than the session's own, from 7 sessions: 19 to the model one tier down at medium effort and 1 at high. Of the rest, 25 kept the session's seat and 1 went to a dearer one.
The log also recorded the moves the rule leaves to me. A session's own seat changed 12 times between turns: twice to a cheaper seat, 7 times to a dearer one and 3 times between versions of one model. A session set another session's model or effort by tool 7 times, 6 of them to the top model or the top effort. The log cannot say whether I had asked for those.
The wording match is the weakest part. It logged 28 sentences from 7 sessions. Of those, 8 were end-of-turn questions or their buttons that named the cheaper model, which is the suggestion the rule asks for. Most of the other 20 were a session saying in a line that it had delegated, or reporting that it had, and 2 were this entry's own session describing the hook. I left the patterns as they are, because the log keeps each sentence and marks where it was found, and that tells the kinds apart.
The saving is still open. Responses at the cheaper seat the rule names came to about one in twenty of all responses in those nine days, and the log does not price them or record what the checks at the top seat caught. It also showed a gap in the rule: about two in three responses ran one tier down at the top effort, a seat the rule does not speak to.
Every change to how I run sessions gets a dated entry here
I change how my Claude sessions work every few days, and the record of each change sat in private files written for me. A rule in my rules file now asks for a dated entry on this page once a change has landed, and the list a session walks before it closes asks whether the entry exists. Several sessions write here, so each one reads the entries before it adds one.
The problem
I change how my Claude sessions work every few days, with a new rule, a hook or a skill. Each change was written down where it was made, in files meant for me and my sessions, with private names in them. Nothing told the changes in order, and nothing was fit for another person to read. When I started this page, whether a change got its entry still depended on a session remembering to write one.
The solution
A section in my rules file now says that a change to how sessions are run, kept or checked gets a dated entry on this page once it has landed. The entry is written in the first person for a reader who does not share my setup, with no private names or figures. The list a session walks before it is archived asks whether the change it landed has its entry. Before writing one, a session reads the entries and the open branches, because several sessions write here and one change gets one entry.
How to add it
Choose one place for the log: a page on your site, or a dated file beside your rules file.
Add a section to your rules file that asks for an entry once a change has landed, with the place of your own log where it says my log.
The end of ~/.claude/CLAUDE.md (on Windows, %USERPROFILE%\.claude\CLAUDE.md)
## A log of how I run sessions
A change to how sessions are run, kept or checked (a section in this file, a hook, a skill of that kind) gets a dated entry in my log once it has landed. Write it for a reader who does not share this setup: the problem, what changed, and how to add it. Leave out private names and figures. Before writing one, read the log for an entry on the same change: one change gets one entry, and a later addition is a dated line in it.
Give every entry the same short form: the problem, the solution and the steps to add it.
Add a line to the list your sessions go through before they close, asking whether the change this session landed has its entry.
Detailed notes: Every change to how I run sessions gets a dated entry here
What happened
By late October I had changed how my Claude sessions work more than a dozen times that month. Each change was recorded where it was made: a dated section in my rules file, a note inside a skill, a memory file. Those records are written for me and my sessions. They carry names from my own work, and no one file tells the changes in order.
On 25 October I asked for a running record on this site, with the private parts taken out and the lesson put in general terms, the way I had already rewritten my session rules for a public repository. The page went up that evening with four entries. The same night a short section went into my rules file, so that every later session would know the page exists and what belongs on it.
That night three sessions noticed from that section alone that their own changes had no entry, and one of them asked me about it at its close. The section alone left two gaps: a session that never reread it would close without an entry, and with four sessions writing to one list, the morning overlap count got an entry of its own beside the one-task entry that already covered it.
What changed
The section in my rules file says that a change to how sessions are run, kept or checked gets a dated entry on this page once it has landed. It lists what counts: a section of that file, a hook, a skill of that kind, or a survey made for one. It asks for an entry written for a reader who does not share my setup.
Every entry has the same two layers. It opens with the problem and the solution, three to five plain sentences each, and the steps to add the change to your own setup. The longer notes sit folded underneath, and you are reading them now. The rules for the writing are fixed too: the entry is in the first person, it names nobody from my own work, and it carries no figure from a private store and no money figure. A public author is named when a public work is the subject, and a product is named where the name helps.
On 26 October the entry became an item on the list a session walks before it is archived, the same list that asks about cards nobody has started and side sessions. If the session landed a change of this kind, the list asks whether its entry is on the main branch or on a branch on its way there. A missing entry counts as unfinished work: it is written, handed to a session that has started on it, or let go in my own words. The hook that stops an archive does not count it. That hook fails closed, and a missing piece of writing should not be able to hold a session open.
The same day the notes on writing an entry gained a rule for several writers. Before writing one, a session reads the entries on the main branch and the open branches for one on the same change. One change gets one entry, and a later session adds a dated line to it. A subject that keeps moving is one log: a single entry with a dated section for each day it moved, as the house gate entry is. A test refuses two entries with the same address. It caught one on 28 October, when a session wrote an entry for a change that another session had already written up.
What to copy
Keep a dated log of the changes to your agent setup, and put the rule that asks for an entry into the file every session reads. Keep the form short, so that writing an entry is a small job: the problem, the solution, how to add it. Put the check on whatever list your sessions go through before they close, since every session ends there. If several sessions write to the log, have each one read it first, and let a test refuse a second entry with the same address.
Still open
The check is a line on a list, so it holds only when a session walks the list. The rule itself had no entry until 5 November, when the session that wrote it walked the list at its own close and found this one missing. No script compares an entry with the rule it describes either. When a rule changes later, its entry gets a dated line only if the session that changed it walks the list.
Running a dozen sessions at once, one task ended up with two of them. Nine rules for where a task's questions and reports go, and a morning count in place of an enforcement layer.
The problem
I run a dozen or more sessions at a time. Sessions can start other sessions, offer follow-up work as cards and buttons, and wake each other with notes. One day two sessions ended up working on the same fix, and I answered a question about it in the wrong one. Nothing on the machine knew which session owned the task.
The solution
Nine rules now say who owns a task and where its questions and reports go. The session that first offered a task owns it, a session checks the state before it acts on a card or a button, and reports lead with the task and the owner. A second model read the rules and closed the holes it found. I measured the week's logs before building a lock and found no case a lock would have caught, so a daily count watches for one instead.
Before: two sessions on one fix, and an answer in the wrong one. A drawn figure with made-up labels, not a screenshot.After: one owner, questions sent to it, the answer where the work is. A drawn figure with made-up labels, not a screenshot.
How to add it
Open github.com/willbchou/one-task-one-session and paste its CLAUDE.md at the end of your own ~/.claude/CLAUDE.md (on Windows, %USERPROFILE%\.claude\CLAUDE.md). The same section is in this entry's detailed notes.
On Windows, copy the repository's skills/memory-check folder into ~/.claude/skills and run python memory_check.py selftest there; it should end with 26 of 26 passed.
Git Bash on Windows, in the folder you cloned into
Start a new session once in a while and ask it who owns the task it is about to pick up.
If you run many sessions, keep a daily count of files two sessions edited within a few hours, and build a lock only when the count says so.
Detailed notes: One task, one session: who owns the work
What happened
In the Code tab of the desktop app, a session can start side sessions, propose a new task as a card for me to start, and offer its next step as buttons at the end of a turn. When a side session ends a turn, the session that started it wakes with a note. I run a dozen or more sessions at a time, so a good deal of that goes on at once.
On 24 October one task got two sessions. A side session had found eight holes in a safety check and offered to fix them where it was. Three minutes later the session that had started it proposed a card for the same fix. I accepted both. The second session began after the first had already landed the fix, asked me how far the next fix should go while the first was in the middle of it, and my answer reached the session doing the work only through a note the second one had rewritten. The parent, told to keep an eye on its child, passed on a dozen one-paragraph progress notes along the way.
Nothing on the machine recorded which session owned the task.
What changed
Nine rules went into my personal CLAUDE.md the next day, under the heading "One task, one session". The short form:
One task, one owner: the session that first offered it to me or was given it. A follow-up its work turns up stays with it unless I send it elsewhere.
Check before starting or resuming, from a card or a button too, since both outlive the work they offered. Work already done is said in one line and left alone.
A task's questions come from its owner. A session with a question about another session's task asks that session, not me.
A report between sessions opens with the task, its source, its owner and whether anything is mine to answer, inside the first 400 characters, because a parent sees only that much at first.
Relays only at milestones: when the child needs me, lands, blocks or finishes. Routine progress waits for the next one.
A child is detached only when nothing is needed back from it, since detaching ends every later wake of the parent.
Name and file: a new session's title names its task, and my own titles, pins and groups are never changed.
An answer that lands in the wrong session is forwarded to the owner with my exact words and the question it answered. A bare "yes" is checked with me first.
Nothing left behind at archive: a session is archived only when each request is done, handed to a session I have started, or let go in my own words.
A second model read the draft and found nine gaps, four of them serious: a parent and its child could both claim a task, finding a task could count as owning it, detaching could lose a wake the parent still needed, and a forwarded "yes" could carry the wrong authorization. All nine are folded in. The full section, written for anyone and with nothing from my own setup in it, is here:
The section, to paste at the end of your own CLAUDE.md
One task, one session: where questions and reports go
When many Claude Code sessions run at once in the Claude desktop app, sessions start side sessions, propose cards and wake each other. One task can then end up with two sessions, the user can be asked about it in both, and an answer given in one can miss the session doing the work. So, in every session:
One task, one owner. A task's owner is the session that first offered it to the user or was given it, by the user, by a brief or by a scheduled run (each run its own owner). Ownership survives compaction, a pause, an account switch and a usage limit; a fork, a review, a variant or a delegated subtask owns only the scope its brief names. A follow-up the owner's work turns up stays with the owner unless the user sends it elsewhere or the owner hands it to a new session with a brief. Each scope gets one offer or one card, never both: a session that proposes a card first checks that no linked session has offered or taken the work (its last wrap-up, read with list_events). The user's own choice to run a task in two sessions on purpose (a second opinion, a variant) stands.
It prevents two sessions doing one task, with the user's answers split between them.
Check before starting or resuming, from a card or a wrap-up button included, since both outlive the work they offered. Read the memory notes on the task, the linked-sessions note, the side-session notes and the branch or worktree state. A session the app does not list, such as another coding agent's, has no app record, so a memory note naming it is the record, and no record means unknown, not free. Work already done is said in one line and left; a task another session owns goes back to that owner by message; a conflicting claim or a takeover is settled with the owner, or with the user when the owner cannot answer, before the task counts as moved, and the handoff (scope, state, branch) goes in a memory note on the task. Standing down throws no finding away.
It prevents a stale card or button from redoing finished work, and finding a task from counting as owning it.
A task's questions come from its owner. A session with a question about another session's task sends it to the owner (SendMessage), not to the user. The user's own questions and answers are handled where the user puts them: a session that is not the owner names the task, the owner and the pending question, takes the user's answer, and relays it under rule 8; ownership does not move with it.
It prevents the user being asked about one task in two sessions and answering in the one not doing the work.
A report or a forwarded note starts with the task, its source, its current owner and whether anything is the user's to answer, here or in the owner's session, inside its first 400 characters, since a parent sees only those at first. The parent reads the whole report before acting on the preview and tells quoted context from a fresh request. Most say "nothing to answer".
It prevents a parent acting on a cut-off preview, and quoted context being taken for a new request.
Relays only at milestones. A parent passes on a child's note once, with the child's link, when the child needs the user, lands, blocks or finishes, and folds routine progress into the next milestone. A note that is none of these gets one line at most, no question, and never an offer to take the child's work over. Being asked to monitor a child means that.
It prevents a stream of progress relays, and a parent offering to take over work its child is doing.
"No need to report back" from the user allows detaching the child (detach_session) once its brief is self-contained and the parent needs nothing back, said once to the user: detaching stops every later wake of the parent, completion and blockers included, and ends their joint archiving. A child the parent depends on stays attached, under rule 5.
It prevents wakes nobody needs, and the lost wake of a child whose result or blocker the parent still needed.
Name and file. A new session's title names its task and scope in a few words. A title the user set, a pin and a filing the user chose are never changed. A session that starts another files it in an existing sidebar group that plainly belongs to the task (move_sessions); takeover provenance goes in the brief, not the title.
It prevents sessions the user cannot tell apart or find, and a session undoing the user's titles, pins or groups.
An answer that lands in the wrong session is forwarded to the confirmed owner with the user's exact words, the original question or button and the session it came from; an ambiguous reply ("yes", "do it here") is clarified with the user before it goes. The owner applies it to that decision only after checking the scope is still current; the forwarder says whether it was sent, acknowledged or could not be delivered; a shared note updated on the way is a record, never proof of receipt.
It prevents a lost answer, and a bare "yes" applied to the wrong decision or to one already superseded.
Nothing left behind at archive. A session is archived only when each of its requests is done and checked, handed to a session the user has started, or let go in the user's own words. A card it raised that nobody has started, and a side session the archive would take with it, are pending: the session waits, or the user starts the card, or the child is detached first.
It prevents an archive that takes unfinished work with it: a card nobody started, or a side session not yet done.
These are the defaults for where a task's questions and reports go. They cost a few reads per check and never narrow what a session may do; the user's explicit choice of a session or of parallel work wins over them, and the user's other rules, such as those on worktrees, reviews or shared data, stand beside them.
Why rules and not a lock
The obvious next step is an enforcement layer: a hook that records which session claims a folder or a file and stops the next one. Before building it I had the week's logs read. Across seven days, 356 session lineages and 8,607 file edits, three files had been edited by two different lineages within six hours. Two were a parent handing work to its child, which is the normal flow. The third was my settings file, touched by three sessions that were each wiring a hook. The duplicate that started all this had never touched a file twice, so a claim on files or folders would not have caught it.
So the layer is not built. The same read now runs every morning as a scheduled task and reports one line: how many files two unrelated sessions, or two children of one parent, edited within six hours. One such file in a week, on a code file, gets read and explained to me. Two in a week, or any lost work, is the signal to build the layer, and the saved reports become its test data. The first morning run is tomorrow.
Rule 9 is the one with a hook behind it already. The entry on marked sessions, further down, has it.
What to copy
If you run one session at a time, almost none of this applies. A single terminal session barely has the problem. If you run several in the desktop app, paste the section into your CLAUDE.md. It costs about a thousand words of context in every session, and a skill would not do in its place: the rules have to act in turns that are about something else, such as the moment a session is about to propose a follow-up, and a skill stays unloaded until a task looks like it. Then watch for the shape of the failure: two offers for one task, a question about a task arriving in a session that is not doing it, a parent relaying every turn of its child.
Still open
Whether rules are enough. The morning count decides, and this entry gets a line when it does.
26 October: the rules and the memory check are on GitHub at github.com/willbchou/one-task-one-session, a section to paste and a skill to copy. The block above stays for anyone who wants it here.
A bulk close archived two sessions I had starred and the app's auto-archive swept hundreds more. A star or a pin now protects a session, and nothing is archived with loose ends. The sessions the sweep took came back by a rule: the starred and recent ones two days later, the rest through a weekly review.
The problem
I keep sessions I will come back to, and I mark them with a star or a pin. One night a bulk close archived 58 sessions at once, two of them starred. The same night the app's own auto-archive swept 454 more, because it reads no mark. Two days later a session archived itself with two cards nobody had started.
The solution
A starred or pinned session is now never archived by a session, only by me. Auto-archive stays off. A session is archived only when each of its items is done, handed to a card I have started, or let go in my words. Both rules have a hook behind them on the app's archive tools. The starred and recent sessions the sweep took came back two days later, and a weekly review shows me the rest twenty at a time.
Before: a sweep that reads no mark. A drawn figure with made-up labels, not a screenshot.After: a star or a pin protects a session, and nothing is archived with loose ends. A drawn figure with made-up labels, not a screenshot.
How to add it
Decide what marks a session as yours to keep, and write it where every session reads it.
For your CLAUDE.md, with the marks I use
## Protected sessions
A session is protected when it is pinned in the sidebar or its title begins with a star (*). The pin and the star are mine: a session never pins, stars or unstars one.
- A session never archives or deletes a protected session, alone or in a bulk close, unless I name that session in my own words.
- A bulk close lists what it is about to archive before it acts, names each protected session it leaves out, and leaves out every session it did not start.
- A session is archived only when each of its requests is done and checked, handed to a session I have started, or let go in my own words.
- The app's own auto-archive reads neither mark, so it stays off, and a session never turns it back on.
Check what the app's auto-archive does before you turn it on.
Before a session archives itself, ask it what is pending: cards, side sessions, branches, promises.
If an auto-archive has already swept your sessions, bring back the marked and recent ones first, and look over the rest a few at a time.
Detailed notes: Sessions I mark are never archived by a session
What happened
I mark a session I want to keep with a star at the front of its title, or with the sidebar's pin. On the night of 22 October the app's own auto-archive, switched on that evening and set to two days, swept 454 sessions that had been idle that long, thirty of them starred. It reads no mark and cannot tell a task in progress from a finished one. Minutes later a session told to close finished sessions archived 58 more, two of them starred.
Two days later, while 76 of those were being restored, a session told to tie up its loose ends handed two items to task cards, called itself done and archived itself. Nobody had started the cards, so the work sat behind an archived session until I went looking for it.
What changed
A pinned or starred session is never archived or deleted by a session, alone or in a bulk close, and never renamed so that its star is lost, unless I name that session myself. The marks are mine. A session never adds or removes one.
Auto-archive stays off, since it reads no mark.
A bulk close lists what it is about to archive before it acts and names each protected session it leaves out.
A session is archived only when each of its requests is done and checked, handed to a card I have started, or let go in my own words. A card nobody has started, and a side session the archive would take along, both count as pending.
Both rules have a hook behind them on the app's archive and delete tools. The first asks before a protected session goes. The second stops the call and lists what is pending, and it fails closed: when it cannot read the app's records, no session archives anything until it is fixed. Archiving from the sidebar myself is not a tool call and stays open to me.
What to copy
Decide what marks a session as yours to keep, and write it down where every session reads it. Look at what the app's auto-archive does before turning it on. Before letting a session archive itself, ask it what is pending: cards it raised, side sessions it started, branches not landed, a review not done, a promise in its last message.
24 October: the sessions the sweep took came back by a rule I gave. The starred ones and the ones used recently were restored, 76 in all. Any session I had told to archive inside its own conversation was left out, and archiving a parent counted for the side sessions it had started, so 17 stayed archived. The other 178 go through a weekly review: each Saturday a scheduled task shows me twenty of them, and the session that gets my answer brings back the ones I name and records each answer.
26 October: the first hook now denies instead of asking, as every house gate does (The house gate has why). A protected session is archived from the sidebar, by me.
A four-principle skill from a Karpathy post, read file by file, installed as a pinned house copy with one rewording for unattended runs, and written into CLAUDE.md so it applies without being called.
The problem
Coding agents make the same mistakes: they assume instead of asking, they build more than was asked, they touch code nobody mentioned, and they call work done without a check. Andrej Karpathy wrote a post about this, and a small repository turned it into a skill. I wanted it reviewed before it went in. I also wanted it to apply in every session, not only when I remembered to call it.
The solution
The review read every file at a pinned commit and found it sound. It went in as a house copy, with one change: a session that is unsure reports instead of stalling, because many of my sessions run with nobody there to answer. The same text went into my CLAUDE.md so it applies without being called. A house file records the source and the change.
How to add it
Read the repository at github.com/multica-ai/andrej-karpathy-skills and the post it draws on.
Copy the four principles into your CLAUDE.md, and reword any stop-and-ask if your sessions run unattended.
Git Bash, macOS or Linux: the text at the commit I copied
Write down the commit you copied and your changes next to it.
Detailed notes: Four rules against common coding-agent mistakes
What happened
On 18 October I asked a session to review and install a small repository, multica-ai/andrej-karpathy-skills, which turns a January 2026 post by Andrej Karpathy on the common coding-agent mistakes into a skill for Claude Code. Four principles: think before coding, simplicity first, surgical changes, goal-driven execution. Nine files, prose only, no hooks, no scripts, no servers.
The review read every file at that day's commit. The guideline text had not changed since January; the repository's commits since April change its README, a banner for the author's product, a translation and a Cursor rule. It declares the MIT licence in two files and ships no licence file. The verdict was sound and safe, with one reservation: the quotes it attributes to the post could not be verified, because the post needs a login to read.
What changed
The skill went in as a house copy under the skills folder, through the same checked flow every skill change here takes, and not through the plugin marketplace the README offers. A marketplace install brings the repository's later commits onto the machine outside that flow, and there was nothing to track, since the text is frozen. A house file beside the skill records the source commit and the one change, so an upstream sync can reapply it.
The change is to the first principle. Upstream says that when uncertain you should stop and ask. Here, sessions run on their own between my messages, and several run on a schedule with nobody to answer, so a stop is a stall. The house version names the reading it takes and proceeds, asks only where a wrong reading would be unsafe or would waste the work, and in an unattended run takes the careful reading, says so, and carries the question into its report. Confusion is still surfaced, never hidden. It no longer blocks the work.
The same day the four principles went into my CLAUDE.md as a section of their own, in the same words, because a skill loads only when a task looks like its description or I type its name, and I would not remember to call it. A change to the text is now made in both places, and the sync carries both to the other coding agent.
Why it earns its place
Most of what the principles ask for, the harness and the house rules already enforced: scope kept to what was asked, and a fix's test shown failing when the fix is reverted. The gain is a compact reminder read before any non-trivial coding, against the two habits that cost the most here: the drive-by edit to code nobody asked about, and the overbuilt answer to a small ask.
What to copy
Read the whole repository at a pinned commit before installing a skill, and write down the commit and your changes next to it. If your sessions run unattended, reword any "stop and ask" so that it reports instead of stalling. And put the text where it is always read if you will not remember to call the skill.
Still open
Nothing on this one. An upstream change to the text, should one come, is reapplied by hand with the house file as the guide.
A small model for yes-or-no questions, tested before it is trusted
A typed model that answers a choice, a score or a probability over hundreds of items for cents, installed on 10 October. Where it is used, where it is never used, and the test every step passes first.
The problem
Much of what my sessions do is deciding, not writing: is this search hit the tool it claims to be, does this news story belong in this lane, does this claim match its source. A session reading five hundred items itself is slow and costs what a large model costs. I wanted those narrow questions answered cheaply, and I wanted to know when to trust the answers.
The solution
A plugin brought in a small model that answers only typed questions: a choice from a set, a level on a scale, or a probability. Its first test answered 1,376 identity questions in 47 seconds for under five cents. Both coding agents now reach for it before reading a pile themselves, every step is tested on a locked set before it runs, and every call goes through one client that pins the version, caps the spend and logs the answers. It never touches anything a reader sees and never decides alone.
A narrow question over many items: keep, review, reject, and a person on the review band. A drawn figure with made-up labels, not a screenshot.
How to add it
Find the steps where a session reads many items to answer one narrow question per item, and hand those to a small typed model.
Write each question exactly: the condition, what does not count, and a no-match option.
Test on a set the model never saw before you trust it, and keep a review band where a person reads.
Put every call through one client that pins the version, caps the cost per run and per day, and logs each answer.
Detailed notes: A small model for yes-or-no questions, tested before it is trusted
What happened
Much of what my sessions do is not writing. It is deciding, over hundreds of items at a time, whether each one is the thing we are looking for: is this search hit the tool it claims to be, does this news story belong in this lane, does this claim match its source. A session reading a pile of five hundred listings itself is slow and costs what a large model costs. On 10 October I installed TypeSafe's plugin for a model called Jev, which answers typed questions and nothing else: a choice from a set, a level on a scale, or the probability that a condition holds. It writes nothing.
The first test was the directory's identity check, the question of whether a tool's page is the tool. It answered 1,376 of those questions in 47 seconds for under five cents. The same day a loosely worded question showed the other side: asked whether a story about mornings made "claims about time", it said yes with 94 percent confidence, and scored the story zero once the question said what counts.
What changed
Both coding agents reach for it before reading a pile themselves, when the question about each item is narrow and the answer is a label: filter, classify, score, match two records, check a claim against its evidence. They read what comes back in order, and the rest is kept and sampled, never dropped unseen. It is never used on anything a reader sees, never for counts, dates or arithmetic, and never in place of a code review, a security decision or a publishing control.
Every step is tested before it is trusted: tuned on one set, then confirmed on a locked set it never saw, with controls that should come out the other way, the real hard cases, text with planted instructions, and the options shuffled. The probability it returns informs a workflow that is already allowed; it never grants permission, and it alone never publishes, deletes or decides. A step keeps a review band between accept and reject, where a person reads.
Every call goes through one client. It pins the model version, caps the spend per run and per day across every process on the machine, strips invisible characters, refuses anything that looks like a secret, refuses the deal pipeline's folders outright, checks each answer before use, and logs each call without its text. A findings file records every test, what it scored, and what was adopted, so a new use starts from the record. Two steps are live so far: the directory's identity check, where a held row is read by a person, and the morning news desk's lane gate at a confidence of 0.90, which dropped none of 95 cited results and about six percent of the rest, for about a cent a morning. A question written with a line of description per label reads far better than bare labels: one story's hook came back as "story" at 0.99 with descriptions and as "contrarian" at 0.29 without.
What to copy
Find the steps in your own work where a session reads many items to answer one narrow question per item, and give those to a small typed model. Write the question exactly, with what does not count and a no-match option. Test on a locked set before you trust it, keep a review band, and put every call through one client that pins the version, caps the cost and logs the answers. Decide in advance what may be sent to a third party, and keep secrets and private records out.
Still open
Each new step still earns its place one holdout at a time. The findings file lists the candidates not yet tested.