Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/patrickclery/ruly/add-core-subagentgit clone --depth 1 https://github.com/patrickclery/rulyWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00025 | $0.01542 |
| Opus 5 | $0.00013 | $0.00771 |
| Sonnet 5 | $0.00005 | $0.00308 |
| Haiku 4.5 | $0.00003 | $0.00154 |
Grade A, and why
add-core-subagent 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add Subagent to Core Orchestrator
Overview
Automates wiring a new subagent into the core dispatcher. Core is a slim orchestrator that routes tasks to specialized subagents -- it never does the work itself. Each subagent needs a dispatch rule (so core knows when to route) and a recipe registration (so ruly generates the agent file).
When to Use
- "Add X as a core subagent"
- "Wire up the Y subagent to core"
- "Core should dispatch to Z"
- "Register W in the core recipe"
- Creating a new specialized agent that core should delegate to
Gather Information
Before creating anything, collect these from the user (ask if not provided):
| Input | Example | Required |
|---|---|---|
| Subagent name | qa |
Yes |
| Recipe name (if different) | qa-testing |
Only if differs from name |
| Work type heading | QA & Testing |
Yes |
| Trigger conditions | Test planning, QA reports, test execution | Yes |
| Has slash commands? | yes/no | Yes |
| Capabilities summary | test planning, execution, QA reports | Yes |
Naming convention:
subagent_typein Task tool uses underscores:core_debugger,context_fetcherrecipename uses hyphens:core-debugger,context-fetcher- Dispatch rule filename uses hyphens:
use-core-debugger.md - Simple names are the same everywhere:
bug,comms,merger
Step 1: Create the Dispatch Rule
Create the file at:
/Users/patrick/Projects/ruly/rules/workaxle/core/standards/use-{name}.md
Use this template, filling in the placeholders:
---
description: Forces {task_type} tasks to dispatch {subagent_type} subagent for {capabilities}
alwaysApply: true
---
# {Work Type}: Dispatch to Subagent
## When This Applies
Any time you are asked to or encounter:
{trigger_list -- bullet points of actions, keywords, slash commands}
## The Rule
**You MUST dispatch the `{subagent_type}` subagent.** Do NOT:
{do_not_list -- bullet points of what core must not do itself}
The subagent has {capabilities_description}. You are a dispatcher -- route the work.
## CRITICAL: Slash Command Override
> **Only include this section if the subagent has slash commands.**
When a {work_type_lower} slash command is invoked, the command file content will load into your context. **Do NOT follow those instructions yourself.** Instead:
1. Extract the user's intent and any arguments from the command
2. Dispatch the `{subagent_type}` subagent with those details
3. The subagent will follow the command workflow (it has the same files)
## How to Dispatch
{dispatch_examples -- one or more ### subsections with Task tool examples like:}
### For {Action Name}
```
Task tool:
subagent_type: "{subagent_type}"
prompt: |
{Action description}:
- {relevant parameters}
```
## After Subagent Returns
1. Present the subagent's results to the user
2. If the subagent needs confirmation, relay to user, then dispatch again
3. If additional work needed, dispatch again with updated context
## Does NOT Apply When
{boundary_conditions -- bullet list deferring to other subagents}
## Red Flags -- You Are Violating This Rule
{red_flags -- bullet list of anti-patterns}
**All of these mean: STOP. Dispatch `{subagent_type}`.**
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.
- 2d ago First seen · 196 lines · 25 tokens per session scan A 4512c99999f4
add-core-subagent is a command published in the GitHub repository patrickclery/ruly (5 stars, last pushed 7d ago), licensed MIT. It adds 25 tokens to every session and 1,542 once invoked, about $0.0001 per session on Opus 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-08-31.
Other commands, from other repositories
claude-flow-swarm
Coordinate multi-agent swarms for complex tasks.
bootstrap
PACT session-start ritual — identify the session team (platform-provisioned), secretary spawn, paused-state surface, bootstrap marker.
ox-session-review
Command "ox-session-review" from sageox/ox, covering failure-mode watch-list (read first), from the ledger root. should print 0, phase 1 — scan & score (read-only), quality buckets (first match wins) and removal candidates.
add-agent
引导新增一个 Agent 适配器。用法 /add-agent.
handoff
Package current state for the next agent.
xdo
Direct development by the Main Agent.