feature
Definition authoring agent
The Definition authoring agent edits Definition Code — events, emits with labels, drawing, and multi-file packages.
Ask it when you want Collectable setups marked in history. It works against your live unsaved draft and proposes file patches.
Tools (typical)
Tool | Where | Notes |
|---|---|---|
| server | Persisted state |
| client | Live unsaved draft |
| client | Patches merge over draft |
| client (human) |
|
| server | Rename entity (emits |
| client | |
| removed from agent surface | Do not rely on it |
Prompting patterns
Good
“Emit
or_breakwith labelOR break ↑when close crosses the opening range high; oncePer session.”“Split classify helpers into
./classify.js; keepmetaandonBarin the entry.”“Add a subtitle with range % and sample n (two datapoints max).”
Bad
“Publish a study table of forward returns” — study agent.
“Skip labels, event id is enough” — labels are required.
“Import lodash from npm” — relative ESM only.
Constraints
kind: "flow"in Code (Definition scripts use this API kind for Collect events)Every
ctx.emitneedslabeloncePerfor dedupemeta()only in the entry fileLint over the draft before proposing patches
