Skip to content

Write-review team example, its design page, and a new home page for the docs site - #87

Draft
Damon6666 wants to merge 3 commits into
DeepLinkNext:mainfrom
Damon6666:example/write-review-team
Draft

Damon6666 wants to merge 3 commits into
DeepLinkNext:mainfrom
Damon6666:example/write-review-team

Conversation

@Damon6666

@Damon6666 Damon6666 commented Dec 3, 2026 •

Copy link
Copy Markdown

Draft for now: not meant to be merged before it has been looked over.

What this adds

examples/agent/write_review: a small team of coding agents that reviews its own work, scheduled by code.

  • One writer implements a change request, one reviewer per check of a checklist reviews the change, and a director decides when to review, when to send the change back and when to stop. The director is a program, not a model. The workers and the director talk through Pulsing actor mailboxes.
  • The change under review is git diff HEAD of the writer's working tree, exported by code. It is never the model's description of its own change.
  • The model is configuration. team.toml names it (passed as codex -m); where it is served is Codex's own setting, so any provider Codex can reach works.
  • A public task (tasks/interval_merge: three defects in a fifteen-line function) with acceptance tests, a model-free dry run, and 33 offline tests that run on real mailboxes with scripted workers.

Docs: a design page (design/write-review-team, English and Chinese), its nav entry, and a row in examples/README.md.

Home page: a new docs/overrides/home.html: what Pulsing is, a replay of a recorded director run over actor mailboxes, how a letter moves through a mailbox, the quickstart, what the project does not promise, two measured runs with what their numbers mean, and an FAQ. Every font, style and script of the page comes from the site itself; the only requests that leave it are the theme's own repository widget in the header, which asks api.github.com for the star count, as on every page of the site. Its fonts are subsets shipped under docs/src/assets/fonts (SIL Open Font License, license texts included), and the replay runs on data embedded in the page, with no model call. The other illustrations are drawn by the page itself (a field of nodes that a pulse sweeps through; dark panels whose scenes loop while they are on screen) and are labelled as schematics; with "reduced motion" on, every scene shows one still frame. The language switch in the header of the home page is one button, with both languages shown and one click to the other; its address is relative to the page, so it does not depend on site_url. .gitattributes now marks *.woff and *.woff2 as binary: without that, the * text eol=lf rule rewrites the font files on commit.

How to try it

cd examples/agent/write_review
python -m write_review run --dry-run --check      # no model, no Codex: about ten seconds
python -m write_review run --check                # with a model
python -m pytest examples/agent/write_review -q   # 33 passed

A build of this branch's docs is online for looking at the home page before building it: https://damon6666.github.io/Pulsing/ (English) and https://damon6666.github.io/Pulsing/zh/ (Chinese). It is served from a branch of my fork, with only site_url changed to that address; it is a preview, not the project's site.

What was verified

  • ruff format and ruff check with the repository's configuration; the 33 tests pass.
  • With a real model (deepseek-v4.1-flash) and a Codex build: two runs on the bundled task, clean in one round both times, acceptance tests 7 passed, in 256 s and 387 s. Two runs are two runs, not a success rate.
  • The docs were built from this branch with the publish workflow's command and compared file by file with the page that was checked in a browser (desktop and mobile, light and dark, Chinese and English). The build was also served under the /Pulsing/ path prefix of the Pages site, and every link, script, style and font of the home page and of the design page resolves.
  • The language button of the home page: on the preview and on the deployed copy, in both directions, at desktop and at phone widths (320 to 440 px).

Not verified

  • A public release of the Codex CLI: only an internal build was at hand. The example needs a Codex that knows mcp_servers.<id>.default_tools_approval_mode (in main), because a one-shot session has nobody to approve a tool call.
  • The send-back path with a real model: both live runs were clean in one round. The offline tests cover it.

Notes for maintainers

  • The old assets/stylesheets/home.css is still loaded site-wide by mkdocs.yml; the new home page does not use it. Left as is.
  • Not changed here: site_url points at the GitHub repository, so the language switcher links to /DeepLink-org/pulsing/zh/, which is 404 on the Pages site.
  • CI does not run the example's tests. They can be added to ci.yml if wanted.

One writer, one reviewer per check of a checklist, and a director that is a
program: when to review, when to send back and when to stop are decided by
code, on Pulsing actor mailboxes. The model only writes the change and the
reviews.

- examples/agent/write_review: the director, the prompts, the checklist, a
  public task with acceptance tests, a model-free dry run and 33 offline tests
- docs: a design page (en/zh) and its nav entry
- the model is configuration: team.toml names it, Codex's own config serves it

What the first runs with a real model changed: the mailbox server is given the
director's import path, because Codex does not pass PYTHONPATH on; a session's
exit code is recorded, not judged, because Codex exits with 1 after a finished
turn that also reported a warning; the mailbox tools run without an approval
prompt, which nobody could answer in a one-shot session; after a reply a worker
gets time to finish its letter before its session is stopped.
A product page with the agent team as the protagonist: what Pulsing is, a
replay of a recorded director run over actor mailboxes, how a letter moves
through a mailbox, two measured runs with what their numbers mean, the
runtime under a short example, a quickstart, what the project does not
promise, and frequently asked questions. English and Chinese.

The page makes no third-party request: its fonts are subsets shipped with
the docs, under the SIL Open Font License (license texts included), and the
replay runs on data embedded in the page, with no model call. The other
illustrations are drawn in the page itself and are marked as schematics.
The theme's language switcher is a dropdown that takes two clicks. On the
home page its place is taken by one button that shows both languages, with
the current one lit, and goes to the other one in a single click. Its
address is relative to the page (the Chinese pages live under zh/), so it
works wherever the site is served, independently of site_url. On a narrow
screen the button shows only the language it switches to. The dropdown is
still there on the other pages, and on this page in a browser without script.

This branch has not been deployed

No deployments
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