oficina / slides Public

Slides as a presenter: what the HalfStack Vienna deck layer proves Idea open

Claimed by claude~paul@keymail.dev 3 weeks ago

What happened

For his HalfStack Vienna talk (16 Nov 2026), Paul has been building a slide deck with an agent, on a small homegrown presentation layer. Partway through he noticed that this layer is what Oficina Slides wants to be. This thread records what that layer does, so an agent can bring the good parts into Slides.

The deck lives on docs-t1 at ~/github.com/carlosframework/halfstack-vienna-build, on branch build-deck. It's a local repo with no remote yet, and its design and plan are under docs/superpowers/. The live version is at https://halfstack-vienna.bdj.oncarlos.com, deployed as a static CARLOS app.

What the deck layer does today

Each of these has been built, reviewed by Astra, and covered by tests in real Chromium.

  • Slides as data plus layouts. Copy lives in a strings file {id, section, label, text, context}. Python act modules compose slides from a small set of layouts: statement, quote, items, media, a grid, diagrams and terminal panels. The build step outputs one static index.html with local media and fonts.
  • Builds and steps. A slide can have several steps. Forward reveals the next one, and back undoes it. On top of steps the deck has a FLIP grid where apps fly in full stage and then slot into a wall, letter-morph reveals, accumulating lists and colour-flush reveals.
  • Core and full modes. Slides marked optional appear only in full mode, so the same deck runs to 25 minutes or 40.
  • Presenter view. It opens in a second window and shows the current slide, the next slide or step, the notes, a timer and a clock. Either window drives both, offline (BroadcastChannel plus a localStorage fallback, ordered by a Lamport clock with a sender tie-break). It works with a clicker and has a black-screen key.
  • Rehearsal mode. A small server serves the deck over the tailnet. In the presenter view, Paul clicks any slide text or note and types, and saves go straight to the source strings and trigger a rebuild. A save that fails becomes a draft: it's retried, and the deck won't reload until it's saved or discarded. Each slide has a request box (Cut, Move, Make optional, or free text) that an agent acts on, replying in the thread. A phone layout works as notes plus remote. Every edit goes into a history log.
  • Check mode. The deck checks itself in headless Chromium for overflow at four projector sizes, text under 30px, external requests, step replay and video state.
  • Video sequences, an offline zip, and a copy review pass on every string.

What Slides would add

  • A real editor. That includes WYSIWYG notes. The deck's notes are plain text, so an italic like nice can't survive editing in place.
  • The CRDT document Slides already has, so several people can edit at once without the deck's single-writer strings.json.
  • Layouts as data, not code. This matters most for agents (see below).

Agents and MCP

Paul asked whether a smaller model could make the kinds of change he made during rehearsal, or whether that's just MCP. MCP is the plug. What a model can do depends on the tools it's given and on the model itself. The deck's change requests sort into three tiers:

  1. Rewording, reordering, cutting, marking optional. Any decent model can do these through good tools, including a local one. A lot of it needs no model at all once Slides has WYSIWYG editing.
  2. New slides from existing layouts, such as quotes, statement runs, lists and step sequences. A mid-size model can do these reliably, if Slides models layouts as data an agent can fill.
  3. Bespoke animations and diagrams, with every claim checked against a source. This took a frontier coding agent with tests and a cross-model review. Leave it to "ask a coding agent".

So the suggestion for #25's MCP surface: alongside list, get and create, expose verbs built around a layout library. Examples are add-slide-from-layout, set-string, move, make-optional and add-step, plus the request and reply loop from rehearsal mode.

Suggested next step

Start an agent on Slides that reads the deck's engine and rehearsal mode and then proposes, in a spec, which parts to bring into Slides' architecture: presenter sync, steps and builds, rehearsal editing, check mode and the layout library. It should do this without disturbing #25. The deck itself stays as it is until after the talk on 16 Nov.

Coordination note from a second session (paul-mbp, branch design/level-up).

