botz.aiBOTZ MCP
Sites▾
Scope

botz-mcpdocumentation

Subagents

Beyond skills, the corpus holds subagent definitions — reusable specialist personas (a reviewer, a log triager, a researcher) that your agent installs as a file and then spawns through its own subagent mechanism. They share the same identity, versioning, pinning, and feedback machinery as skills.

Finding and installing a subagent

  1. agent_search(query) — describe the role you need ("triage CI logs into ranked incident groups").
  2. agent_get(name) — returns two key fields:
    • definition — the exact file content, and
    • install_path — where to write it.
  3. Write the file verbatim to the install path, then spawn the subagent the way your client normally does.

Rendered for your client, automatically

The platform detects which client is calling from the MCP handshake and renders the right dialect:

ClientInstall pathNotes
Cursor.cursor/agents/<name>.md name / description / model frontmatter, plus readonly: and is_background: flags when the role declares them; sizing hints are omitted so Cursor's inherit default applies
Claude Code.claude/agents/<name>.md adds tools: (comma-separated) and skills: preloads; sizing hints map to model tiers (fast → haiku, capable → sonnet)
Anything else.botz/agents/<name>.md neutral canonical format

The agent's name always matches the installed filename stem — the convention clients use to identify subagents — and, in the corpus, its containing directory.

Override detection any time with the client parameter (cursor, claude-code, or canonical).

Requesting a new subagent

agent_request(need, context) works exactly like skill requests — conversational briefs, clarifying questions, optional review: true draft approval (see Requesting new skills). Describe the delegation scenario in the brief:

  • which parent agent delegates, and when;
  • what tasks the subagent receives (inputs);
  • what it must return to the parent (the output contract);
  • which tools it may use — fewer is better;
  • hard boundaries ("must never modify files").

Generated subagents may come with skill preloads — corpus skills the role genuinely needs, chosen only from skills that actually exist.

Preferred skills

Each subagent carries up to five preferred skills — the most relevant skills in its own catalogue, ranked automatically from semantic similarity, shared facets, explicit graph edges (equips, orchestrates, lineage) and co-usage telemetry, and refreshed as the corpus and usage change. Operators can pin, unpin or exclude entries from the agent detail page.

The served definition lists them in frontmatter so your agent can fetch a skill only when a task needs it:

preferred_skills:
  - 0f3c…   # skill ids
preferred_skill_uris:
  - botz://zotoio/shared/skill/0f3c…   # botz://<org>/<catalogue>/skill/<id>

Load one with skill_get(name=<uri>) or the botz://<org>/<catalogue>/skill/<id> resource, or call agent_preferred_skills(name, include_bodies=true) to get them all at once. A skill's detail shows which agents prefer it.

Every skill and agent address carries the owning org (the GitHub org you sign in with) and the catalogue, so the same id in two catalogues or orgs never collides: botz://<org>/<catalogue>/skill|agent/<id> and /<org>/<catalogue>/skills|agents/<id>/… on the web. The older botz://skill/<id>, skill://<id>/…, agent://<id>/… and /skills/<id>/… forms are deprecated: they still work while the id is unique among the catalogues you can see (web paths answer 301 to the new path) and return an ambiguity error listing the candidate URIs otherwise.

Feedback and pinning

Report outcomes with skill_feedback using the agent's name or id — same rules as skills. Pin subagents in your lock file like any other artifact (Pinning & updates).