On this page
Create an agent from a template
A template initializes a new agent's role and optional skills. This guide creates a reviewer without changing any existing agent. For the lifecycle, see Agent templates.
Before you start
- The daemon is running:
holon daemon start. - A working model connection; see Configure models.
- An unused agent ID. Run
holon agent listbefore choosing one. - A template you have inspected. The template reference describes the roles; listing a role there does not mean it is installed on your machine.
Steps
-
Open the Web GUI's Agent Templates page (
/templates). Inspect the template's role contract, skill dependencies, and source. Ifcode-revieweris missing, use Install Template with:https://github.com/holon-run/holon/tree/main/agent_templates/code-reviewerTo maintain a whole source instead, add
https://github.com/holon-run/holonunder remote sources and use Sync Sources. Wait for the job to finish and refresh the catalog. Select the installed entry; name collisions can give it a different local install ID.There is no
holon templatesCLI command. For a CLI-only path, use an inspected local template directory or an explicit GitHub tree URL in--template, as shown below. -
Create the agent, replacing
reviewer-demowith your unused ID andcode-reviewerwith the installed selector:holon agent create reviewer-demo --template code-reviewerWithout
--template, Holon uses its hidden generic default. Template initialization refuses to overwrite a non-empty agent home. -
Check the agent and its skills:
holon agent list holon agent get reviewer-demo --detail full holon agent status reviewer-demo holon skills list --agent reviewer-demoUse
loaded_agents_md.agent_source.pathin the full detail to locateAGENTS.md. Inspect it and, when present,template-provenance.jsonin the same home. Confirm that they identify the role and source you chose. -
Give it a small, read-only task:
holon run --agent reviewer-demo "Read your role contract and list your review responsibilities and approval boundaries. Do not access GitHub or change files."This checks initialization without needing access to a repository or PR.
Confirm it worked
The agent appears in the list, its home contains the selected contract, and its effective skill list matches the template's dependencies. The test returns a brief consistent with the role. An idle agent need not remain awake.
Troubleshooting
- Template not found: check the installed selector in the GUI, or use an absolute path or GitHub tree URL. A role name alone does not install it.
- Home already exists: choose a new ID. Do not delete the existing home or reapply a template to customize it; use Customize an agent.
- Skill bootstrap failed: inspect the create result and missing source.
After fixing access or dependencies, run
holon agent repair reviewer-demoand checkholon skills list --agent reviewer-demoagain. - Task cannot run: inspect
holon config doctorfor model availability.
Use another template source
Choose one of these alternatives, using an unused agent ID:
holon agent create my-agent --template /path/to/my-template
holon agent create my-agent --template https://github.com/owner/repo/tree/main/templates/my-template
Template layout, selection rules, and the template.toml and skills.toml
schema are in the Agent templates reference.
To author one, follow Create an agent template.
