
Artifact Panel
Show the AI producing a document/artifact: chat on the left, the document panel slides in with a chart
- 1:1stage-fit
- 16:9native
- 9:16stage-fit
- 4:5stage-fit
14 of 48 in the Clay & Ink pack
Show code being written in a dark editor window, line by line with syntax colour.
Watermarked preview. The Clay & Ink pack includes all 48 elements, clean and editable, in every size.
Use the AgentFrames Clay & Ink pack. Add a `codeWindow` beat to plan.json on a `w` canvas with slots `filename`, `language`, `code` and `fontSize` from my script. Then run validate → build → qa and show me qa/contact.jpg.The slots your agent fills from your script, through plan.json.
| Slot | Type | What it holds | Example |
|---|---|---|---|
filename | string | Filename: Plain text. | summarise.js |
language | string | Language: Plain text. | JavaScript |
code | string | Code: Plain text. Wrap the ONE accent word in *stars*. | // Summarise the call notes with Claude import Anthropic from "@anthropic-ai/sdk"; const client = new Anthropic(); const msg = await client.messages.create({ model: "claude-sonnet-4-5", max_tokens: 1024, messages: [{ role: "user", content: notes }], }); |
fontSize | number | Font Size | 36 |
Show code being written in a dark editor window, line by line with syntax colour. Set: ai-at-work. Category: ai. Canvases: ok w, k, o. Typical 5.5s; settles at 4.5s.
slots)filename (string) EXAMPLE DATA: replace or get client sign-off. Plain text.language (string). Plain text.code (string) EXAMPLE DATA: replace or get client sign-off. Plain text. Wrap the ONE accent word in *stars*.fontSize (number).Optional style/layout overrides: cps. Use them only to fix fit or pacing, never to change the brand.
Do not change the motion, easing, timing, the palette roles (colours come from frame.md → tokens.css), fonts, or the element's internal layout. Keep copy close to the default length (±30%) so it fits.
Set values in the beat's slots in plan.json, run tools/validate.mjs, rebuild, and check qa/contact.jpg. Never hand-edit the generated index.html or this element's code for a single video.
Your agent fills the filename, language, code and fontSize slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Clay & Ink look.
Code Window is designed natively for 16:9 and stage-fits into 9:16, 4:5 and 1:1. A typical beat lasts 5.5s.
Code Window is included in the Clay & Ink pack, which is part of the AgentFrames All-access subscription along with 47 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.
This is 1 of 48
Code Window comes as part of Clay & Ink: 48 elements, 6 starter videos and every size (16:9, 9:16, 4:5, 1:1), re-brandable to your colours in one file. Included in All-access with every other pack.

Show the AI producing a document/artifact: chat on the left, the document panel slides in with a chart

Show a question to the AI and its answer streaming back, word by word

The Claude home screen: spark and greeting, the composer with Chat/Cowork and the model, and a prompt typing in

A whole Claude session in one beat: home screen, prompt typed and sent, then the answer streaming in
Community: coming soon · Markdown version of this page