Skip to content

Building Decks with Agents

nodemode-ai edited this page Dec 2, 2026 · 1 revision

Building Decks with Agents

formdeck's engine is an MCP server with 34 tools, over HTTP at http://127.0.0.1:8197/mcp and over stdio with ./formdeck mcp. An agent works on the same deck you see: its edits arrive in the open window as they happen.

Setup

Client How
All at once ./formdeck agents install writes .mcp.json, .codex/config.toml and .cursor/mcp.json (here and in the folder you ran it from), adds formdeck to Antigravity's ~/.gemini/config/mcp_config.json and installs the skills
Claude Code claude mcp add --transport http formdeck http://127.0.0.1:8197/mcp
Codex [mcp_servers.formdeck] with url = "http://127.0.0.1:8197/mcp" in ~/.codex/config.toml
Cursor {"mcpServers": {"formdeck": {"url": "http://127.0.0.1:8197/mcp"}}} in ~/.cursor/mcp.json
Claude Desktop {"mcpServers": {"formdeck": {"command": "/path/to/formdeck/formdeck", "args": ["mcp"]}}}

The Agents dialog in the app shows the same snippets with Copy buttons and copies a starter prompt.

The loop

  1. get_context, then list_templates if no template was chosen.
  2. ingest the person's files (absolute paths), get_source only for what the digest leaves out.
  3. draft_spec for a first slide script, rewrite it into the story, then build_deck.
  4. render_slides (contact sheets drawn by the window) and lint_deck (overflow, overlap, contrast, alt text, measured in the real DOM); fix with update_slide, set_text or edit_elements.
  5. Leave slides in Review; never approve them for the person.

The other tools: add_slides, get_deck, apply_ops, slides, apply_template, set_theme, add_media, remove_background, export_deck, open_file, comments, review, undo and pdf. remove_background cuts a picture out with the local U2-Net model, which downloads once (176 MB); ask the person before passing install: true.

Where the agent works, and Follow agent

The agent dock opens on Claude Code, or on a shell with the install command when Claude Code is missing, and remembers the tab the person picks. With the status bar's Follow agent switch on (Alt+Shift+F, off by default), the window goes to the slide the agent is editing: it selects the slide in Normal view and highlights and scrolls to it in Slide Sorter. Agents should therefore edit slide by slide in reading order and name slide numbers in the handoff note. The live message the engine sends is described in AGENT_FOCUS.md.

Consent and undo

Agents can always read. The first change an outside agent tries asks the person in the window: "Allow Claude Code to edit your decks?" (the title names the agent), with Allow and Not now. The choices are Ask (the switch is off, the default: the next edit asks), Allowed (the switch is on: no more questions) and Not now (nothing changes, and that agent's edits are refused for two minutes before the next one asks again). Turning the switch off goes back to Ask, not to a block. Only the window can change the choice, and the app's own command line (./formdeck cli) counts as an outside agent that follows it. The switch lives in Preferences, the Agents dialog and the Agent tab. A turn is every change an agent makes within 90 seconds of the one before; Edit > Undo Agent Turn takes the whole turn back in one step, and the agent's own undo tool does the same.

Skills

formdeck-harness (building decks: director, intake reader, story architect, slide-script author, template curator, visual QA, review handoff, layout ideas) and formdeck-skillset (developing formdeck). The MCP resource formdeck://guide is the short version, and the server offers a build-deck prompt.

Without the window

./formdeck build-deck notes.md q3.pdf shots/ --template aurora --brief "investor update" --out update.pptx. Options are in the manual.

Clone this wiki locally