hierarchy

hierarchy is a command for Claude Code from ai-sdlc-framework/ai-sdlc. It costs 50 tokens per session (970 once invoked), scanned A, original, Apache-2.0.

A command for managing a session hierarchy of planners, dispatchers, and executors. It starts, checks, connects to, and stops these running roles.

In plain words
What is it for?
Use it to start or inspect the hierarchy, view terminals, show a brief, attach to a session, or shut it down.
Why use it?
It provides one interface for coordinating several agent roles instead of managing each process separately.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ai-sdlc plugin — 3 skills, 25 commands, 14 agents shipped together

Good fit Use it to start or inspect the hierarchy, view terminals, show a brief, attach to a session, or shut it down.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ai-sdlc-framework/ai-sdlc
Claude Code
/plugin install ai-sdlc

Made for: Claude Code.

Or install ai-sdlc, the plugin that ships this one along with the rest of its 3 skills, 25 commands, 14 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hierarchy

README.md
[![agentmods](https://agentmods.dev/badge/commands/ai-sdlc-framework/ai-sdlc/hierarchy/github.svg)](https://agentmods.dev/commands/ai-sdlc-framework/ai-sdlc/hierarchy)
Your own site
<a href="https://agentmods.dev/commands/ai-sdlc-framework/ai-sdlc/hierarchy"><img src="https://agentmods.dev/badge/commands/ai-sdlc-framework/ai-sdlc/hierarchy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hierarchy

Your own site · 80×15
<a href="https://agentmods.dev/commands/ai-sdlc-framework/ai-sdlc/hierarchy"><img src="https://agentmods.dev/badge/commands/ai-sdlc-framework/ai-sdlc/hierarchy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 970 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.00970
Opus 5.5 $0.00020 $0.00388
Sonnet 5.5 $0.00010 $0.00194
Haiku 4.5 $0.00005 $0.00097

Measured 10d ago against content hash 06d727652a89, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hierarchy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ai-sdlc-plugin/commands/hierarchy.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run cli-hierarchy $ARGUMENTS (reference: docs/operations/cli-hierarchy.md) and surface its output unchanged. All logic lives in ai-sdlc-plugin/scripts/hierarchy-dispatch.mjs; this body only resolves the plugin scripts directory and forwards the arguments.

Usage

/ai-sdlc hierarchy
/ai-sdlc hierarchy status
/ai-sdlc hierarchy up --executors 1
/ai-sdlc hierarchy down
  • up, status, terminals, brief, down run as given.
  • attach <name> and up --attach cannot switch your terminal from inside Claude Code: the script prints the exact shell command to run instead.
  • clear, tick, restart, register, playbook, route-decision, check-repo, executor-start are refused with a one-line explanation: they belong to the dispatch and executor loop bodies.
  • No arguments prints cli-hierarchy --help followed by a common-recipes block.
  • If the pipeline-cli bin cannot be found, the same install hint as /ai-sdlc doctor is printed.

VS Code terminals

up keeps .vscode/tasks.json current (unless --no-vscode-tasks), as long as the file is absent or carries the ai-sdlc.generated marker. To get one terminal per agent:

  1. /ai-sdlc hierarchy up --executors 5 (regenerates the tasks file).
  2. In VS Code run Terminal > Run Task > hierarchy: open all agents.

A hand-written tasks.json is never overwritten; merge by hand from /ai-sdlc hierarchy terminals --vscode --print.

Implementation contract

Run from the repository root:

# >>> plugin-root preamble
unset PLUGIN_SCRIPTS_DIR
for _c in "${CLAUDE_PLUGIN_DIR:-}" "${CLAUDE_PLUGIN_ROOT}" "$(pwd)/ai-sdlc-plugin" "$(node -e 'const f=require("fs"),p=require("path"),r=(d)=>{try{return f.realpathSync(d)}catch(e){return d}};try{const g=JSON.parse(f.readFileSync(p.join(require("os").homedir(),".claude/plugins/installed_plugins.json"))).plugins,s=[];for(const k in g)if(k.startsWith("ai-sdlc@"))s.push(...g[k]);const o=[];for(let d=process.cwd(),u;u!==d;d=p.dirname(d)){u=d;for(const e of s)if(e.scope!="user"&&e.scope!="managed"&&e.projectPath&&r(e.projectPath)==d)o.push(e)}for(const e of s)if(e.scope=="user")o.push(e);console.log(o.find((e)=>f.existsSync(e.installPath)).installPath)}catch(e){}' 2>/dev/null)"; do
  [ -n "$_c" ] && [ -d "$_c" ] && PLUGIN_SCRIPTS_DIR="$_c/scripts" && break
done
[ -n "${PLUGIN_SCRIPTS_DIR:-}" ] || { echo "ERROR: plugin not found: set CLAUDE_PLUGIN_DIR or CLAUDE_PLUGIN_ROOT, or install it (see ~/.claude/plugins/installed_plugins.json)" >&2; exit 1; }
# <<< plugin-root preamble
cd "$(git rev-parse --show-toplevel)"
node "$PLUGIN_SCRIPTS_DIR/hierarchy-dispatch.mjs" $ARGUMENTS

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed 06d727652a89
  2. 12d ago Changed a2e893c123d3
  3. 1mo ago Changed · -4 lines f4106402d42f
  4. 1mo ago Changed · -13 lines f189f99512f6
  5. 1mo ago Changed 338f57d9d64b
  6. 1mo ago Changed 9828bfc310ee
  7. 1mo ago Changed · +2 lines a634c8c2c659
  8. 1mo ago Changed · +9 lines e87b07bd50c7
  9. 1mo ago Changed · +11 lines bea5856dd9d8
  10. 1mo ago First seen · 61 lines · 50 tokens per session scan A 0044950704ff

Subscribe to this mod's changes

hierarchy is a command published in the GitHub repository ai-sdlc-framework/ai-sdlc (464 stars, last pushed yesterday), licensed Apache-2.0. It adds 50 tokens to every session and 970 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.

Related

hierarchy compared with commands from other repositories

hierarchy next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hierarchyai-sdlc-framework/ai-sdlcCommand464yesterdayApache-2.0A50Claude Code
discoverairblackbox/airblackboxCommand259d agoApache-2.0A12Claude Code
evidenceairblackbox/airblackboxCommand259d agoApache-2.0A14Claude Code
replayairblackbox/airblackboxCommand259d agoApache-2.0A11Claude Code
complyairblackbox/airblackboxCommand259d agoApache-2.0A13Claude Code
review-gokidboy-man/vibe-engineeringCommand217d agoMITA49Claude Code
researchjcarlosrodicio/opencode-agent-orchestration-kitCommand165todayApache-2.0A7Claude Code