ras-commander: Command for Claude Code

.claude/commands/agent-engagesubagents.md

agent-engagesubagents is a command for Claude Code from gpt-cmdr/ras-commander. It costs 0 tokens per session (846 once invoked), scanned A, original, MIT.

A command that searches a project’s agents and skills, proposes suitable helpers, and creates a detailed execution plan. It also uses shared task files to preserve progress and findings.

In plain words
What is it for?
Use it to select subagents, present their roles for approval, assign work by complexity, and record plans and results in the project’s task folders.
Why use it?
It helps break a complex request into coordinated work and keeps the reasoning and outputs available across coding sessions.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents; mentions Codex.

This is gpt-cmdr/ras-commander's own configuration. It tells Claude Code how to work on ras-commander itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ras-commander configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gpt-cmdr/ras-commander. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gpt-cmdr/ras-commander/main/.claude/commands/agent-engagesubagents.md
Clone the repo
git clone --depth 1 https://github.com/gpt-cmdr/ras-commander

Made for: Claude Code.

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 agent-engagesubagents

README.md
[![agentmods](https://agentmods.dev/badge/commands/gpt-cmdr/ras-commander/agent-engagesubagents/github.svg)](https://agentmods.dev/commands/gpt-cmdr/ras-commander/agent-engagesubagents)
Your own site
<a href="https://agentmods.dev/commands/gpt-cmdr/ras-commander/agent-engagesubagents"><img src="https://agentmods.dev/badge/commands/gpt-cmdr/ras-commander/agent-engagesubagents/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 agent-engagesubagents

Your own site · 80×15
<a href="https://agentmods.dev/commands/gpt-cmdr/ras-commander/agent-engagesubagents"><img src="https://agentmods.dev/badge/commands/gpt-cmdr/ras-commander/agent-engagesubagents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 846 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.00000 $0.00846
Opus 5 $0.00000 $0.00423
Sonnet 5 $0.00000 $0.00169
Haiku 4.5 $0.00000 $0.00085

Measured 9d ago against content hash aeced9c3dffb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

agent-engagesubagents 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 9d 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.

.claude/commands/agent-engagesubagents.md · 98 lines

How it starts

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

Search through your agents and skills and make a detailed plan to execute the user's query. Use the agents to save context and use shared documents in agent_tasks as a form of memory and passive coordination layer.

First, list the proposed agents for the user's review and approval. Then, ultrathink and write a detailed execution plan that can be expanded and progress summaries noted by multiple agents, as well as a place to provide references to external files that document their individual work product and findings.

Subagent Engagement Protocol

1. Plan and List Proposed Agents

Before dispatching, present the user with:

  • Which subagents will be used
  • What each subagent will do
  • Expected output files and locations
  • Estimated complexity (Haiku / Sonnet / Opus)

Wait for user approval before proceeding.

2. Model Selection Guidance

Complexity Model Use When
Simple, focused, fast Haiku Documentation lookup, file reads, scanning, summarization
Moderate, multi-step Sonnet Analysis, code generation, multi-file coordination
Complex, deep reasoning Opus Architecture decisions, cross-domain synthesis, hard problems

Default to Sonnet unless there is clear reason to go up or down.

3. Context Handoff Pattern (Critical)

Always pass context via file paths, never raw text.

Correct pattern:

  • Pass relative file paths in the subagent prompt
  • Subagent reads those files for context
  • Subagent writes output to .claude/outputs/{subagent}/{date}-{task}.md
  • Subagent returns the output file path (not raw text)

Wrong pattern:

  • Embedding large text blobs directly in the prompt
  • Subagent returning large text instead of writing a file

Path format: Always use relative paths from repository root. CORRECT: agent_tasks/.agent/STATE.md CORRECT: .claude/outputs/hdf-analyst/analysis.md WRONG: C:/GH/ras-commander/agent_tasks/.agent/STATE.md (absolute)

4. Execution Plan File

Before dispatching agents, write an execution plan to agent_tasks:

Read the full file on GitHub · 98 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. 9d ago First seen · 98 lines · 0 tokens per session scan A aeced9c3dffb

Subscribe to this mod's changes

agent-engagesubagents is a command published in the GitHub repository gpt-cmdr/ras-commander (79 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 846 tokens. 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-08-30.