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/tzachbon/smart-ralph/startgit clone --depth 1 https://github.com/tzachbon/smart-ralphWhat 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.00012 | $0.01549 |
| Opus 5 | $0.00006 | $0.00775 |
| Sonnet 5 | $0.00002 | $0.00310 |
| Haiku 4.5 | $0.00001 | $0.00155 |
Grade A, and why
start 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 — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Start Feature
Smart entry point for ralph-speckit. Checks constitution, auto-generates feature ID, creates branch, initializes state.
Constitution Check (FIRST)
Before any feature work, constitution must exist.
# Check if constitution exists
if [ ! -f ".specify/memory/constitution.md" ]; then
echo "CONSTITUTION_MISSING"
else
echo "CONSTITUTION_EXISTS"
fi
If CONSTITUTION_MISSING:
- Output: "No constitution found. Run /speckit:constitution first to establish project principles."
- STOP - do not continue
Parse Arguments
From $ARGUMENTS, extract:
- feature-name: Required, kebab-case name for the feature
- goal: Optional description of what the feature should accomplish
Examples:
/speckit:start user-auth- Create feature named user-auth/speckit:start user-auth Add OAuth2 support- Create with goal
If no feature-name provided:
- Output: "Usage: /speckit:start [goal]"
- Output: "Example: /speckit:start user-auth Add OAuth2 support"
- STOP
Validate feature-name is kebab-case:
- Only lowercase letters, numbers, hyphens
- Must start with letter
- Regex:
^[a-z][a-z0-9-]*$
If invalid:
- Output: "Invalid feature name. Use kebab-case (e.g., user-auth, api-v2)"
- STOP
Auto-Generate Feature ID
Scan .specify/specs/ for existing feature directories and find highest ID.
# Find highest existing feature ID
HIGHEST_ID=0
if [ -d ".specify/specs" ]; then
for dir in .specify/specs/*/; do
if [ -d "$dir" ]; then
dirname=$(basename "$dir")
# Extract numeric prefix (first 3 chars)
prefix="${dirname:0:3}"
if [[ "$prefix" =~ ^[0-9]+$ ]]; then
num=$((10#$prefix))
if [ $num -gt $HIGHEST_ID ]; then
HIGHEST_ID=$num
fi
fi
fi
done
fi
# Next ID is highest + 1
NEXT_ID=$((HIGHEST_ID + 1))
# Format as 3-digit zero-padded
FEATURE_ID=$(printf "%03d" $NEXT_ID)
echo "FEATURE_ID: $FEATURE_ID"
The feature ID follows format 001, 002, 003, etc.
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 · 238 lines · 12 tokens per session scan A 38f5e6dd6a79
start is a command published in the GitHub repository tzachbon/smart-ralph (527 stars, last pushed 4d ago), licensed MIT. It adds 12 tokens to every session and 1,549 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-30.
Other commands, from other repositories
pr
Create a branch, split changes into logical commits, and open a pull request.
commit
Stage and commit changes with a well-written message.
history
Explore git history to understand what changed and why.
squash
Squash recent commits into a single clean commit.
undo
Command "undo" from owainlewis/youtube-tutorials, covering undo, what happened?, common scenarios, undo last commit, keep the changes and undo last commit, unstage the changes.
commit
Commit changes with auto-generated message showing command context, timestamp, and change count.