Write in Yellow · branch fitz-hands · 16 Oct 2026

Fitz's Hands

Fitz can now teach by doing. He reads the page, presses any button on it, types into fields and corrects chapter text while the writer watches. In the practice novel he acts freely. In a real book every change waits for her Allow.

31 commits86 files+10,034 / −178local only, not pushed
Safety fix done · Codex approved

Two tabs on different projects no longer collide. A tab still showing one project could have saved into the book another tab had just opened. The server now remembers which project each tab opened and refuses a tab whose project has been replaced, so that tab has to reload first. Each call also stays with the project it began in. Your own saves are protected too, whether or not Fitz is involved.

What the writer sees

The Allow card

In a real book, before any change, Fitz stops and asks. Navigation never asks. Esc means Not now; ⌘ or Ctrl + Enter means Allow. The card never steals the cursor from her.

Fitz wants to change ‘black dog’ → ‘grey dog’ in The Ledger.

AllowNot now⌘↵ · Esc

An outside assistant connected through WebMCP gets the same card, worded “An assistant in your browser wants to…”.

The tools

Ten tools, one rule

Fitz and WebMCP agents share one list of tools. Five already existed and only move around the app. Five are new.

ToolKindWhat it does
ui_get_statereadNow returns a page map: the project, the open file, the chapters, the wiki entries and every visible control, each with a short-lived reference. It never contains manuscript or wiki text.
ui_open_chapternavigationOpens a chapter or entry, optionally at a line.
ui_highlight_textnavigationSelects an exact phrase so he can point at a slip.
ui_pressdependsPresses a control from the map. Moving around is navigation; anything else counts as a change.
ui_typechangeTypes into an ordinary field. Never the manuscript editor.
ui_edit_textchangeReplaces one exact phrase in a chapter, through the editor’s normal undo and save. It reports success only once saved.

Practice novel

Changes run straight away. It is a disposable copy.

Real book

Every change shows the Allow card first. After Allow, everything is checked again before acting.

Writer only

Settings, projects, import and app-wide preferences are always refused, in any book.

Teaching

Ask, or pick a lesson

In the practice novel, the Ask panel shows five lesson chips: Find your way round, Fix a continuity slip, Decide what the wiki learns, Notes and beats, and Ask Fitz well. A chip sends an ordinary visible message. Fitz does one himself, then invites her to do the next and checks her result.

How it was checked

Four stages, each reviewed by Codex

  1. Design

    approved with changes

    Two rounds. Codex caught navigation that would have asked for Allow, references that could collide, and approval that wasn’t tied to the action.

  2. Spec

    findings folded in

    Codex caught an exclusion rule that would have hidden all of Ask, approvals that truncated the change, and a context rule that could leak quotations.

  3. Plan

    findings folded in

    11 tasks and 14 rulings, among them that the card never takes focus and sits inside any open dialog.

  4. Build

    11 tasks, each reviewed

    Codex’s whole-branch review found three blockers. The fix wave cleared two: excerpts leaking into control names, and buttons that saved app-wide preferences. The third is the two-tab collision.

  5. Safety fix

    approved

    Codex's first look found two gaps: a tab that briefly lost its connection was forgotten, and a call already under way could finish in the newly opened book. Both were fixed, each with a test that fails without its fix, and Codex then approved.

Results

What ran

4,302tests passing
0type errors
0lint errors
10tools over WebMCP
Decisions made along the way

Rulings, each cheap to reverse

  1. The page map strips hidden newline and text-direction characters, stricter than the spec.
  2. Fitz may correct a wrong word, number or name in existing text, gated in real books. He still never drafts prose.
  3. In a lesson, either slip can come first; Fitz chooses.
  4. Controls that change app-wide settings (margin tabs, page spacing, the rail pin) belong to the writer. Fitz switches the margin his own way without saving anything.
  5. Buttons are named from structured fields, never from text that could contain chapter or note words.
  6. An approval goes stale if Fitz reads the page again while the card is up. It fails safe.
  7. Test runs used their own ports so the live test server was never touched.
  8. A tab whose project was replaced is refused for reading as well as writing, until it reloads.
Can wait

Smaller items

Next

Your choice

KeepLeave the branch local for now.
Pull requestPush fitz-hands to GitHub for review.
DeployPut it on the foundry demo.