{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "nidhi-singh02-agent-router--preview-agent-route-for-task",
 "repo": "nidhi-singh02/agent-router",
 "repo_url": "https://github.com/nidhi-singh02/agent-router",
 "repo_slug": "nidhi-singh02-agent-router",
 "title": "Preview which agent and model a task would use",
 "page_title": "How to preview which agent and model a task would use with Agent Router",
 "summary": "Run a dry run to see the agent, model, and effort the router would pick, without launching anything.",
 "who": "A developer with several agent subscriptions who wants to check the router's choice before starting paid or quota-limited work.",
 "problem": "It is unclear which agent, model, and effort the router would pick for a given task, and starting the wrong one wastes quota.",
 "outcome": "A decision card showing the selected agent, model, effort, reason, and quota, with no pane opened and nothing sent.",
 "steps": [
  "Run `git clone https://github.com/nidhi-singh02/agent-router.git` and change into the cloned folder.",
  "Run `npm install` and then `npm run build`.",
  "Run `npm link -w @agent-router/router` to put `router` on your PATH.",
  "Store your TypeSafe key with `security add-generic-password -a \"$USER\" -s model-router-typesafe -w` on macOS, then add your accounts to `.model-router/config.json`.",
  "Run `router run \"<task description>\" --dry-run` and read the decision card. (inferred, check the README)"
 ],
 "agent_prompt": "In the agent-router repo, run `router run \"<task description>\" --dry-run` and report the Selected line, the Why line, and the Quota line from the decision card. Verify that no Herdr pane was opened and no command was started.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "90 minutes",
 "basis": "readme",
 "caveat": "Routing always calls TypeSafe with no fallback, so the dry run needs a working TypeSafe key and at least one account set up in config.json.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 20 or newer",
  "A TypeSafe API key, since routing always calls TypeSafe",
  "At least one agent CLI you are logged in to: agent (Cursor), claude (Claude Code), codex, or opencode",
  "Herdr, for launching agents without --dry-run",
  "A config file with your accounts in the model-router home folder"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Each run sends the task text to TypeSafe, so keep sensitive narrative data out of the task string."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nidhi-singh02-agent-router/preview-agent-route-for-task/",
 "md": "https://dedupedai.com/use-cases/nidhi-singh02-agent-router/preview-agent-route-for-task/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/nidhi-singh02-agent-router--preview-agent-route-for-task.json",
 "api_version": "v1"
}
