What this screen does
Architecture & Code turns your locked specification into working code through five tabs: Entities (the domain diagram), Database (the schema), Models (Eloquent models and relations), CRUDs (where each field appears in the generated screens), and Laravel (the generated codebase itself). The first time you open it, the entity diagram is seeded automatically from the specification. If you ran the autonomous agent, the entities, schema and models are already derived and waiting for you here: the agent stops before generating code.
Typical workflow
- Start on Entities — review and adjust the seeded diagram; it is the source the other tabs derive from.
- Move through Database and Models, regenerating each from the previous step and adjusting where needed, then use CRUDs to decide where each field shows up.
- On Laravel, pick your generation options, generate the codebase, browse the files, and Download Archive.
- Save your work explicitly — the Save button (or Ctrl+S) writes the current state; the pill next to it shows unsaved changes. Nothing autosaves.
- Use the version picker to restore an earlier saved state, and the stack switcher to change between Laravel + Blade, Laravel + Vue and the experimental Laravel + Filament output.
Examples & tips
- Saving is deliberate: experiment freely, and only save states you would want to come back to. Leaving with unsaved changes triggers a warning.
- When the diagram holds changes the specification lacks, the page header says so (for example "2 changes not in the spec"). Click it to open the sync dialog, tick the changes that are yours and Apply them to create the next specification version, or Mark as reviewed to start tracking the diagram from here.
- Re-seed regenerates the entity diagram from the current specification — useful after a spec revision, but it replaces the diagram. If the diagram differs from the spec, the confirmation names how many places, and Review first takes you to the sync dialog so you can keep your changes.
- Code generation bills credits per generated file batch; the Q&A affordance works here too if you want to ask why something was generated a particular way.