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/trafficguard/typedai/querygit clone --depth 1 https://github.com/TrafficGuard/typedaiWhat 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.00014 | $0.00416 |
| Opus 5 | $0.00007 | $0.00208 |
| Sonnet 5 | $0.00003 | $0.00083 |
| Haiku 4.5 | $0.00001 | $0.00042 |
Grade A, and why
query 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.
What it actually says
Query
Ask natural language questions about a codebase and receive detailed answers with citations to specific files. The agent iteratively searches and reads files to gather context before generating a comprehensive answer.
How It Works
The query agent:
- Analyzes the repository structure to understand the codebase
- Searches for relevant files using regex and/or vector search
- Reads and inspects files that might contain answers
- Synthesizes information and generates a detailed answer
- Includes citations to files where information was found
- Returns the list of files that were analyzed
Usage
query "How does the authentication system work?"
# Complex query with hard LLM (more thorough)
query -h "Explain the complete data flow from API request to database response"
# With initial files to include in context
query --initial-files=src/auth.ts,src/middleware.ts "How does this authentication flow work?"
Flags:
-h: Use hard LLM for complex queries (slower but more thorough)--initial-files=file1,file2: Comma-separated list of initial files to include in context-r: Resume from previous agent run
Output Format
Returns a detailed text answer with:
- Comprehensive explanation answering the query
- Citations to specific files where information was found
- List of all files that were analyzed
- Confidence level indicator
Example Queries
Architecture & Design:
- "What is the overall architecture of this application?"
- "What design patterns are used in the codebase?"
Implementation Details:
- "How does the caching mechanism work?"
- "Where is error handling implemented?"
Debugging:
- "Where would authentication failures be logged?"
- "What happens when a database connection fails?"
Notes
- Uses multiple search strategies (file system tree with per-file summaries, regex and vector search if available)
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 · 61 lines · 14 tokens per session scan A 14a9f35983cf
query is a command published in the GitHub repository TrafficGuard/typedai (1,192 stars, last pushed 8mo ago), licensed MIT. It adds 14 tokens to every session and 416 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
template
Manage issue templates for streamlined issue creation.
translate-id
Resolve an identifier across all relevant namespaces (HGNC symbol, Ensembl, UniProt, NCBI Gene ID, RefSeq, MGI, OMIM, ChEMBL, PubChem, etc.). Detects the input namespace automatically, picks the right resolver tool, and returns a complete cross-reference table. Use when you have an ID in one namespace and need it in…
status
Show Hydra framework status — installed agents, version, config, and update availability.
gsd:settings
Configure GSD workflow toggles and model profile.
aidd-pr
Review a PR, resolve addressed comments, and generate /aidd-fix delegation prompts for remaining issues.
do-it-retrospective
开关本项目的本地行为反馈记录,或输出已记录问题的去敏复盘报告。参数为 on / off / status / report。.