<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kris Russell</title>
    <description>The latest articles on DEV Community by Kris Russell (@kristophermr).</description>
    <link>https://dev.to/kristophermr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4279162%2F2a852190-836e-421e-9ce9-1867b42be9e1.jpg</url>
      <title>DEV Community: Kris Russell</title>
      <link>https://dev.to/kristophermr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kristophermr"/>
    <language>en</language>
    <item>
      <title>How I hand work between Claude Code and Codex on the same codebase</title>
      <dc:creator>Kris Russell</dc:creator>
      <pubDate>Thu, 03 Dec 2026 13:56:12 +0000</pubDate>
      <link>https://dev.to/kristophermr/how-i-hand-work-between-claude-code-and-codex-on-the-same-codebase-25b7</link>
      <guid>https://dev.to/kristophermr/how-i-hand-work-between-claude-code-and-codex-on-the-same-codebase-25b7</guid>
      <description>&lt;p&gt;&lt;em&gt;I build web, desktop and mobile apps with AI coding agents. This is the file layout and the rules that let two different agents, Claude Code and OpenAI's Codex, take turns on one project without losing work or repeating mistakes.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I switch between the two agents on purpose. A fresh agent reviewing the other's work catches things the first one missed, some tasks suit one better than the other, and when one account hits its usage limit the other can carry on. The problem is that neither remembers anything the other did. Every session starts cold, and an agent that starts cold will redo finished work, rerun a script that was meant to run once, or undo a decision it doesn't know was made.&lt;/p&gt;

&lt;p&gt;Three files fix most of that.&lt;/p&gt;

&lt;h2&gt;
  
  
  AGENTS.md: a pointer, not a second rulebook
&lt;/h2&gt;

&lt;p&gt;Codex reads AGENTS.md and Claude Code reads CLAUDE.md. Keeping two full instruction files in sync doesn't work, so AGENTS.md is short. It names the handoff file to read first, says "then follow CLAUDE.md", and repeats only the few hard constraints that must never be missed.&lt;/p&gt;

&lt;h2&gt;
  
  
  CLAUDE.md: standing rules and a dated log
&lt;/h2&gt;

&lt;p&gt;The standing rules are a short list of don'ts: no commits or resets, never print secrets, files that must never be opened, and deploys only as narrow compare-and-swap edits followed by an exact readback. An agent follows an explicit list far more reliably than a long description of the project.&lt;/p&gt;

&lt;p&gt;Above the rules is a running log, newest entry first. Each entry starts with which agent wrote it and when, then the state of the work. The format looks like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;CODEX, Nov 2 ~14:10 PST: release build paused at the owner's request ("stop the build, focus on the website"). Resume from step 3 of the release checklist. Nothing deployed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Three habits make the log useful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Quote the owner when they approve something.&lt;/strong&gt; "Set at the owner's word" plus the exact words lets the next agent tell a decision from a guess.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Say what's paused and how to resume it,&lt;/strong&gt; not only what was done.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Record incidents with the real cause and the guard that was added.&lt;/strong&gt; When a long build filled the disk and nothing could run, the fix wasn't a note saying "watch the disk". The build script now refuses to start below 3 GB free and stops its own run below 1.2 GB.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The handoff file
&lt;/h2&gt;

&lt;p&gt;When one agent stops and the other takes over, the outgoing agent writes a dated file, for example &lt;code&gt;HANDOFF-2026-10-20-opus-to-codex.md&lt;/code&gt;. The date and direction are in the name, so the newest one is obvious and the older ones stay as history. Its sections:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Rules that still apply:&lt;/strong&gt; a pointer to CLAUDE.md, plus the rules that matter for this task.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Done today:&lt;/strong&gt; what changed, and whether each change is compiled, tested, deployed or still uncommitted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test state:&lt;/strong&gt; what passed, what failed, and what was interrupted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open findings, not changed:&lt;/strong&gt; problems the agent noticed and deliberately left alone for the owner to decide.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;About the owner today:&lt;/strong&gt; what they asked for and what they're focused on.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The "not changed" section matters most. It stops the next agent from fixing something the owner hasn't approved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Evidence instead of claims
&lt;/h2&gt;

&lt;p&gt;"Tests pass" in a handoff is a claim. A path to a STATUS.json file with the commands, results and timestamps is evidence. Each larger task writes its own status file in a work folder, and the handoff links to it.&lt;/p&gt;

