/ai-sdlc:hierarchy <up|status|attach|terminals|brief|down> [options]from ai-sdlc
Drives session hierarchy lifecycle (planner, dispatch, executors) via cli-hierarchy. Supports up, status, attach, terminals, brief, down subcommands.
Ships in ai-sdlc. Installing the plugin adds it to Claude Code.
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.
/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.cli-hierarchy --help followed by a common-recipes block./ai-sdlc doctor is printed.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:
/ai-sdlc hierarchy up --executors 5 (regenerates the tasks file).hierarchy: open all agents.A hand-written tasks.json is never overwritten; merge by hand from
/ai-sdlc hierarchy terminals --vscode --print.
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
The vscode-hierarchy extension opens one terminal per roster agent. Install, verify (/ai-sdlc doctor), after-update and troubleshooting steps are in the
"VS Code users" section of docs/operations/cli-hierarchy.md.
What the command file sets; muted values are Claude Code's defaults
haiku7-day visitors to each command page
27 commands in this plugin
/cleanupRemove worktrees under .worktrees/ — defaults to merged-PR sweep, or pass a task-id to force-remove a specific one./context-captureCapture facts from a conversation, document or finding as inferred knowledge entries with a confidence band and a re-verify note; a correction supersedes the earlier entry./context-hygieneAudit the knowledge store for contradictions and stale entries; raise at most 3 contradictions per run as Decision Catalog items and report stale entries as questions. Monthly cadence.npx claudepluginhub ai-sdlc-framework/ai-sdlc --plugin ai-sdlcOther plugins' commands for the same job