# Token Assassin: Reduce AI Agent Costs

> Understand prompt and trace cost drivers, with explicit assumptions and regression guidance.

Token Assassin: Reduce AI Agent Costs is a free AI agent skill on Agensi by Mattia Dragone, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mattia Dragone](https://www.agensi.io/creators/mattia-dragone)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/token-assassin-reduce-ai-agent-costs
- Tags: llm-ops, cost-optimization, prompt-engineering, token-analysis, ai-agents, llm, agents, prompts

## About this skill

Token Assassin is a single instruction skill for an AI agent that can read SKILL.md and work with user-supplied context. Place the skill in your agent's documented skill location after checking its format requirements. Installation compatibility has not been tested.

The instructions guide the agent through a structured review or planning workflow. This draft package contains the skill document, not a standalone application. Its source marks the release as NOT READY FOR RELEASE.

### The problem
Unstructured requests can hide missing requirements, weak evidence and unsafe assumptions. This skill specifies what the agent should examine, how to report uncertainty and what the output should contain.

### What you get
| Part | Included |
|---|---|
| Instruction skill | 1 SKILL.md |
| Bundled scripts | 0 |
| Reference files | 0 |
| Plugin manifest | None found |
| License | Not supplied |

### How it works
The agent follows the instructions using its own available tools. The package does not supply an executable engine. Every conclusion still needs evidence from the user's input.

### Uses

**Find exact duplicate instructions.** Request a focused deliverable with evidence and stated limitations.
Try: "Find exact duplicate instructions for the supplied input. State assumptions and identify what needs verification."

**Review semantic redundancy.** Request a focused deliverable with evidence and stated limitations.
Try: "Review semantic redundancy for the supplied input. State assumptions and identify what needs verification."

**Measure tokens with stated method.** Request a focused deliverable with evidence and stated limitations.
Try: "Measure tokens with stated method for the supplied input. State assumptions and identify what needs verification."

**Model costs from supplied prices.** Request a focused deliverable with evidence and stated limitations.
Try: "Model costs from supplied prices for the supplied input. State assumptions and identify what needs verification."

**Review repeated tool calls.** Request a focused deliverable with evidence and stated limitations.
Try: "Review repeated tool calls for the supplied input. State assumptions and identify what needs verification."

**Identify oversized tool responses.** Request a focused deliverable with evidence and stated limitations.
Try: "Identify oversized tool responses for the supplied input. State assumptions and identify what needs verification."

**Propose prompt diffs.** Request a focused deliverable with evidence and stated limitations.
Try: "Propose prompt diffs for the supplied input. State assumptions and identify what needs verification."

**Plan regression checks.** Request a focused deliverable with evidence and stated limitations.
Try: "Plan regression checks for the supplied input. State assumptions and identify what needs verification."

### Guardrails
Do not claim tests passed, changes were applied or external actions completed without evidence. Review permissions and uncertainty before acting. The underlying agent determines actual access and data handling.

### Who it is for
People who want structured assistance for this domain and can review the result. The current draft is not for buyers expecting tested software, a complete command-line tool or verified platform integrations.

### Safe handling
Only provide inputs you are authorized to process. The package has no bundled executable scripts, network client or credentials. This does not make the host AI agent offline: its provider and tool settings determine how data is processed.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Token Assassin: Reduce AI Agent Costs skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill actually reduce my AI agent costs?

The skill analyzes your system prompts and execution traces to identify redundant instructions, oversized context, and inefficient tool calls that drive up API bills. It then provides a refactored version of your instructions with a clear diff, showing exactly where tokens can be saved without removing safety guardrails.

### Which AI frameworks and model providers are compatible with the Cost Optimizer?

This tool is framework-agnostic and works with any system that uses standard prompts or JSON execution logs. It is compatible with all major providers like OpenAI and Anthropic, as well as local models, by focusing on universal token density and workflow patterns.

### Does the optimizer automatically test if the new prompts are still accurate?

No, the skill performs its analysis locally on your provided prompts and logs to identify optimization opportunities. While it generates a 'safe' refactored version of your logic, you should still perform your own verification to ensure the output meets your specific application requirements.

### What specific assets are included in this purchase?

You receive the full optimization engine including the redundancy detector, cost modeling tool, and the refactoring logic. It also includes documentation on how to interpret trace analysis so you can apply the findings to your specific agent architecture.

### How difficult is the initial setup for an existing agent workflow?

Setup is straightforward: you provide your current system prompts or execution traces as input. The skill then audits these files against its cost-efficiency rules and generates a report detailing your baseline costs and recommended optimizations.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
