Index of every page on this site: llms.txt
All skills
microsoft avatar

/toolprune

@1bfeccd
by microsoftmicrosoft/tokeneconomizer7.8k stars
533
Run it yourself

Review, undo or apply TokenEconomizer's deny list of Codex capabilities this repository never uses (written to the project's .codex/config.toml). Use when the user asks about TokenEconomizer's tool pruning or deny list, or asks to restore or apply it.

Use this Skill: https://skilld.dev/gh/microsoft/tokeneconomizer/toolprune

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈66 tokens for metadata: the name and description. ≈370 when used: this file.

Description uses 3.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈263 characters, or 3.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

TokenEconomizer: toolprune

Run this command in the repository's root directory:

"${TOKENECONOMIZER_HOME:-$HOME/.tokeneconomizer}/bin/te" --host codex --cwd "$(pwd)" toolprune ARGS

Use show as ARGS unless the user asked to apply, restore or measure (optionally naming capabilities). Never run apply or restore unless the user asked for it. Show the output verbatim in a code block. If it shows a proposal waiting for toolprune apply (under toolprune=propose, or one the plugin could not write), end with one line saying how to apply it and that it takes effect from the next session; if it shows a pending list, say that it is written by itself once this repository's sessions have been idle, or now with apply.

apply and restore edit the project's .codex/config.toml and record the change in TokenEconomizer's own state under ~/.tokeneconomizer, outside the workspace, which the sandbox keeps read-only: run that command with sandbox_permissions set to "require_escalated" and a one-line justification, so that Codex asks the user to approve it. show and measure need no approval.

The command reads and writes only TokenEconomizer's own state (under ~/.tokeneconomizer) and, for toolprune apply or restore, the project's .codex/config.toml; it makes no model call. If it reports that the launcher does not exist, the plugin has not run in a session yet: ask the user to start a new Codex session in this repository first.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts20d3 checks · Risk SAFE
  • Gen Agent Trust Hub20d

    This skill provides a utility to manage TokenEconomizer configuration, involving local command execution and modification of specific configuration files with user approval.

  • Socket20d

    No alerts

  • Snyk20d

    Risk: LOW · No issues

Signed by skilld at 1bfeccd. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 weeks ago

README badge

README badge for microsoft/tokeneconomizer/toolprune