{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "microsoft-tokeneconomizer--tune-the-loop-guard-and-tool-pruning",
 "repo": "microsoft/TokenEconomizer",
 "repo_url": "https://github.com/microsoft/TokenEconomizer",
 "repo_slug": "microsoft-tokeneconomizer",
 "title": "Inspect and tune what it learned, pruned and blocked",
 "page_title": "How to inspect and tune what it learned, pruned and blocked with Token Economizer",
 "summary": "Use the everyday commands to see facts, restore pruned tools and turn mechanisms on or off.",
 "who": "A developer who wants to check that cost cutting is not hurting task success.",
 "problem": "An optimizer that silently removes tools or injects facts is hard to trust.",
 "outcome": "Visible facts, pruned tools with evidence, and per-repository settings you control.",
 "steps": [
  "Run `microskills` to see the facts it injects and those still forming",
  "Run `toolprune` to see the tools it left out and the evidence",
  "Run `toolprune restore` to give them back",
  "Run `config set microskills=on` (or =off), adding `--global` for every repository"
 ],
 "agent_prompt": "In this repository, run TokenEconomizer's microskills, toolprune and config commands, list any fact that looks wrong, and restore pruned tools I still need.",
 "agents": [
  "claude-code",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The loop guard never stops a turn itself; it redirects at most once and then tells you how to stop it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Claude Code, Codex (0.141.0 or later), GitHub Copilot CLI or Pi",
  "git",
  "No API key of its own: model calls run through your own agent"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/microsoft-tokeneconomizer/tune-the-loop-guard-and-tool-pruning/",
 "md": "https://dedupedai.com/use-cases/microsoft-tokeneconomizer/tune-the-loop-guard-and-tool-pruning/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/microsoft-tokeneconomizer--tune-the-loop-guard-and-tool-pruning.json",
 "api_version": "v1"
}
