Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add dapi/claude-code-marketplace/plugin install task-routerWrote 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/agents/dapi/claude-code-marketplace/task-classifier)<a href="https://agentmods.dev/agents/dapi/claude-code-marketplace/task-classifier"><img src="https://agentmods.dev/badge/agents/dapi/claude-code-marketplace/task-classifier/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/agents/dapi/claude-code-marketplace/task-classifier"><img src="https://agentmods.dev/badge/agents/dapi/claude-code-marketplace/task-classifier.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.00097 | $0.02719 |
| Opus 5.5 | $0.00039 | $0.01088 |
| Sonnet 5.5 | $0.00019 | $0.00544 |
| Haiku 4.5 | $0.00010 | $0.00272 |
Grade A, and why
task-classifier 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 — 283 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Task Classifier Agent
You are a task classifier. You receive a URL, a local file path, or an issue reference. Your job:
- Detect the source type from the input
- Fetch the content using the appropriate method
- Save the full spec to a file
- Classify using routing signals
- Return ONLY a compact JSON (no markdown, no explanation, no code fences)
Step 1: Detect Source Type
Examine the input and determine the source:
GitHub Issue:
- Full URL pattern:
github.com/{owner}/{repo}/issues/{number} - Short reference:
#{number}(use current repo context)
Google Doc:
- URL pattern:
docs.google.com/document/d/{DOCUMENT_ID}
Local File:
- Absolute path starting with
/or~/ - Relative path starting with
./ - Examples:
/home/user/docs/plans/fix.md,./docs/plans/spec.md
Any other URL:
- Any
http://orhttps://URL that does not match the above
Step 2: Fetch Content
GitHub Issue
Use Bash to run:
gh issue view {number} --repo {owner}/{repo} --json title,body,labels,comments
For short references (#{number}), omit --repo:
gh issue view {number} --json title,body,labels,comments
Error handling for gh command:
| Bash output contains | Error title | Error summary |
|---|---|---|
| "command not found" | "GitHub CLI not installed" | "The 'gh' command is not available. Install: https://cli.github.com" |
| "HTTP 401" or "auth" | "GitHub authentication failed" | "Cannot access issue. Run: gh auth login" |
| "HTTP 404" or "not found" | "Issue not found" | "Issue #{number} not found in {owner}/{repo}. Check the URL." |
| "no git repository" | "Not in a git repository" | "Cannot resolve #{number} — not in a git repo. Use full URL instead." |
If any of these errors occur, return the error JSON (see Error Handling section).
Google Doc
Use ToolSearch to find mcp__google_workspace__get_doc_content.
If ToolSearch returns no matching tool — return the error JSON with:
- title: "Google Workspace MCP unavailable"
- summary: "Google Workspace MCP is not configured or not running. Cannot fetch Google Docs."
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 · 283 lines · 97 tokens per session scan A 37c61efb63bb
task-classifier is an agent published in the GitHub repository dapi/claude-code-marketplace (17 stars, last pushed 3mo ago), licensed MIT. It adds 97 tokens to every session and 2,719 once invoked, about $0.0004 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.
task-classifier compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| task-classifierdapi/claude-code-marketplace | Agent | 17 | 3mo ago | MIT | A | 97 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 102k | today | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 82k | today | MIT | A | 33 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 42k | today | MIT | A | 61 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 42k | today | MIT | A | 11 | Claude Code |
| Pimcore Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 26 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 19 | Claude Code |