AI agents
Give coding agents the context and conventions they need to build Inertia.Net pages correctly.
An Inertia.Net app is a good fit for coding agents. The backend and the frontend live in one project, a feature follows one request path (endpoint, props, page component), and there is no API contract or client router for the agent to keep in sync. The main thing an agent needs is to know the conventions. This page gives you that context in a form you can paste into your project.
Point the agent at the docs
The documentation is published as plain text for language models:
| URL | Contents |
|---|---|
/llms.txt | An index of every page with a one-line summary, following the llms.txt format. |
/llms-full.txt | The whole documentation in one Markdown file. |
Agents that can fetch URLs can read these directly. For agents that cannot, download llms-full.txt into your repository (for example as docs/inertia-net.md) and reference it from your agent instructions.
Add an AGENTS.md section
Most coding agents read a project instruction file: AGENTS.md for Codex and many others, CLAUDE.md for Claude Code, .github/copilot-instructions.md for GitHub Copilot and .cursor/rules for Cursor. Copy this section into yours and adjust the paths and framework to match your app.
If you use Vue or Svelte, change the component path and extension.
Asking for a feature
Agents do better with a request that names both ends of the feature. For example:
Add a
/projectspage. The endpoint returnsProjects/Indexwith a paginatedprojectsprop usingMergeand theInfiniteScrollcomponent, and a deferredstatsprop. Add a create form that posts to/projects, validatesCreateProjectInputwith.WithInertiaValidation(), and redirects back with atoastflash message. Add a test withInertia.Net.Testingfor the page component and props.
A request like this tells the agent which props to use, how validation is wired, and how to check the result with testing helpers.
Let the agent check its own work
Agents are most reliable when they can verify a change. Inertia.Net gives them a few cheap checks:
- Compile-time types. With generated TypeScript types, a prop renamed in C# breaks the client build, so
npm run buildcatches mismatches. - Response tests.
Inertia.Net.Testingasserts the component name and props without a browser. Ask the agent to add one test per page. - Missing components. In Development, DevTools checks report a
Rendercall whose page component does not exist.
Starter template
dotnet new inertia -n MyApp --framework react creates an app with pages, a validated form, flash messages, CSRF and Vite already set up. Starting an agent from the template gives it working examples of every convention above.