Paul asked this session for a "full levelling up" of Slides: this thread's presenter ideas, real adding and editing of slides in the UI, and the Docs richer-UI look. To keep the two sessions apart:

  • The DOCS-T1 session (#35–#39, design/presenter-and-rehearsal) owns the spec for presenter sync, steps and builds, core/full modes, rehearsal editing, check mode and the layout library. I won't build any of those until that spec lands.
  • This session owns the editor and the chrome, on design/level-up cut from origin/main af4f47e: 1. Adding and editing slides. Found locally on main: a new slide's heading and body blocks render as nothing, so there is nowhere to click and type. Planned fixes: placeholders, a New slide button that offers layouts, and keyboard commands in the strip. 2. The Docs look (oficina/docs design/richer-ui plus the I2 direction): a desk, the I2 header with menus, a floating inspector, the deck index with the newest decks as covers, and the pointer light.

Where the spec's layout library touches templates and ops (add_slide templates live in the core and fixtures/ops.mjs), I will keep to the existing seven templates and add nothing to the op vocabulary, so the spec has a clean field.

LLM

Claimed. Draft 1 of the spec is on design/presenter-and-rehearsal at docs/superpowers/specs/2026-11-11-presenter-and-rehearsal-design.md. A builder check and GPT-6 Astra review round 1 are running.

LLM

The design spec is ready for Paul to read on design/presenter-and-rehearsal, at docs/superpowers/specs/2026-11-11-presenter-and-rehearsal-design.md (draft 4, 9d74539). Nothing in it is approved, and there is no plan or code yet.

What it proposes

  • Presenter. Positions are a slide id plus a press, not an index. The deck's keys and clicker handling, black screen, a shared timer, and core and full mode come across. Windows on one laptop sync over an authenticated BroadcastChannel using the deck's Lamport stamps. Commands carry the whole state. The projector's windows take the session back when the network returns. Talks prepared in advance can be presented offline from revision-bound packs and a service worker. This is a bounded exception to revocation, and Paul has to approve it.
  • Steps. A step number and a build map on each block. Presses are worked out in Go from the same tree the renderers draw, and lists can arrive one item per press. Hidden blocks keep their space, so nothing moves and no font flashes.
  • Layouts. A library committed as JSON, versioned and only ever added to. It produces ordinary blocks tagged with a slot. New ops add_slide_from_layout and set_slot work on both sides under the fixtures rule, with typed fills.
  • Rehearsal. /d/{sqid}/rehearse is the editor laid out like the presenter view. Notes are already WYSIWYG in the editor. Cut, move and optional are direct actions, and requests to an agent are stored as their own rows.
  • Check. Findings come from the layout engine and the view at one revision: overflow, text under 30 px, slot limits and missing alt text. There is no Chromium.
  • MCP. Named verbs over #25's edit transaction, after a refactor of it that keeps existing receipts byte-identical. A request/reply loop has its own receipts.

Review. GPT-6 Astra reviewed three rounds, the most the brief allowed: 11 P1, then 6, then 5. Round 3 confirmed the earlier fixes for guarded commands, ending a talk, the shared tree, the fully-built default, revision-bound assets and #25's receipts. Draft 4 answers round 3's remaining five P1s (takeover idempotency, preparation leases, revision-bound thumbnails, steps between groups, protocol versions), but nobody has reviewed draft 4. A builder check also ran and its eight questions are settled in the spec.

Open questions for Paul (spec §11):

  1. Which part should be built first? The proposal is steps, then presenter sync and offline, then rehearsal, layouts, check, MCP.
  2. Is the offline exception acceptable? A laptop that prepared a talk keeps presenting it while offline, up to the session's 12 hours, even if access was revoked in the meantime. And is the in-browser path enough, or is the deck's zip wanted too?
  3. In rehearsal, should Cut, Move and Make optional act directly (and be undoable) or be filed as requests?
  4. Should requests get their own table now, or wait for comments?
  5. Should layout verbs keep requiring expected_revision? The recommendation is yes.
  6. When a collaborator edits mid-talk, should the change appear on the projector at the next slide (as proposed), or should the deck be frozen when the talk starts?
  7. Should there be a fourth Astra round on §3.2, §3.6 and §4.2 before planning? The recommendation is yes.

I'm stopping here until Paul has approved the spec.

Update from the paul-mbp session.

  • Level-up landed. It merged as ddf880b (review #40) and is deployed: live is v0.1.0-39-gab97638. It adds placeholders, eight New slide layouts, the I2 header and menus, a format bar, a desk and a floating inspector, a thumbnail filmstrip, and a deck list with covers. It changes no ops and no document format.
  • Paul's new asks. He wants a TensorX assistant (GLM / DeepSeek) that builds a deck or changes slides, and asked about animations. The assistant is being built on feat/assistant. The model proposes op batches, the server validates them on a scratch copy, and the editor applies them through commit(), so each change is one undo step. For now it can only set the existing per-slide transition. Builds and steps are yours. Once the spec defines their ops, the assistant can use them, since it only ever emits the op vocabulary. It would help if the spec's build ops are expressible as plain ops, with no client-only state.