awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
microsoft avatar

microsoft/TokenEconomizer

0
View on GitHub↗

TokenEconomizer

TokenEconomizer is a plugin that cuts the token spend of AI coding agents without modifying the agents themselves. It learns from an agent's past sessions in a repository and applies that experience to later sessions. It installs into agents such as Claude Code, Codex, Copilot CLI and Pi, reuses the user's existing login, and has experimental support for other agents.

It does this through three mechanisms. Repository fact learning extracts recurring details such as working command spellings, required build steps and environment variables from repeated failures and session reviews, then states them at the start of each new session. Tool pruning tracks which tools go unused across enough prompts and sessions, then omits them through the agent's own settings so their definitions stop being sent with every request; a single command restores them. Failure loop breaking counts repeated failures within a turn, asks a separate judge model whether the agent is stuck, and sends a limited redirect toward a different approach.

Each mechanism and its thresholds can be switched on or off independently, per repository or globally. Users can inspect what was learned, injected and removed, and report session costs, including the model calls the tool itself makes. The repository also bundles a containerized harness with launchers and task sets for SWE-Bench and Web-Bench, so cost-savings experiments can be rerun and the results reproduced.

Features

  • Agent Token Optimizations - Learns from past coding agent sessions in a repository and applies that experience to cut token spend in later sessions without modifying the agent.
  • Coding Agents - Cuts token spend of AI coding agents by learning from past sessions in a repository, without modifying the agents themselves.
  • Idle Tool Pruning - Tracks tool usage across many prompts and sessions, then disables idle tools through agent settings so their definitions leave every request.
  • Agent Failure Mitigation - Detects repeated failures within a turn, checks with a judge model whether the agent is stuck, and sends a limited redirect toward another approach.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI
4,948 stars·303 forks·Python·Apache-2.0·8 views
  • Unused Tool Pruning - Omits tools unused across enough prompts and sessions through the agent's own settings so definitions stop being sent, with one-command restoration.
  • Fact Extraction Pipelines - Extracts recurring facts such as working commands, build steps and environment variables from repeated failures and session reviews, then states them at session start.
  • Token Cost Optimizations - Reduces token usage by pruning unused tool definitions, stating learned repository facts up front, and redirecting stuck agents, all without changing the agent.
  • Stuck Agent Detection - Counts repeated failures within a turn and asks a separate judge model whether the agent is looping before sending a redirect.
  • Project Knowledge Retention - Remembers working commands, build steps and environment details from earlier sessions so each new agent session already knows how the project behaves.
  • Coding Agent Plugin Packages - Installs as a plugin into coding agents such as Claude Code, Codex, Copilot CLI and Pi, reusing the user's existing login.
  • Session Context Blocks - Prepends distilled repository facts such as build steps and environment variables to each new session's context before the agent starts.
  • Agentic Error Recovery - Spots when a coding agent repeats the same failing steps and nudges it toward a different approach to stop wasting tokens.
  • Star history

    Star history chart for microsoft/tokeneconomizerStar history chart for microsoft/tokeneconomizer

    How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

    Frequently asked questions

    What does microsoft/tokeneconomizer do?

    TokenEconomizer is a plugin that cuts the token spend of AI coding agents without modifying the agents themselves. It learns from an agent's past sessions in a repository and applies that experience to later sessions. It installs into agents such as Claude Code, Codex, Copilot CLI and Pi, reuses the user's existing login, and has experimental support for other agents.

    What are the main features of microsoft/tokeneconomizer?

    The main features of microsoft/tokeneconomizer are: Agent Token Optimizations, Coding Agents, Idle Tool Pruning, Agent Failure Mitigation, Unused Tool Pruning, Fact Extraction Pipelines, Token Cost Optimizations, Stuck Agent Detection.

    Which projects share features with microsoft/tokeneconomizer?

    Projects with overlapping indexed features include: t-auto/dsh-ops — dsh-ops is a plugin toolkit for the DSH agent environment that cuts the tokens, turns, and reasoning effort an LLM… getagentseal/codeburn — CodeBurn is a local-first tracker, analyzer, and optimizer for AI coding spend. It reads the session files that coding… nndl/llm-beginner — This project is a collection of educational resources and technical guides focused on the development and… cursor/cookbook — This repository is a collection of example projects and guides for building with Cursor's coding agents. The samples… hkuds/agentpilot — AgentPilot is a self-improvement framework and decision layer for coding agents. It plugs into the agents you already… ayghri/i-have-adhd — This is a Markdown skill file for AI coding agents that reshapes how they reply, aimed at readers with ADHD. Replies…

    Projects sharing features with TokenEconomizer

    These projects share indexed features with TokenEconomizer. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
    • t-auto/dsh-opsT-Auto avatar

      T-Auto/dsh-ops

      5,518View on GitHub↗

      dsh-ops is a plugin toolkit for the DSH agent environment that cuts the tokens, turns, and reasoning effort an LLM coding agent spends on routine file and shell operations. It adds compact low-level operation tools and hides the verbose built-in ones, so agent tasks finish faster and cost less. Several mechanisms support this. File results come back as short, line-numbered text with clearer error messages, which helps agents avoid repeating failed calls. A typed SDK exposes file and document operations to code-writing agents and returns structured JSON values rather than text that has to be p

      JavaScriptdshdsh-plugindsh-plugins
      View on GitHub↗5,518
    • getagentseal/codeburngetagentseal avatar

      getagentseal/codeburn

      11,722View on GitHub↗

      CodeBurn is a local-first tracker, analyzer, and optimizer for AI coding spend. It reads the session files that coding agents already write to disk, prices every token and model call, and combines usage from many tools into one report broken down by model, project, branch, and task. It needs no wrapper, proxy, or account, and the command-line tool runs without network reporting, so usage data stays on the user's machine. Installed tools are detected automatically, including agent sessions run inside WSL. Beyond tracking, it analyzes where money went and how to spend less. It scans sessions an

      TypeScriptai-codingclaude-codecli
      View on GitHub↗11,722
    • nndl/llm-beginnernndl avatar

      nndl/llm-beginner

      6,866View on GitHub↗

      This project is a collection of educational resources and technical guides focused on the development and implementation of large language models. It provides a comprehensive curriculum covering transformer architectures, training methods, and deployment strategies. The materials provide detailed instructions for building autonomous agents using reasoning loops and tool integration, as well as guides for fine-tuning models through supervised learning and preference optimization. It also includes tutorials for constructing retrieval augmented generation pipelines and implementing transformer m

      Pythonagentfudannlpllm
      View on GitHub↗6,866
  • cursor/cookbookcursor avatar

    cursor/cookbook

    4,158View on GitHub↗

    This repository is a collection of example projects and guides for building with Cursor's coding agents. The samples cover running agents from TypeScript code against local workspaces or cloud runtimes, streaming their output live, and launching them from a terminal. Other examples include a cloud agent kanban dashboard, a task graph orchestrator, an app-prototyping chat, and a realtime voice intake demo. Several samples go beyond a basic quickstart. The kanban dashboard lists cloud agents as cards grouped by status, repository, or branch, previews their artifacts, and launches new agents fro

    TypeScript
    View on GitHub↗4,158
  • Compare all 30 related projects→