TypedAI is a TypeScript platform for building and running AI agents, language-model workflows, and chatbots, including agents that edit code and review pull requests. Developers use it for AI chat, automation, software engineering tasks, and integrations with external tools and services. The catalogue add-ons extend its agent and workflow capabilities.
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.
git clone --depth 1 https://github.com/TrafficGuard/typedaiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/trafficguard/typedai/select-files)<a href="https://agentmods.dev/commands/trafficguard/typedai/select-files"><img src="https://agentmods.dev/badge/commands/trafficguard/typedai/select-files/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/trafficguard/typedai/select-files"><img src="https://agentmods.dev/badge/commands/trafficguard/typedai/select-files.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00013 | $0.00755 |
| Opus 5.5 | $0.00005 | $0.00302 |
| Sonnet 5.5 | $0.00003 | $0.00151 |
| Haiku 4.5 | $0.00001 | $0.00076 |
Grade A, and why
select-files 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 3mo 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 — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Select Files
Select the minimal set of files from a codebase that are essential for completing a given task. Uses an iterative LLM-driven search with both regex and semantic vector search capabilities.
How It Works
The select-files agent:
- Analyzes the repository structure and file summaries
- Iteratively searches and inspects files using regex and/or vector search
- Decides which files to keep or ignore based on relevance
- Returns the minimal set of files needed for the task
Usage
Via MCP Tool
If you have the TypedAI MCP server configured, use the selectFiles tool:
{
"workingDirectory": "/path/to/your/project",
"requirements": "Find all files related to user authentication",
"initialFilePaths": ["src/auth/index.ts"] // optional
}
Parameters:
workingDirectory(required): Absolute path to the project directoryrequirements(required): Description of what files are needed and whyinitialFilePaths(optional): Array of file paths to include in initial context
Via CLI
# Standalone command (recommended)
select-files "Find all files related to user authentication"
# With initial files to include
select-files --initial-files=src/auth/index.ts,src/config.ts "Find related configuration"
# From any directory (uses --fs flag automatically)
cd /path/to/your/project
select-files "Find database models"
# Alternative: via ai wrapper
ai select-files "Find database models"
Flags:
--initial-files=file1,file2: Comma-separated list of initial files to include-r: Resume from previous agent run
Output Format
Returns a JSON array of selected files:
[
{
"filePath": "src/auth/authenticate.ts",
"reason": "Contains the main authentication logic and session management"
},
{
"filePath": "src/config/auth.config.ts",
"reason": "Authentication configuration including JWT settings"
}
]
Fields:
filePath: Relative path to the file from the project rootreason: Explanation of why this file was selectedreadOnly(optional): Whether the file should only be read, not modifiedcategory(optional): One ofedit,reference,style_example,unknown
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.
- 3mo ago First seen · 103 lines · 13 tokens per session scan A 49c9e5538f61
select-files is a command published in the GitHub repository TrafficGuard/typedai (1,197 stars, last pushed 11mo ago), licensed MIT. It adds 13 tokens to every session and 755 once invoked, about $0.0001 per session on Opus 5.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.
select-files compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| select-filesTrafficGuard/typedai | Command | 1.2k | 11mo ago | MIT | A | 13 | Claude Code |
| expectyonatangross/orchestkit | Command | 313 | today | MIT | A | 51 | Claude Code, Cursor |
| memoryyonatangross/orchestkit | Command | 313 | today | MIT | A | 51 | Claude Code, Cursor |
| review-artifact-commentsyonatangross/orchestkit | Command | 313 | today | MIT | A | 45 | Claude Code, Cursor |
| compact-prepsammcj/agentic-coding | Command | 175 | today | Apache-2.0 | A | 30 | Claude Code |
| carefulyonatangross/orchestkit | Command | 313 | today | MIT | C | 84 | Claude Code, Cursor |
| checkjmagar/claude-homelab | Command | 90 | 2mo ago | MIT | A | 10 | Claude Code |