oficina / slides Public

Say how the assistant is built in AGENTS.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev e7a62eef9de1f835cc51e3fb9651a9b0305063f8 parent 6822b40
1 file changed, +24 −0
  • AGENTS.md +24 −0

CI passed — run details

diff --git a/AGENTS.md b/AGENTS.md
index cd899a9..a36f7fd 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -122,6 +122,30 @@ seeded on first sign-in — and comes back out as a PDF.
fall back to this app's own held record (`exportFallback`) rather than
404ing while `.pdf` at the same address still works.
+- **The assistant** (`assist.go`, `assist_ops.go`, `assist_prompt.go`,
+ `config_ai.go`, `assist/`, `fixtures/assist.mjs`,
+ `fixtures/assist-panel.mjs`): an Assistant button in the editor's
+ header, present only with `SLIDES_AI=on`. **The model proposes, the
+ editor applies.** `POST /d/{sqid}/assist` sends the request and a
+ compact view of the deck to TensorX (OpenAI-compatible, host pinned,
+ memoria's provider posture), rebuilds what comes back op by op
+ (only the drive vocabulary less the asset ops, only each op's keys,
+ every new id minted here from the model's placeholders, the chosen
+ scope enforced), applies it to a scratch copy through the core
+ (`Ops`, `Check`, `deck.Parse`; never the log), refuses an answer that
+ would empty the deck, gives the model one repair round with the
+ reason, and answers the checked batch. The browser applies it through
+ `commit()`, so it is the person's own change: font-gated, one undo
+ step, saved through the queue, live to everybody. Deck text is
+ untrusted input to the model; the op rebuild and the scratch check
+ are the boundary, not the instructions. Config: `SLIDES_AI` is
+ exactly `on` or unset (anything else refuses boot; a key alone turns
+ nothing on), `SLIDES_TENSORX_API_KEY`, `SLIDES_AI_MODELS`
+ (comma-separated ids, first preselected, default
+ `deepseek/deepseek-v4-flash-0731`), and `SLIDES_AI_DEV_BASE_URL`
+ (another OpenAI-compatible base for a local run; refuses boot
+ outside development). Nothing about a deck is logged.
+
Not built, and don't write around their absence: charts from Sheets,
video and embeds, an MCP adapter, aspect ratios other than 16:9,
comments, and version history. Those are the triggers in spec §9.