Logo di Tool Budget Audit

Tool Budget Audit

Organizzazione
MiniMax-AI
tool-budget-audit

Audit how much context an agent's tools consume, through tool definitions and tool results, and decide whether to trim the catalog, add tool search, or add programmatic tool calling. Use when an agent has many tools or MCP servers, picks the wrong tools, or burns context on tool output.

Panoramica

Pubblicato daMiniMax-AI
Repositorymcode-stack
Nome della skilltool-budget-audit
Stelle
464
Fork
36
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da MiniMax-AI su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Tool Budget Audit in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/tool-budget-audit
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiniMax-AI/mcode-stack.git /tmp/mcode-stack
mkdir -p .claude/skills
cp -r /tmp/mcode-stack/stacks/ronny/skills/tool-budget-audit .claude/skills/tool-budget-audit
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Tool Budget Audit in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Tool Budget Audit non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Tool Budget Audit non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Tool Budget Audit

Tools cost context in two ways, plus one side effect:

  • Definitions. Every tool's name, description and parameter schema sits in context whether or not it is used this turn.
  • Intermediate results. Every call puts its full output back into the conversation, and every round trip is another full model request.
  • Side effect: wrong picks. Similar names and vague descriptions make the model choose the wrong tool or pass wrong arguments.

Tool search mainly saves the first cost. Programmatic tool calling (the model writes a small program that calls tools) mainly saves the second.

Companion to MCode Engineering Notes 02, "Too many tools will eat your context". Plain-text checklist: checklists/tool-budget.md.

1. Measure first

Work from the target project's code and real requests, not from guesses:

  1. List every tool exposed to the model, grouped by source (built-in, each MCP server, plugins).
  2. Estimate the token size of each tool definition with a tokenizer and sum it. Say which tokenizer you used; it is a relative measure.
  3. For one or two representative tasks, record how many tool calls were made, how many model requests that caused, and how large the tool results were.
  4. Note which tools are used almost every turn and which are rarely used.

Report the numbers you measured. If you cannot measure something, say so instead of estimating.

2. Step 0 - subtract

  • Merge by user intent. Do not map APIs one to one. "List issues", "filter issues by label" and "filter by author" can be one tool with parameters.
  • Make names and descriptions distinguishable. Two tools whose descriptions read alike will be confused. State the return format.
  • Group. Put tools into namespaces by domain, keeping each group small.
  • Decide what stays resident. Read, edit, search and run-command style tools used nearly every turn should always be loaded.

3. Step 1 - deferred loading and tool search

Consider it when there are many tools and most are rarely used.

  • Keep core high-frequency tools resident; make low-frequency tools searchable.
  • If a search miss means a tool "does not exist", check descriptions again: vague descriptions break recall.
  • Test tool search recall on your own tool set. Results on clean benchmarks do not transfer to messy real catalogs.
  • Tools whose catalog must be fetched over the network every turn can slow the first token. Consider keeping them resident instead.
  • When debugging, check what the model had actually seen at that moment, not just what the request listed.

4. Step 2 - programmatic tool calling

Consider it when there is a lot of data to filter or aggregate, three or more dependent calls, or batch operations that could run in parallel.

  • Actually move tools into the program. Offering a code tool next to all the normal tools tends to go unused.
  • Keep at top level: tools that interact with the user, change session state, need their result read before deciding the next step (tool search, loading a skill), browser and publishing tools, and spawning subagents.
  • Calls from inside the program must go through the same validation, hooks, permission prompts and UI as direct calls.
  • Tool failures should return an error result, not throw, so one failure does not discard the whole program.
  • Prefer structured tool output so the program can pick the fields it needs. A program that returns raw output saves nothing.
  • Search the codebase for logic keyed on tool names (reminders, counters, analytics). It silently stops firing once a tool moves into the program.

5. Decide

BottleneckFirst move
Too many or too similar toolsSubtract, merge, rename, group
Definitions take too much contextTool search
Results take too much context, too many round tripsProgrammatic tool calling
Arguments often wrongBetter descriptions and examples

The steps stack. A clean catalog makes tool search work; working tool search makes programmatic calling work. Run an end-to-end eval before and after each step and look at score, request count and tokens together (see harness-experiment).

Output

A short report: measured numbers, the main bottleneck, the recommended next step with concrete tool names, and what to measure afterwards.

Domande frequenti

Cosa fa la skill IA Tool Budget Audit?

Audit how much context an agent's tools consume, through tool definitions and tool results, and decide whether to trim the catalog, add tool search, or add programmatic tool calling. Use when an agent has many tools or MCP servers, picks the wrong tools, or burns context on tool output.

Perché usare Tool Budget Audit su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Tool Budget Audit è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Tool Budget Audit in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/tool-budget-audit. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Tool Budget Audit?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Tool Budget Audit?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Tool Budget Audit: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Tool Budget Audit è gratuita?

Sì. È pubblicata su GitHub da MiniMax-AI con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