&lt;p&gt;Two more rules came from mistakes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mark one-time scripts as applied.&lt;/strong&gt; "Do not rerun deliver.py" sits next to every mention of a delivery script that moves files: harmless once, destructive twice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Correct overstatements explicitly.&lt;/strong&gt; If an earlier handoff claimed more than was known, the next one says so in plain words, separating what is known from what was inferred. The next agent inherits the correction, not the original claim.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;Writing a handoff takes the outgoing agent a few minutes. Starting from a one-page handoff costs the incoming agent far less context than rereading a ticket history or the whole repository, and I don't have to re-explain the project at the start of every session.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want to try it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Keep one rulebook, and point the other agent's instruction file at it.&lt;/li&gt;
&lt;li&gt;Write the rules as a short list of don'ts.&lt;/li&gt;
&lt;li&gt;End every session with a dated handoff: what's done, test state, open findings, what not to touch.&lt;/li&gt;
&lt;li&gt;Link evidence files instead of writing "it works".&lt;/li&gt;
&lt;li&gt;Mark one-time scripts as applied.&lt;/li&gt;
&lt;li&gt;Quote the owner whenever they approve something.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;I wrote this with help from an AI assistant.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>programming</category>
      <category>claude</category>
    </item>
    <item>
      <title>Why my voice assistant read "M10, 8.8, 49" — and how I fixed table lookups for spoken questions</title>
      <dc:creator>Kris Russell</dc:creator>
      <pubDate>Wed, 02 Dec 2026 19:33:17 +0000</pubDate>
      <link>https://dev.to/kristophermr/why-my-voice-assistant-read-m10-88-49-and-how-i-fixed-table-lookups-for-spoken-questions-21a1</link>
      <guid>https://dev.to/kristophermr/why-my-voice-assistant-read-m10-88-49-and-how-i-fixed-table-lookups-for-spoken-questions-21a1</guid>
      <description>&lt;p&gt;&lt;em&gt;I built &lt;a href="https://reverbot.ai" rel="noopener noreferrer"&gt;Reverbot&lt;/a&gt;, the iPhone app this is about. This post is about one feature, Job mode, and a retrieval problem anyone building "ask your documents" tools will hit.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Job mode is for work where your hands are busy. You upload your own manuals, SOPs, spec sheets and parts lists, each set in its own workspace. Then, through your earbuds, you ask: "hey job, what's the torque for an M10 grade 8.8 bolt?" The requirement is strict: the exact value from your sheet, or a plain "that isn't in your documents". A plausible guess is worse than no answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What went wrong
&lt;/h2&gt;

&lt;p&gt;The first version did what most retrieval tutorials do. It cut each document into runs of sentences about 400 characters long, found the runs that best matched the question, and gave them to the AI to answer from.&lt;/p&gt;

&lt;p&gt;That works for prose and fails for tables. A torque chart reached the AI as "M10,8.8,49", with the column headings three passages away. Nothing in the text the AI saw said which number was the torque. Size tables, drill charts and parts lists all failed the same way, and those are exactly the documents people look things up in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 1: read the layout, not just the text
&lt;/h2&gt;

&lt;p&gt;A document is now read for its structure before it's cut up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tables:&lt;/strong&gt; every row of a size table, drill chart or parts list becomes its own passage, and it names its columns. A row reads like "Size: M10 · Grade: 8.8 · Torque: 49" instead of three bare values.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prose:&lt;/strong&gt; keeps its heading, so a paragraph about a procedure step still says which procedure it belongs to.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Small tables:&lt;/strong&gt; when the answer sits in a small table, the whole table goes to the AI with its header, not just the one row.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Fix 2: match words the way people say them
&lt;/h2&gt;

&lt;p&gt;Nobody says "M10" out loud. They say "M ten", "three eighths", "quarter twenty" or "newton metres", and that's what speech recognition hears. The matcher converts between spoken and written forms, so a size said in words still finds the row written in digits. Numbers, sizes and part numbers count for more than other words when ranking passages: in a reference question, they're the part that has to match.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 3: search on the phone, then answer only from what was found
&lt;/h2&gt;

&lt;p&gt;The search runs entirely on the phone, with no network call: keyword matching plus an on-device English sentence model for meaning. Other languages are matched by their words. The best passages go to the AI with the question, and the answer names the document it came from. If nothing relevant is found, it says so instead of answering from general knowledge.&lt;/p&gt;

&lt;p&gt;An obvious reference question, one that carries a number, size, code or unit, or that matches a passage strongly, goes straight to the documents without an extra AI step to decide what kind of question it is. That saves a round trip when someone is waiting with a wrench in their hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 4: follow-ups
&lt;/h2&gt;

&lt;p&gt;After "what's the torque for M10?", the next question is often just "and M12?". On its own that matches almost nothing. So a follow-up is searched together with the question before it, and the AI sees both.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell anyone building the same thing
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Test with the documents people actually look things up in:&lt;/strong&gt; tables, charts and parts lists, not just paragraphs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep column names with every row.&lt;/strong&gt; A number without its header is useless to the model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Match the spoken form,&lt;/strong&gt; not just the written one, if the questions arrive by voice.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Weight the tokens that must match exactly.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Make "it isn't in your documents" a normal answer.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://apps.apple.com/app/id6804459406" rel="noopener noreferrer"&gt;Reverbot is on the App Store&lt;/a&gt; for iPhone, and Job mode is turned on in Settings.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written with help from an AI assistant.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>ios</category>
      <category>rag</category>
      <category>voice</category>
    </item>
  </channel>
</rss>
