Skip to content

Agent Vault

The agent vault is a machine-wide library of agent templates. It ships with a set of bundled defaults (named personas and generic specialists) and lets you add your own. Templates are project-agnostic — you import a template into a project when you want to use it there.

For per-project agent CRUD (adding, editing, memory) see Concepts — Agents.

LayerLocationMutability
Bundled<APX package>/assets/agent-vault-defaults/<slug>.mdRead-only on disk. Always visible unless tombstoned.
User~/.apx/agents/<slug>.mdRead-write. A user file with the same slug shadows the bundled one.

Editing a bundled template is copy-on-write — APX materializes a copy in your user layer the moment you save. Deleting a bundled template tombstones it so it stays hidden until you restore it. Deleting a user-only template removes the file.

A characterful crew already used in production by Acme:

SlugRoleStrengths
roby-orchestratorPipeline orchestratorAutonomous task routing, multi-agent coordination
arch-architectSoftware architectSystem design, tradeoffs, ADRs
cody-developerSenior developerCode, refactors, technical leadership
tessa-qaQA / testerReality checks, test plans, real-user empathy
max-marketingGrowth hackerContent, campaigns, SEO, copy
sid-securitySecurity specialistAudits, threat models, hardening
rocky-pmSenior PMTasklists, roadmaps, stakeholder comms
vera-uiUI/UX reviewerVisual audits, usability
finn-billingBilling / commercial opsStripe, invoicing, plan logic

Plain functional roles — useful when you want the capability without a persona:

SlugRole
developmentEngineering & code
marketingMarketing & growth
opsOps, deployments & incidents
qaQuality assurance & testing
supportCustomer support & escalations
Terminal window
# All visible templates (bundled + user overrides)
apx agent vault list
apx
$ apx agent vault list
  vault: ~/.apx/agents

cody-developer    developer            openrouter:meta-llama/llama-3.3-70b-instruct  [bundled]
tessa-tester      qa                   openrouter:meta-llama/llama-3.3-70b-instruct  [bundled]
rocky-architect   architecture         openrouter:meta-llama/llama-3.3-70b-instruct  [bundled]
sofia             backend reviewer     ollama:llama3.2:3b                            [user]
cody-developer    developer            anthropic:claude-sonnet-4-5                   [override]
apx agent vault list showing bundled and user templates with their source tags

Each entry is tagged [bundled], [user], or [override] (a user file that shadows a bundled slug).

Terminal window
# Link the vault template (reads it from ~/.apx/agents/ at runtime)
apx agent import cody-developer
# Copy the file into .apc/agents/ for local edits
apx agent import tessa-qa --copy
# Overwrite an existing project-local definition
apx agent import roby-orchestrator --copy --force

After importing, the agent appears in apx agent list and is available to the project.

Terminal window
apx agent vault add reviewer \
--role "Code reviewer" \
--model ollama:llama3.2:3b \
--language es \
--skills code-review,git \
--description "Reviews PRs and pushes back on hand-wavy diffs."

This writes ~/.apx/agents/reviewer.md. The new template is immediately visible in apx agent vault list and importable into any project.

Terminal window
# Hide (tombstone) a bundled default you don't want to see
apx agent vault rm tessa-qa
# Bring it back
apx agent vault restore tessa-qa
# List everything including tombstoned templates
apx agent vault list --all

Tombstoning only affects listings and imports — the bundled file on disk is never deleted.

Vault templates use the same format as project agents:

---
role: Code reviewer
model: openrouter:meta-llama/llama-3.3-70b-instruct
description: Reviews PRs and pushes back on hand-wavy diffs.
language: es
skills: code-review, git
tools: read_file, list_agents
is_master: false
---
<!-- The agent's system prompt extension goes here. Plain markdown. -->
FieldEffect
roleShown in CLI and web UI. Added to the agent’s system prompt as “Role: …”.
modelDefault model for engine routing.
descriptionShown in vault listings and the web Agent Defaults grid.
languageAdds “Default language: <code>” to the system prompt.
skillsSkill slugs loaded for this agent’s turns.
toolsTool hints; actual callable tools depend on the invocation surface.
is_masterIf true, marked as a master agent in the project (badge + ordering).
<APX package>/assets/agent-vault-defaults/<slug>.md ← bundled (committed to APX repo)
~/.apx/agents/<slug>.md ← user vault (your overrides)
<project>/.apc/agents/<slug>.md ← project-local copy (after --copy)
~/.apx/agents/.removed.json ← tombstones list