Skip to content

pm_agent

Vanguard

The pm_agent tool manages the agent registry — identities that can execute tasks, run reviews, orchestrate sprints, or plan work. Each agent has a handle (stable identifier), a defaultRole, a set of capabilities, prompts bindings, and optional tags and notes.

Actions

create, get, list, update, delete, get_prompt, help


create

Create a new agent.

Parameters

FieldTypeRequiredNotes
namestringYesHuman-readable name (max 120 chars)
handlestringYesStable identifier (max 120 chars, e.g., "sigrid")
kindstringNoAgent kind: bot, ci, or human
defaultRolestringNoOne of: planner, executor, reviewer, auditor, orchestrator
tagsstring[]NoFreeform tags
notesarrayNoArray of { noteType, body }
capabilitiesarrayNoArray of { key, category? }
promptsarrayNoArray of { promptId or promptKey, useFor? }

Note type values: alert, coordination, preference, status, summary

Example

pm_agent {
  action: "create",
  name: "Sigrid the Reviewer",
  handle: "sigrid",
  kind: "bot",
  defaultRole: "reviewer",
  capabilities: [
    { key: "review.quality-gate", category: "core" },
    { key: "review.findings-classification", category: "workflow" }
  ],
  prompts: [
    { promptKey: "reviewer.system", useFor: "system" }
  ]
}

get

Fetch an agent by ID or handle.

Parameters

FieldTypeRequired
idstringOne of
handlestringOne of

Returns the full agent record with capabilities, prompts, notes, and tags.


list

List agents with optional filters.

Parameters

FieldTypeRequiredNotes
kindsstring[]NoFilter by kind
defaultRolesstring[]NoFilter by role
capabilityKeysstring[]NoAgents with these capabilities
searchstringNoSearch text
limitnumberNo1–200

Example

pm_agent {
  action: "list",
  defaultRoles: ["reviewer", "auditor"],
  limit: 20
}

update

Update an existing agent. Collection updates use operation-specific patch semantics.

Parameters

FieldTypeRequired
id / handlestringYes
namestringNo
newHandlestringNo
kindstringNo
defaultRolestringNo
tagsobject or arrayNo
notesobject or arrayNo
capabilitiesobject or arrayNo
promptsobject or arrayNo

Collection patch shapes:

  • tags: full replacement array, or { set?, add?, remove? }
  • notes: full array to add multiple notes, or { add?, remove? }
  • capabilities: full replacement array, or { set?, remove? }
  • prompts: full replacement array, or { set?, remove? }
pm_agent {
  action: "update",
  handle: "sigrid",
  capabilities: {
    set: [
      { key: "review.quality-gate", category: "core" },
      { key: "review.security-checklist", category: "workflow" }
    ],
    remove: ["review.old-checklist"]
  }
}

delete

Delete an agent. Destructive.

Parameters

FieldTypeRequired
idstringYes

Returns deletion impact metrics: deletedCapabilities, deletedPromptBindings, deletedNotes, nullifiedTaskAssignees, etc.

Deletion is blocked if the agent owns projects or sprints. Transfer ownership before deleting.

get_prompt

Build and fetch the full system prompt for an agent — the actual text the agent receives when launched. This is the combined system prompt, identity, and capability set the launcher assembles.

Parameters

FieldTypeRequiredNotes
id / handlestringYes
capabilityKeysstring[]NoSubset of capabilities to include

Use this to inspect exactly what your agent will see, or to preview the prompt with a specific capability subset.


help

pm_agent { action: "help" }

Related