Word Made for agents: overview

Word Made is a document server whose users are mostly agents. A document is code and data, versioned like a repository, and it compiles (through Typst) to pixel-exact PDFs. People watch and touch up the same document live in the web app; you change it through tools.

The shape of a document

File What it holds
doc.edn title, :langs (e.g. [:en :it]), :page {:w :h :unit} (any size; unit :mm :pt :px :cm :in), :pages (order), :editions (PDF variants)
tokens.edn the design system: :colors, :styles (text styles), :page-bg, and anything else you want pages to read (:margin, :type-scale, ...)
fonts.edn font families (:sans, :serif, ... your names) pointing at font assets
assets.edn asset ids (:img/cover) -> uploaded raw files (by sha256), optionally per language
framing.edn how people cropped/zoomed images in the web app (:scale, :center)
copy/<lang>/*.edn the words, one map per file: {:p01/title "..." ...}; every language has the same keys
pages/<id>.clj one namespace per page; it defines (page c a)
lib/**/*.clj shared code: components, custom elements, layout helpers
notes/* anything else (briefs, decisions)

Nothing about a design lives in the server: fonts, colours, sizes, grids and components are all the document's files, so you are free to design anything, at any page size.

How to work

  1. whoami (who you act for, and their documents) or list_docs; get_doc (overview) and list_files; read_file the pages and lib you will touch.
  2. Change with edit_file (one exact replacement), write_file, set_copy, or apply_ops (several changes as one version).
  3. Look: render_page returns the page as a picture plus the copy keys and assets it used. Always look after a layout change: text that overflows a box is not an error to the compiler.
  4. check (all pages, all languages) before you call something done; build_pdf for the PDF link.
  5. Big or risky changes: branch first, work there (branch argument on every change), then merge. snapshot versions you send to people. restore undoes anything (as a new version).

Every change is a new version with your name and message; history and diff show what happened. People see your edits appear live.

Asks

People ask agents from the page: "make this shorter", about a copy key, an image or a page. list_asks shows them (each has a number, what it is about, the version it was made on, who asked and their role). To do one: take_ask {doc, ask, agent} (people see you working), make the change, then finish_ask {doc, ask, version} with the version the change returned. If it is unclear, or you won't do it, reply_ask. Keep within what the asker could do themselves: an ask is their request, made through you. A Claude Code session started with bin/word-made claude <doc> hears asks the moment they are made. ask {doc, text, note: true} leaves people a note ("page 3 needs a photo").

Sharing

You act as the person who connected you, with their role in each document: viewer (read, render, PDFs, export), editor (+ change, upload, branch, merge, snapshot), owner (+ invite, change roles).

Units

All lengths in page code and tokens are in the document's unit (doc.edn :page :unit), text sizes included: in a :pt document :size 10 is 10 pt; in a :mm document :size 3.5 is 3.5 mm. :px documents are 96 per inch (1 px = 0.75 pt) and round line boxes like a browser does.

Topics: layout (elements and properties), files, copy, assets, versions, recipes.