task-router
Skill2 starsChanged 2 months agoMITView on GitHub
任务级 AI 模型路由与成本调度。当用户需要写代码/写脚本、翻译、调研、批量处理,或想自动选择最合适、最省钱的模型来执行任务时,使用 `task-router "任务"` 完成任务并按模型路由;需要拆分复杂任务时用 `task-router --plan`。
- Reads credentials
- Deletes or force-pushes
3 other projects use a version of this.
Adopted by
Most recently taken up by
- pat-lewczuk/skillstheir own version, first seen Nov 1, 2026
- AidALL/ghost-alicetheir own version, first seen Oct 11, 2026
- dprakash2101/dotnet-production-agent-skillstheir own version, first seen Sep 23, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- AidALL/ghost-alice★ 15same name
- dprakash2101/dotnet-production-agent-skills★ 4same name
- pat-lewczuk/skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Files
Task Router
task-router 是 task-api-router 插件的命令行入口:一条任务输入 → 自动选择最合适模型 → 执行 → 记录独立运行日志与成本。
何时使用
- 用户要写代码、写脚本、修 bug、做翻译、调研、批量生成等具体任务
- 用户想控制 token/成本,让路由自动选"便宜够用"的模型
- 用户明确提到模型路由、多模型、省钱执行
用法
# 单条任务(自动路由 + 执行 + 记日志)
task-router "写一个 Python 函数解析 JSON"
# 明确需要拆分的复杂任务(才会调用 Planner)
task-router --plan "重构整个项目"
# 查看已配置可用的模型
task-router --models
# 查看历史运行日志 / 某个运行详情
task-router --list
task-router --show <run_id>
# 动作守卫(宿主在工具执行前调用,本地零 token)
task-router --check-action '{"tool":"shell","arguments":{"command":"git reset --hard"}}' --workspace .关键约定
- 不配置 key 时模型会显示"缺配置",请让用户按 README 设置环境变量(如
DEEPSEEK_API_KEY),key 绝不写进代码或仓库。 - 路由只在本机已配置的模型里选,按
config/ranking.yaml的相对排序取第一个可用。 - 默认不拆任务;只有显式
--plan才拆 DAG。 - 动作守卫是本地尽力而为的弱校验:只拦截明显破坏性命令(
rm -rf、git reset --hard等)和给出风险提示,不是完整沙箱。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

