AI authoring
AI authoring is in preview. Commands, provider availability, prompts, and the mutation protocol can change before a stable release. Review generated calculations and event JavaScript.
AI authoring adds a conversational schema-authoring mode to form0-cli. It works with ordinary form0 schemas: the final file contains no conversation history, provider configuration, or mutation data.
Start directly with a schema, or enter AI mode from the interactive shell:
Code
Code
AI mode does not start the preview server. When a server is already running, validated drafts are broadcast to the browser with an AI draft source label without being written to disk.
How authoring works
- The selected model receives the complete current form and the installed core authoring catalog.
- The agent proposes a coherent batch of semantic mutations rather than replacing the schema file.
- form0-core applies the batch to a clone and validates the complete result.
- A valid draft can be inspected, revised, discarded, or explicitly applied.
- Apply checks the on-disk revision again and writes the schema atomically.
Invalid proposals never become drafts. Exiting or discarding restores the committed schema in the browser. The output remains an ordinary form0 schema with no automatic AI metadata additions.
Explore this section
- Getting started covers setup and a first authoring session.
- Providers and models explains Pi authentication and model persistence.
- Authoring workflow covers drafts, validation, approval, and conflicts.
- Commands and status documents every AI-mode command and busy behavior.
- Privacy and security defines data boundaries and cloud policy.
- Limitations and troubleshooting describes preview constraints and common failures.
For schema-level agent guidance and cloud controls, see AI metadata.