<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Jay Egger: Tech &amp; AI</title>
    <link>https://jayegger.com/blog/tech/</link>
    <atom:link href="https://jayegger.com/blog/tech/rss.xml" rel="self" type="application/rss+xml" />
    <description>Building things with AI, and what goes wrong when you do.</description>
    <language>en-us</language>
    
    <item>
      <title>How I set up Claude Code to run real work</title>
      <link>https://jayegger.com/blog/claude-code-setup/</link>
      <guid isPermaLink="true">https://jayegger.com/blog/claude-code-setup/</guid>
      <pubDate>Wed, 25 Nov 2026 00:00:00 GMT</pubDate>
      <description>Every AI session starts with no memory. Here&#39;s one real Claude Code session, the Monday after a weekly column I don&#39;t type, and every part of the setup that made it pick up, stay safe and hand off cleanly.</description>
      <content:encoded><![CDATA[<p>Every Sunday afternoon during football season, a column goes up on this site under my name, and I didn't type it. A model writes it from my rankings model's numbers. If it gets a score wrong or calls a coin flip a lock, that's my mistake in public.</p>
<p>What makes that safe isn't the model. It's the Claude Code setup around it: files that remember where every piece of work stopped, rules written as code, cheap agents that check the work, and a routine for ending a session so the next one starts right. The clearest way to show it is to follow one ordinary session from start to finish. This is the one from Monday, Nov. 23, the day after week 13 went up, with the real files.</p>
<div class="glance" role="list" aria-label="The session at a glance">
<div role="listitem"><b>1</b><span>repo holds the whole setup, on both machines</span></div>
<div role="listitem"><b>4</b><span>fixes in one afternoon, each a rule, a check or an edit</span></div>
<div role="listitem"><b>2</b><span>files carry the work between sessions: hub and handover</span></div>
<div role="listitem"><b>3</b><span>helper agents on cheaper models</span></div>
<div role="listitem"><b>52%</b><span>of this site's commits last month came from bots</span></div>
</div>
<figure class="chart">
<ol class="pipeline" aria-label="One session, start to finish">
<li class="gate"><b>/start</b><span>sync every repo, read the hub</span></li>
<li><b>Handover</b><span>where the last session stopped</span></li>
<li><b>Read</b><span>grade the column against the rules</span></li>
<li><b>Fix</b><span>each miss becomes a rule or a check</span></li>
<li class="gate"><b>Hand off</b><span>rewrite the handover, update the hub, push</span></li>
</ol>
<figcaption>The session's shape. Start is a skill I type as a command, and so is Wrap, which runs the hand-off at the end of any session. Everything between them reads from files, not from the model's memory.</figcaption>
</figure>
<h2>/start: the hub says what's due</h2>
<p>Every session begins with <code>/start</code>. It pulls the setup repo, so a fix made on the work laptop is on the home PC too. Started from my projects folder, it also fast-forwards every project that's behind and tells me which ones it couldn't. Then it reads the hub, a single file with one line per open thread across everything I run, grouped into Due, Waiting on me, Ongoing, Next to build and Later. It suggests the most urgent thread, and I pick.</p>
<p>That Monday, the football line said the column needed its weekly read. Picking it pointed the session at the football project's files, starting with the next one.</p>
<h2>The handover says where we stopped</h2>
<p>Each project with open work keeps a handover: where the last session stopped, what's next and why. The model doesn't remember last Sunday, and it doesn't need to. The football handover's next step read: <em>&quot;Sun 11/22, read week 13 against 'From a B+ to an A'; spot-check the Monday reads routine.&quot;</em></p>
<p>&quot;From a B+ to an A&quot; is a section of the column's writing guide. It was added the week before, after I graded week 12 a B+, and it holds the rules that grade produced. So the session knew what to read and what to hold it to before I typed anything.</p>
<h2>What the session was protecting</h2>
<p>The column runs on its own every Sunday, with controls I built in earlier sessions like this one. A script builds the post from the model's numbers and leaves five marked sections for the writing, each holding plain fallback copy that's correct but dull. A scheduled Claude routine writes those sections from a brief of that week's data and nothing else. On Sunday, a second model, with none of the writer's context, reads the draft and flags anything it wouldn't sign. In week 13 it raised 18 flags, and 16 led to fixes. Three of them:</p>
<div class="measure">
<table>
<thead>
<tr>
<th>What the draft said</th>
<th>What the reviewer caught</th>
<th>What it became</th>
</tr>
</thead>
<tbody>
<tr>
<td>&quot;Neither team can run&quot;</td>
<td>Too absolute: one of them has a 1,200-yard rusher</td>
<td>&quot;struggle to run,&quot; with his yards named</td>
</tr>
<tr>
<td>&quot;If he has time, Missouri wins.&quot;</td>
<td>Opinion written as fact, on a 53% game</td>
<td>&quot;If he has time, I like Missouri.&quot;</td>
</tr>
<tr>
<td>&quot;Missouri also has the better pass rusher&quot;</td>
<td>Sack totals measure production, not quality</td>
<td>&quot;the more productive pass rusher&quot;</td>
</tr>
</tbody>
</table>
</div>
<p>Then a checker fails the column unless every claim quotes its source word for word, every number and rank word sits in a cited sentence, and nothing from a list of stock AI phrasing appears. Week 13 cited 76 claims. If nothing approves the draft within 150 minutes, the fallback copy publishes instead. That happened once: on Nov. 8 the writer's run stalled on a permission prompt, and week 11 went out plain but correct. I republished it as a fact-checked column a few days later.</p>
<p>All of that runs without me. The Monday session is where I check whether it worked.</p>
<h2>Grading, then turning the grade into rules</h2>
<p>Claude's read, against the rules in that guide, graded week 13 an A-, up from the B+ I gave week 12. The misses that kept it from an A were small, and each one became something the next column has to pass. The session made four changes: three in the rankings repo, to its writing guide and two checkers, and one edit to the live post:</p>
<div class="measure">
<table>
<thead>
<tr>
<th>What I found</th>
<th>What the session changed</th>
</tr>
</thead>
<tbody>
<tr>
<td>The game of the week had no playoff stakes</td>
<td>The pick now weighs playoff stakes, so the featured game is one that matters</td>
</tr>
<tr>
<td>Sections restated lines the template already prints, and one claim was vague</td>
<td>New rules in the writing guide, and the column checker now warns when a section restates a team's printed number in other words</td>
</tr>
<tr>
<td>8 of 41 team-page reads quoted an exact Vegas rank, which moves most days</td>
<td>A rule to describe the gap in words, a warning in the reads checker, and the 7 affected reads fixed</td>
</tr>
<tr>
<td>One line in the live column oversold the race (&quot;nobody near the top is safe,&quot; with the top two teams 98% and 93% favorites)</td>
<td>Cut from the live post, along with numbers the tables below already print</td>
</tr>
</tbody>
</table>
</div>
<p>Two things about that table matter more than the fixes. The rules live in the project they govern: the writing guide and checkers sit in the rankings repo, not in some general instruction file, so the next writer run reads them. And where it could, a fix went into a check rather than a note. A note asks the model to remember. A check fails the draft if it doesn't.</p>
<p>You can read <a href="/blog/cfb-power-rankings-week-13-2026/">week 13</a> and judge it yourself.</p>
<h2>Guardrails while it works</h2>
<p>Through all of that, a guard hook runs before every command and file edit Claude makes. It's a Python file I've read line by line, kept short on purpose. It blocks the few things that must never happen, like a recursive delete of the projects folder or a hand edit of one repo's generated data. It asks first before a force push, a live write to a production site or a hand edit of a file a bot writes. Everything else it allows silently, so it never becomes noise I click through.</p>
<p>Its newest rule shows how they get there. Claude would sometimes chain a change of folder with another command, and the whole session ended up in the wrong repo without either of us noticing. Now that's blocked, with a message that says what to do instead:</p>
<blockquote>
<p>dotclaude guard: a top-level <code>cd</code> combined with other commands moves the whole session. Use <code>git -C &lt;repo&gt;</code>, absolute paths, or a subshell. To move on purpose, run <code>cd &lt;dir&gt;</code> alone in its own step. <em>(trimmed)</em></p>
</blockquote>
<p>In a different session, while I was building <a href="/blog/ai-content-team/">the post on my editorial system</a>, it stopped that exact move twice. It stopped it once more while I was checking the facts for this one.</p>
<h2>Agents and approvals</h2>
<p>Not every step needs the most capable model. A Haiku agent handles lookups across projects, like &quot;which repos use this&quot; or &quot;where is that configured,&quot; and a Sonnet copy editor reads anything I publish with no stake in the draft. Neither edits files. They report, and the main session decides. On the editorial post, the copy editor caught a prompt count I had wrong and two steps of a script described in reverse order.</p>
<p>Approvals sit where the risk is. A big change starts as a written plan that I approve before anything is touched. When I started this pair of posts, the first plan bundled both together, and I sent it back with one instruction: one post at a time, structure first. Anything public gets the copy editor's read and then mine. Anything live on a production site needs my yes at the moment it runs.</p>
<h2>The hand-off: so the next session starts right</h2>
<p>Before the session moved on, it rewrote the football handover as the current state (not a log, because git is the log), updated the hub line and pushed, so the other machine sees the same picture. That's the job of <code>/wrap</code>, the skill for ending a session: it also reruns each touched repo's check command and pushes every repo the session changed. That afternoon the session was in the middle of other threads, so it did the hand-off for this one directly. The football thread, before and after:</p>
<div class="measure">
<table>
<thead>
<tr>
<th></th>
<th>The football thread's next step</th>
</tr>
</thead>
<tbody>
<tr>
<td>Before</td>
<td>Sun 11/22, read week 13 against &quot;From a B+ to an A&quot;; spot-check the Monday reads routine.</td>
</tr>
<tr>
<td>After</td>
<td>Sun 11/29, read week 14: does the game of the week have playoff stakes? Mon 11/30, confirm the reads dropped exact Vegas ranks.</td>
</tr>
</tbody>
</table>
</div>
<h2>Everything else runs on the same setup</h2>
<p>The football column is one project out of about 18, and every one of them works this way.</p>
<figure class="chart">
<svg viewBox="0 0 400 440" role="img" aria-labelledby="arch-title arch-desc" xmlns="http://www.w3.org/2000/svg" style="width:100%;max-width:520px;height:auto;display:block;margin:0 auto;font-family:system-ui,-apple-system,'Segoe UI',sans-serif">
  <title id="arch-title">How the setup fits together</title>
  <desc id="arch-desc">One setup repo is linked into Claude Code on two machines. Every session reads the hub of open threads and the handover in the repo it works in. The repos hold their own rules and checks. Sessions and three bots both push to this site, which deploys on every push.</desc>
  <defs><marker id="ah" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#4b5563"/></marker></defs>
  <g text-anchor="middle">
    <rect x="90" y="10" width="220" height="56" rx="8" fill="#bf5700"/>
    <text x="200" y="34" font-size="15" font-weight="600" fill="#fff">Setup repo</text>
    <text x="200" y="53" font-size="12" fill="#fff">settings · hooks · skills · agents</text>
    <rect x="10" y="104" width="170" height="50" rx="8" fill="none" stroke="#3caea3" stroke-width="2.5"/>
    <text x="95" y="126" font-size="15" font-weight="600" fill="#0c0f14">Home PC</text>
    <text x="95" y="144" font-size="12" fill="#4b5563">Claude Code</text>
    <rect x="220" y="104" width="170" height="50" rx="8" fill="none" stroke="#3caea3" stroke-width="2.5"/>
    <text x="305" y="126" font-size="15" font-weight="600" fill="#0c0f14">Work laptop</text>
    <text x="305" y="144" font-size="12" fill="#4b5563">Claude Code</text>
    <rect x="10" y="192" width="380" height="50" rx="8" fill="#bf5700" fill-opacity=".12" stroke="#bf5700" stroke-width="2"/>
    <text x="200" y="214" font-size="15" font-weight="600" fill="#0c0f14">Hub of open threads</text>
    <text x="200" y="232" font-size="12" fill="#4b5563">plus a handover file in every repo with work open</text>
    <rect x="10" y="280" width="170" height="56" rx="8" fill="none" stroke="#3caea3" stroke-width="2.5"/>
    <text x="95" y="303" font-size="15" font-weight="600" fill="#0c0f14">The repos</text>
    <text x="95" y="322" font-size="12" fill="#4b5563">rules, checks, memory</text>
    <rect x="220" y="280" width="170" height="56" rx="8" fill="none" stroke="#3caea3" stroke-width="2.5"/>
    <text x="305" y="303" font-size="15" font-weight="600" fill="#0c0f14">Three bots</text>
    <text x="305" y="322" font-size="12" fill="#4b5563">football · NBA · cards</text>
    <rect x="90" y="374" width="220" height="56" rx="8" fill="#0c0f14"/>
    <text x="200" y="398" font-size="15" font-weight="600" fill="#fff">This site</text>
    <text x="200" y="417" font-size="12" fill="#fff">deploys on every push</text>
  </g>
  <g stroke="#4b5563" stroke-width="2" fill="none" marker-end="url(#ah)">
    <line x1="160" y1="66" x2="110" y2="102"/>
    <line x1="240" y1="66" x2="290" y2="102"/>
    <line x1="95" y1="154" x2="95" y2="190"/>
    <line x1="305" y1="154" x2="305" y2="190"/>
    <line x1="95" y1="242" x2="95" y2="278"/>
    <line x1="140" y1="336" x2="170" y2="372"/>
    <line x1="260" y1="336" x2="230" y2="372"/>
  </g>
</svg>
<figcaption>The setup lives in one repo and reaches every machine. The hub and the handovers carry what's open from one session to the next. People and bots both publish to this site.</figcaption>
</figure>
<p>Three of those projects publish to this site on their own: the football rankings every three hours, the <a href="/nba/injuries/">NBA injury report</a> hourly through the day and <a href="/riftbound/radiance-field-report/">a card-game field report</a> twice a day. The NBA report's checker is stricter than the column's, because it's about people's health: every number must be in that team's brief, and a read with medical speculation fails.</p>
<figure class="chart">
<svg viewBox="0 0 400 190" role="img" aria-labelledby="commits-title commits-desc" xmlns="http://www.w3.org/2000/svg" style="width:100%;max-width:560px;height:auto;display:block;margin:0 auto;font-family:system-ui,-apple-system,'Segoe UI',sans-serif">
  <title id="commits-title">Commits to this site, last 30 days</title>
  <desc id="commits-desc">Of 444 commits in the 30 days to Nov. 25, 2026: 212 by me, 110 by the college football bot, 77 by the NBA bot and 45 by the card game bot. Bots made 232, or 52%.</desc>
  <g font-size="13" fill="#0c0f14">
    <text x="0" y="31">Me</text>
    <text x="0" y="73">Football bot</text>
    <text x="0" y="115">NBA bot</text>
    <text x="0" y="157">Card game bot</text>
  </g>
  <rect x="105" y="16" width="236" height="22" rx="4" fill="#3caea3"/>
  <rect x="105" y="58" width="122" height="22" rx="4" fill="#bf5700"/>
  <rect x="105" y="100" width="86" height="22" rx="4" fill="#bf5700"/>
  <rect x="105" y="142" width="50" height="22" rx="4" fill="#bf5700"/>
  <g font-size="13" fill="#0c0f14" font-weight="600">
    <text x="347" y="32">212</text>
    <text x="233" y="74">110</text>
    <text x="197" y="116">77</text>
    <text x="161" y="158">45</text>
  </g>
  <line x1="105" y1="8" x2="105" y2="172" stroke="#4b5563" stroke-opacity=".4"/>
  <text x="105" y="187" font-size="12" fill="#4b5563">232 of 444 commits (52%) came from bots</text>
</svg>
<figcaption>Commits to this site's repo, Oct. 26 to Nov. 25, 2026. "Me" counts everything I committed, by hand or from a Claude session.</figcaption>
</figure>
<h2>AI search work, too</h2>
<p>My day job is search, and more of it now happens inside AI assistants, so this setup runs that work as well. The <a href="/tools/ai-crawler-check/">AI crawler checker</a> on this site shares one file of logic with my audit tooling, so the free tool and a full audit can't disagree. Building it led to <a href="/blog/robots-txt-ai-search/">a study of 2,500 sites' robots.txt files</a>. A monthly check of what five AI assistants say about a brand is described in <a href="/blog/ai-content-team/#ai-assistants">the editorial post</a>. And an MCP endpoint, the standard way assistants connect to outside tools, lets any assistant read this site's live data and run the crawler check; the few tools that change data need a key.</p>
<h2>Where to start</h2>
<p>You don't need all of this. In the order I'd build it:</p>
<ol>
<li><strong>A handover file in each project</strong>, plus a routine to read it at the start of a session and rewrite it at the end. This one change cuts most of the re-explaining at the start of a session.</li>
<li><strong>One guard hook</strong> for the two or three things that must never happen in your setup. Keep it narrow, so it only speaks up when it matters.</li>
<li><strong>A fresh-reader agent</strong> on a cheaper model for anything you publish or send.</li>
<li><strong>A checker for any output that goes public</strong>, even a small one. Start with &quot;every number has a source&quot; and a list of phrases you never want to see.</li>
</ol>
<p>Add the rest when a real failure tells you to. That's how the guard's rules got there, and most of the rest.</p>
<h2>What I'd change next</h2>
<p>Some of this setup is ahead of its evidence, and I'd rather say so.</p>
<p>First, the grader agent exists, but no project has a full set of graded examples yet. The first one planned is the football column: a rubric plus columns I've graded myself, so I can check how often the grader agrees with me before I trust it to grade alone. Until then, I'm still the grader.</p>
<p>Second, the guard is only as good as the cases I've thought of. Every rule in it came after a near miss. There will be a next one, and the fix will be the same: write the rule down as code, with its reason attached.</p>
<p>Third, the hub depends on discipline at the end of a session. When a session ends abruptly, without <code>/wrap</code>, the handover is stale and the next session starts from a wrong picture. A check at session start that flags uncommitted work and repos ahead of their remote catches most of it. It doesn't catch a handover that's simply out of date, and I'd like something that does.</p>
<p>The same approach runs the day job, in a different shape: <a href="/blog/ai-content-team/">how I run a content team with AI doing the legwork</a> covers the editorial side. The full SEO and AI search system, with brand and style rules for each site, a crawler shared across them and the audits built on top, is the next post.</p>
<p><em>How this post was made: Claude drafted it from my notes and the setup's own files. I edited it, and a separate review agent checked its numbers and names against those files. I recounted the commit numbers from git myself.</em></p>
<h2>Common questions</h2>
<p><strong>Do you need to be a software engineer to build this?</strong> No, but it helps to read code. I'm an SEO lead, and I wrote Python for years before Claude Code. Most of the setup is plain-English rules and checklists. The scripts (the guard, the session sync, the checkers) are short. I decide what they do, Claude drafts them, and I review the code before it runs.</p>
<p><strong>Can I copy your setup?</strong> The repo is private, because it's wired to my own projects and accounts. The ideas carry over, though, and the Where to start section lists them in the order I'd build them.</p>
<p><strong>Which models does it use?</strong> The main session runs on Anthropic's top Claude model. Lookups go to a smaller, cheaper model (Haiku), and the copy editor runs on a mid-size one (Sonnet). Matching the model to the job keeps the main session's context small and the routine work cheap.</p>
]]></content:encoded>
    </item>
    
  </channel>
</rss>
