Skip to content

docs: rebuild the README around five tour GIFs of the redesigned workspace - #571

Merged
dovvnloading merged 2 commits into
mainfrom
docs/readme-gif-tour
Nov 23, 2026
Merged

dovvnloading merged 2 commits into
mainfrom
docs/readme-gif-tour

Conversation

@dovvnloading

Copy link
Copy Markdown
Owner

Problem

The README opened with a single 17-second GIF of the whole workflow at 1120 px. Its text was soft, transitions jumped, and nothing explained a feature on its own. It also had no committed way to be recorded again.

Root cause

The previous GIF was a one-off capture: no recording script was committed, and one recording had to carry every feature.

Change

  • README rebuilt around five focused GIFs of the redesigned workspace from Redesign the Cortex workspace around writing, models, and project runs #568, as asked: chat (also the hero), the command palette, models and parameters, approval-gated code, and Agent mode. It adds a short "Why Cortex" list, and keeps the Windows quick start, model-source table, privacy notes and links. Every claim was checked against the code.
  • Reproducible recordings. tools/screenshots/tour.ps1 gives each scene a fresh tour_server.py, drives the built frontend with record_tour.mjs, and encodes with render_tour.py.
    • record_tour.mjs takes a 2× screenshot of each settled UI state and writes a timeline: holds, pointer glides, clicks, keys and captions.
    • render_tour.py replays that timeline at 33 fps where something moves. It draws an eased, curved pointer, a click ripple, keycap chips and a caption bar, downsamples the 2× shots with Lanczos, and encodes with ffmpeg's two-pass palette (one palette per GIF, no dithering) so text stays crisp.
    • Each frame's delay is exact to the centisecond. Two size controls: full-screen cross-fades get at most two in-between frames, and unchanged pixels are not re-encoded.
  • Only the model is scripted. Streamed tokens are released one step at a time. The Agent scene is a real AgentRuns run on a small sample project: real work copy, edit approval, diff review and accept. The approved code task is finished by the real restricted interpreter (run_code_in_worker), and the tour server refuses to finish a task that was not approved.
  • showcase_server.py gives each demo model its own size and context, so a 4B model is no longer labelled 8B. It can also stage only the pending code task.
  • The superseded cortex-demo.gif is removed.
GIF Size Length
tour-chat.gif 0.87 MB 15.6 s
tour-palette.gif 2.41 MB 10.4 s
tour-models.gif 2.03 MB 18.6 s
tour-approval.gif 0.73 MB 10.1 s
tour-agent.gif 4.16 MB 29.5 s

All five are 1600×1064 (10.2 MB together), loop forever, and use 30 ms motion frames.

Compatibility and rollback

Documentation and tooling only. No app code, API, settings or data format changes. stage_execution_tasks and build_showcase_app keep their old defaults, so showcase.ps1 behaves as before, except that demo models now report realistic sizes. Reverting this commit restores the previous README and GIF.

Checks

  • python -m pytest -q tests/test_tour_fixtures.py tests/test_showcase_fixtures.py: 11 passed. The new tests run the scripted Agent tour through real AgentRuns, check that the edit applies exactly once and leaves the original project untouched, check the interpreter's real output (monthly payment: 489.15, total interest: 4349.22), and check that an unapproved task is refused.
  • python -m pytest -q tests/test_repository_documents.py: 22 passed.
  • python -m ruff check tools/screenshots tests/test_tour_fixtures.py: passed.
  • python -m mypy tools/screenshots/tour_server.py tools/screenshots/render_tour.py tools/screenshots/showcase_server.py: no issues.
  • ./tools/screenshots/tour.ps1 recorded and rendered all five GIFs. Every scene was reviewed frame by frame, plus full-size crops for text quality.
  • ./scripts/check.ps1 (quick gates) passed through the pre-push hook before the push; its per-step counts were not kept.
  • Not run locally: ./scripts/check.ps1 -Tier full, the full pytest suite and Playwright. CI runs them.

Security, data loss and concurrency

The tour server listens on loopback only. It writes into temporary folders and an isolated Agent data folder that it removes when it shuts down, and it never touches the user's Cortex data. Only fixture text is recorded: no prompts, tokens or personal data.

Limits

Before merging

  • ./scripts/check.ps1 passes, or the failing step is explained above.
  • Change_Log.md has an entry under [Unreleased] for any user-visible change (or none is needed).
  • If API models changed, python tools/generate_contracts.py --write was run and both generated artifacts were reviewed (or no API model changed).

🤖 Generated with Claude Code

dovvnloading and others added 2 commits November 23, 2026 05:25
tour.ps1 records each README scene against a fresh tour_server.py and
renders it with render_tour.py. The recorder takes a 2x screenshot of
every settled UI state and logs holds, pointer moves, clicks, keys and
captions; the renderer replays that timeline with an eased pointer,
click ripples, keycap chips and a caption bar, and encodes with a
two-pass ffmpeg palette at exact centisecond frame delays.

Only the model is scripted: streamed tokens are released step by step,
the Agent scene is a real AgentRuns run on a sample project, and the
approved code task is finished by the real restricted interpreter,
which refuses a task nobody approved. tests/test_tour_fixtures.py holds
the script to the real code.

The showcase demo models now report their own sizes, and the tray can
be staged with only the pending task.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the single demo GIF with five sharp 1600 px recordings of the
redesigned workspace: chat, the command palette, models and
parameters, approval-gated code and Agent mode. The README gains a
short "Why Cortex" summary and keeps the Windows quick start, model
sources, privacy notes and links.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dovvnloading
dovvnloading merged commit 6a25eb0 into main Nov 23, 2026
16 checks passed
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