The page
Pages for agents
The page
agents.md

Pages for agents

Examplea whole program
app "Todos"
shape Todo
id: string
title: string
done: bool
state todos: Todo[] = [] persist
state draft = ""
state open = false
action add
if draft.trim() == "" return
todos.push({id: uid(), title: draft, done: false})
draft = ""
action wipe
todos = []
column gap=8 padding=16
input value=draft submit=add placeholder="What next?"
button "Add" press=add
button "Menu" press={open = true}
button "Clear all" press=wipe data-mote="clear"
for t in todos key=t.id
row gap=8
input type=checkbox checked=t.done
text t.title

Mental model#

data-mote#

The mote-agent block#

agents.mote#

Turning it off#

mote: the page without a picture#

Driving a Mote page#

Pitfalls#

In the source#

Edit this page:docs/agents.md
esc
1072 sections of 111 pages, ranked as you type.A heading's words count for more than what stands under it.
↑↓move
↵open
ranked by BM25, in the page