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/toskysun/sub-agents/initxgit clone --depth 1 https://github.com/Toskysun/sub-agentsWhat 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.00000 | $0.02241 |
| Opus 5 | $0.00000 | $0.01120 |
| Sonnet 5 | $0.00000 | $0.00448 |
| Haiku 4.5 | $0.00000 | $0.00224 |
Grade A, and why
initx 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 3d 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 โ 290 lines โ stays where its author put it; the contents beside it link to each section on GitHub.
InitX - Project Intelligence & Agent Recruitment System
Usage
/initx [OPTIONS]
๐ฏ Core Function
Analyze project codebase, detect technology stack, and CREATE NEW PROJECT-SPECIFIC AGENTS tailored to your unique requirements. Saves custom agents to .claude/agents/ and updates project CLAUDE.md.
๐ Command Modes
๐ฏ Basic Usage
/initx # Smart analysis & agent creation
/initx --preview # Preview mode (no file creation)
/initx --force # Force overwrite existing agents
๐ Advanced Options
--mode=minimal- Create only essential agents--focus=security- Focus on security-specific agents--exclude=ui- Skip UI/design agents--template=mobile- Use mobile project template--model=inherit- Force all agents to use specified model (inherit/sonnet/opus/haiku)
๐ง Intelligence Detection Matrix
Technology Stack Recognition
Frontend: vue (*.vue, nuxt.config.js), react (*.jsx, next.config.js), angular
Backend: fastapi (main.py), spring (pom.xml), go (go.mod), node (express/koa)
Mobile: android (*.kt, AndroidManifest.xml), flutter (pubspec.yaml)
Security: reversing (*.apk, frida scripts), hooking (xposed modules)
Project Complexity Assessment
- Simple: 1-2 custom agents (single stack)
- Medium: 3-5 custom agents (multi-stack)
- Complex: 5-8 custom agents (microservices)
- Enterprise: 8+ custom agents (distributed)
๐ค Agent Creation Algorithm
Phase 1: Core Stack Agents
Creates NEW specialized agents based on detected stack:
vue-{project-name}-developer- Project-specific Vue expertapi-{domain}-specialist- Custom API integration expert{database}-data-architect- Database-specific data expert
Phase 2: Domain-Specific Agents
Creates NEW agents for unique project domains:
{domain}-business-logic-expert- Business rules specialist{integration}-connector-agent- Third-party integration expert{platform}-deployment-specialist- Platform-specific deployment
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.
- 3d ago First seen ยท 290 lines ยท 0 tokens per session scan A 01069c19fe8e
initx is a command published in the GitHub repository Toskysun/sub-agents (111 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,241 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.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.