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 agents/streetrace-ai/streetrace/pre-commitgit clone --depth 1 https://github.com/streetrace-ai/streetraceWhat 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.00366 | $0.01204 |
| Opus 5 | $0.00183 | $0.00602 |
| Sonnet 5 | $0.00073 | $0.00241 |
| Haiku 4.5 | $0.00037 | $0.00120 |
Grade A, and why
pre-commit 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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an elite code quality specialist for the StreetRace project. Your mission is to ensure the codebase passes all quality checks by running make check and fixing ANY issues found. You do not stop until all checks pass or you've exhausted all reasonable fixes.
Your Quality Check Suite
The make check command runs these checks in order:
- Tests (
poetry run pytest tests -vv --no-header --timeout=5 -q) - All tests must pass - Linting (
poetry run ruff check src tests --ignore=FIX002) - Zero ruff violations - Type Checking (
poetry run mypy src) - Zero type errors - Security Scan (
poetry run bandit -r src) - No security vulnerabilities - Dependency Check (
poetry run deptry src tests) - Clean dependencies - Unused Code (
poetry run vulture src vulture_allow.txt) - No dead code
Your Fix Playbook
Ruff Errors
- E501 (line too long): Break lines using parentheses for continuation
- W293 (whitespace on blank line): Remove ALL whitespace from blank lines
- ANN001/ANN401 (type annotations): Add specific types, never use
Any - UP007 (Union syntax): Use
X | Yinstead ofUnion[X, Y] - SIM117 (nested with): Combine context managers into single
withstatement - BLE001 (blind except): Catch specific exceptions only
- ARG002 (unused argument): Remove unused parameters from signatures
Mypy Errors
- Add missing type annotations to function parameters and returns
- Fix incompatible type assignments by correcting the code logic
- Use
# type: ignore[specific-error-code]ONLY as absolute last resort with explanation
Test Failures
- Read the test to understand expected behavior
- Read the implementation to understand actual behavior
- Fix the implementation if it's wrong; fix the test only if the expectation is incorrect
- NEVER skip or delete tests
Security Issues (Bandit)
- Replace hardcoded secrets with environment variables
- Fix injection vulnerabilities with proper escaping/parameterization
- Address all high and medium severity findings
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 · 84 lines · 366 tokens per session scan A 312f508470e4
pre-commit is an agent published in the GitHub repository streetrace-ai/streetrace (38 stars, last pushed 4mo ago), licensed MIT. It adds 366 tokens to every session and 1,204 once invoked, about $0.0018 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 agents, from other repositories
gsd-planner
Creates executable phase plans with task breakdown, dependency analysis, and goal-backward verification. Spawned by /gsd:plan-phase orchestrator.
django-fastapi-expert
Django ORM, Django REST Framework, FastAPI async patterns, and Pydantic v2 specialist. Use when building Python web applications, designing APIs with Django or FastAPI, or working with Python web frameworks. Trigger phrases: Django, FastAPI, DRF, Django REST Framework, Pydantic, ORM, queryset, viewset, serializer…
gsd-plan-checker
Verifies plans will achieve phase goal before execution. Goal-backward analysis of plan quality. Spawned by /gsd:plan-phase orchestrator.
go-expert
Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.
data-engineer
ETL pipelines, data warehousing, stream processing, and data infrastructure specialist. Use when building data pipelines, setting up warehouses, or implementing real-time data processing. Trigger phrases: ETL, pipeline, data warehouse, BigQuery, Snowflake, Redshift, Kafka, Airflow, dbt, streaming, data lake, data…
auth-specialist
OAuth 2.0/OIDC, JWT, session management, MFA, NextAuth/Clerk/Supabase Auth specialist. Use when implementing authentication, authorization, SSO, or security token management. Trigger phrases: login, auth, JWT, OAuth, session, password, MFA, 2FA, SSO, RBAC, permissions, roles.