Skip to content

docs: add "live review surface" recipe (detached server + active watch loop + markdown renderer)#15

Open
samgob wants to merge 1 commit into
paraschopra:mainfrom
samgob:recipe-live-review-surface
Open

docs: add "live review surface" recipe (detached server + active watch loop + markdown renderer)#15
samgob wants to merge 1 commit into
paraschopra:mainfrom
samgob:recipe-live-review-surface

Conversation

@samgob

@samgob samgob commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

What this adds

A new recipe (docs/recipes/live-review-surface.md) with four companion example files (examples/live-review-surface/), covering the two gaps the README already surfaces but leaves as exercises:

  • The detached-server footgun. The server's parent-death watchdog shuts it down ~10 s after any Bash call returns. detach_server.py uses a Unix double-fork so the server's PPID is already 1 before the watchdog first fires — it disables itself at startup and the server survives across comment rounds indefinitely.
  • The persistent watch loop. The README's spin-up steps end at "start monitoring," without prescribing a pattern. The recipe shows the Monitor(persistent=true, ...) call that wakes Claude on every inbox append, plus a graceful degradation note for sessions where Monitor isn't available.

Also included:

  • render.py — a minimal python-markdown-based renderer that converts markdown → GitHub-ish HTML before injection, with cross-page nav and an index builder.
  • overlay.css / overlay.js — optional cosmetic layer that adds numbered left-gutter bars and a floating "Changes (N)" chip when Claude marks edits with [data-cf-change] attributes. Zero dependency on make-pages-interactive internals.

Scope

Purely additive — no changes to any existing file. The four example scripts are contributed under the same MIT license as this repository (noted in each file's docstring and in the recipe's attribution section).

Test

Tested end-to-end on macOS (darwin) with Python 3.11, Claude Code ≥ 1.x. The detached-server pattern verified by checking ps -o ppid= -p $(lsof -ti:5050) returns 1 after launch.

🤖 Generated with Claude Code

…renderer)

Adds a step-by-step recipe that covers the two gaps the README surfaces
but leaves as exercises: the parent-death watchdog footgun when launching
the server from a Bash call, and the persistent inbox watch loop needed to
keep Claude monitoring across multiple comment rounds.

Also includes a markdown→HTML renderer and an optional visual change-bar
overlay, all contributed under the same MIT license.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant