{% comment %} Shared Agents create content. Included by create.html, which extends the SDK adapter (scitex_sdk/app/app_shell.html) and fills scitex_app_content. `url_base` is the app mount prefix so the back link and the form action are correct at any mount. 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 edits that spec directly or chooses another agent name. {% endcomment %}
{% include "scitex_agent_container/_app_header.html" with header_icon="fas fa-plus" header_title="Create agent" header_back_href=url_base|add:"/" header_identity=identity|default:"(unidentified)" %} {% if can_create %}

Scaffold a new agent spec

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.

{% if templates_error %} {% endif %}
{% if csrf_token %}{% endif %}

Lowercase letters, digits, '-' and '_' only (dir-as-SSoT convention).

minimal is the bare spec; full is the proven developer shape. Scanned live from this node's agents root.

{% else %} {% endif %}