Example: Slides

Slides is a framework for scientific talks and lecture slides. Each talk is a single web page that runs in any browser, with steps that reveal a slide’s content, formulas, arrows, figures, videos and speaker notes. That makes it a good fit for secdev: an agent writes the talk as plain text, like code, and checks every slide in the browsers of the browser image, all inside the sandbox.

Slides on University GitHub

Example: Thesis Review followed the tex image through an editorial pass over a document. This page follows the browser image, the one with browsers that run without a screen, through work whose result people look at rather than read: talks and lecture slides. The tool is Slides, a small framework for scientific talks. A talk made with Slides is a web page, so you can try one on this page.

Why a talk as a web page suits an agent

An agent works best on plain text that it can check. A presentation file from an office suite is neither: the agent needs extra tools to read it, and it cannot see the slides it has changed. In Slides a talk is one HTML file. Every slide is a <section> element, its text is written as in any web page, and formulas are written in LaTeX notation. The agent edits that file like source code, and Git records each change line by line.

You and the agent can also both watch the talk while it grows. On your own machine, the local server of Slides shows the talk in your browser and reloads it whenever the agent saves the file, so you see each slide take shape as the agent writes it. The agent looks at the same talk from inside the container, in the headless browsers of the browser image that the workflow introduced: it opens the talk, steps through its slides and reads screenshots of them. Both of you therefore see the same slides, and when you point at an element on one, the agent can find it and change it.

Try the demo talk

The demo talk below shows each feature of Slides once: steps, transitions, popups, long derivations that scroll up as they grow, formulas, arrows, diagrams, videos, and a PDF whose pages roll through. Click into the following frame first, so that the talk receives the keyboard, and then use the keys named under it:

The demo talk, live. → or Space: next step; ←: back; o: overview of all slides; f: full screen. The round button at the bottom left opens a menu with every command. Open the demo talk in a new tab

The number at the bottom right of each slide names the current view, a slide at one of its steps: 7.3 is slide 7 at step 3. The web address of the talk carries the same number. Inside the frame above you cannot see that address, but open the demo talk in a tab of its own, with the link under the frame, and the address in the browser’s address bar ends in #7.3 when you are at slide 7, step 3. A link with that ending opens the talk at exactly that view, so you can send someone a single slide. The overview (o) shows the estimated speaking time under every slide and marks which session lengths the talk fits.

A real talk made with Slides

The demo talk above shows the features; a real talk shows what they are for. When intelligence becomes ubiquitous is a talk on agentic AI in research and beyond, with applications and experiences from a physics institute, several of them described on this site. It was built with Slides in the browser image. The speaker set the argument and the structure, the agent drafted slide text, layouts and diagrams, and the speaker revised every slide. The following button opens the talk in a tab of its own:

Open the talk

How a talk is made in the sandbox

A talk is made in the same loop as any other secdev session: the agent works inside the container, and you read the result on your own machine. With Slides, reading means watching the talk in your browser while the agent builds it. Before the first talk there is one thing to know, which the following box states:

The steps below follow the loop for one talk, starting from that clone:

  1. Clone Slides and open it in the sandbox

    Clone the Slides repository, the one behind the button in the box above, on your own machine, copying the address from the repository’s page. Then start the browser image inside the clone, with an agent in its unattended form:

    git clone <address from the repository page> slides
    cd slides
    secdev browser
    clauded
    

    The image already contains what Slides needs: the just command runner, Python for the local server, and Playwright driving Chromium and Firefox. For your next talk, open the same clone again; push your own commits to a repository of yours before you start, since a local commit is not a backup.

  2. Give the agent an outline

    A talk usually starts as an outline: the parts of the talk, the point of each slide, and the figures and references you already have. Write it into a plain text file next to the talks; a list of short points is enough, for example:

    # Bose–Einstein condensates
    1. Motivation: cold atoms, the first condensate
       (Anderson et al., Science 1995)
    2. The ideal Bose gas
       - occupation numbers, critical temperature
       - figure: condensate fraction against temperature
    3. Interactions: the Gross–Pitaevskii equation
    4. Condensates today: quantum simulators
    

    Then hand the outline to the agent, saying who the talk is for and how long it may take:

    Prompt to the agent:

    Make a talk from notes/bec-outline.md in talks/bec, for second-year students, 30 minutes.

    The more the outline says, the closer the first draft comes to the talk you have in mind. A one-line request without an outline works too, but then the agent chooses the structure.

    The repository ships two skills, written procedures the agent follows: one for writing talks and one for changing the design. Before the agent starts, it reads the skill for writing talks, whose workflow begins:

  3. Watch the talk in your own browser

    On your own machine, start the local server in the same directory. It needs Python 3 and the command runner just. The container has both, but your own machine may lack just: install it with your system’s package manager or from its project page, or start the server without it:

    just serve
    # or, without just:
    python3 tools/serve.py
    

    Open the address it prints. The talk reloads by itself whenever the agent saves the file, so you see each slide as it is built.

  4. Work through the talk slide by slide

    The first draft is a starting point. From there you work through the talk slide by slide, together with the agent: you look at a slide in your browser, say what should change, watch the agent change it, and move on to the next slide.

    Some changes are easier to make than to describe, such as nudging a figure a little or making a box narrower. For those, press e in the talk to switch on edit mode. Every slide is then shown complete, with all its steps, and you drag an element to move it, or pull its edge to change its width. Slides writes the new position or width into the talk’s file at once, the same file the agent works on, so the agent sees your change the next time it reads the talk.

    Edit mode also labels every element, such as 7-3 for slide 7, element 3. For a change that is easier to describe, name the label to the agent:

    Prompt to the agent:

    Make 7-3 shorter, and put the plot on 9 next to the list.

  5. Add what the framework lacks

    When a talk needs something Slides cannot do yet, such as a new kind of diagram box or support for a presenter’s remote control, the agent says so and offers to add it to the framework for every talk. The framework, the design and the talks live in one repository, so the new feature and the talk that needed it arrive in the same commit, and the next talk has the feature from the start. This step is the reason Slides exists in this form, and the following box states the idea behind it:

  6. Present the talk, and publish it if you like

    To present the talk, the local server and a browser are enough: run just serve on the machine you present from, open the talk and press f for full screen.

    To make talks available to everyone, you need web space that you can reach over SSH, and rsync on your own machine. Write its address once into the file local/deploy.env of your clone; from then on just deploy, run on your own machine, uploads your public talks there as a static website:

    # once: where the website goes
    echo 'DEPLOY_TARGET=user@host:www/talks/' > local/deploy.env
    just deploy
    

    New talks are private, and only a talk whose file you mark as public is uploaded. The container holds no key to your web space, so the agent cannot put a talk online; publishing stays your decision.

The loop leaves the judgement of the talk with you. The following box names what the agent and its checks do not cover:

Slides is available to university members on TIK GitHub under AGPL-3.0-or-later.

Feedback

Every heading, paragraph, list item, figure and table on this page now has a short label in the margin, such as sw14. The label lets you point at the exact passage you mean.

A later version may number the page differently, so clicking a label copies it together with the version, as in sw14@70e35cc92aed.

For a correction, a suggestion or a question, paste the copied labels into an email to the address above and add what you would change or want to know.

The labels stay on as you move between pages. Press Labels off in the footer to hide them.