I’ve put together a small Anvil reference repo for use with AI coding agents:
The goal is to give agents enough Anvil-specific context that they don’t have to rediscover the same framework details every time they work on an app.
The repo contains:
anvil_reference/: app-neutral notes on Anvil app structure, form YAML, component behavior, data bindings, CSS/layout quirks, server modules, Data Tables, custom components, dependencies, routing, and verification.AGENTS.md: instructions for coding agents so they know when and how to consult the reference docs before editing an Anvil app.- A root README explaining how the pieces fit together.
It is meant to be portable and app-neutral. It does not contain arbitrary preferences, standards, or conventions that might go against your app’s coding standards.
It also has pointers to Anvil’s official docs and the open-source runtime repo for things that are not covered by these reference docs, or things that might have changed.
Most importantly, it emphasizes that your app’s own source code is always the source of truth.
The intended use is:
- Copy
anvil_reference/into your Anvil app repo. - Copy
AGENTS.md, or merge its instructions into your existing agent instructions. - Let your coding agent inspect the actual app first, then use these docs as Anvil-specific context.
Feedback, corrections, and suggestions are very welcome, especially if anything in the reference docs is incomplete, unclear, or likely to drift across Anvil versions.