{% comment %} Shared Agents create content. Included by create.html (standalone shell) and create_hub.html (Hub global_base). `url_base` is the app mount prefix so the back link and the form action are correct in both modes. CREATE in the authoring sense: scaffold a fresh v3 spec.yaml + to_home/ skeleton through the SAME backend as `sac agents create`. The template select is live-scanned from the agents root on every GET (inline `minimal`/`full` plus any `_template_*` dir-templates), so the list cannot go stale. The GUI never overwrites: an existing spec fails loud (409) and the operator re-runs with `sac agents create --force` on the leaf. {% endcomment %}
Writes <agents-root>/<name>/spec.yaml plus the
to_home/ sibling on this node — the same
scaffold as sac agents create <name> --template <kind>.
Edit the spec afterwards, then Launch or Start it. Existing specs are never
overwritten from here.