Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add blueflyio/openstandardagents --skill token-optimizergit clone --depth 1 https://github.com/blueflyio/openstandardagentsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/blueflyio/openstandardagents/token-optimizer)<a href="https://agentmods.dev/skills/blueflyio/openstandardagents/token-optimizer"><img src="https://agentmods.dev/badge/skills/blueflyio/openstandardagents/token-optimizer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/blueflyio/openstandardagents/token-optimizer"><img src="https://agentmods.dev/badge/skills/blueflyio/openstandardagents/token-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.01533 |
| Opus 5.5 | $0.00026 | $0.00613 |
| Sonnet 5.5 | $0.00013 | $0.00307 |
| Haiku 4.5 | $0.00006 | $0.00153 |
Grade A, and why
token-optimize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Token Optimizer
OSSA Agent: token-optimizer | Version: 1.0.0 | Namespace: blueflyio
Optimizes LLM token usage for cost efficiency and performance.
Capabilities
| Capability | Category | Description |
|---|---|---|
token_counting |
reasoning | Count tokens in prompts |
token-optimization |
reasoning | Optimize token usage |
prompt_analysis |
reasoning | Analyze prompt efficiency |
context_compression |
action | Compress context windows |
cost_estimation |
reasoning | Estimate LLM costs |
cost-tracking |
observation | Track costs over time |
budget-management |
action | Manage token budgets |
usage-analysis |
reasoning | Analyze usage patterns |
prompt_optimization |
action | Optimize prompts |
model_recommendation |
reasoning | Recommend optimal models |
batch_optimization |
action | Optimize batch operations |
usage_forecasting |
reasoning | Forecast usage |
anomaly-detection |
reasoning | Detect anomalies |
pattern-learning |
reasoning | Learn patterns |
Token Pricing (2025)
| Provider | Model | Input | Output |
|---|---|---|---|
| Anthropic | claude-sonnet-4 | $3/1M | $15/1M |
| Anthropic | claude-3-haiku | $0.25/1M | $1.25/1M |
| OpenAI | gpt-4o | $2.50/1M | $10/1M |
| OpenAI | gpt-4o-mini | $0.15/1M | $0.60/1M |
Optimization Strategies
1. Prompt Compression
techniques:
- Remove redundant whitespace
- Use abbreviations where clear
- Remove unnecessary examples
- Compress JSON to minimal format
- Use references instead of repetition
savings: 20-40% token reduction
2. Context Window Management
techniques:
- Sliding window for long conversations
- Summarize old context
- Prioritize recent messages
- Remove system prompt repetition
savings: 30-50% for long contexts
3. Model Selection
task_model_mapping:
simple_classification: claude-3-haiku
code_generation: claude-sonnet-4
complex_reasoning: claude-opus-4
embeddings: text-embedding-3-small
savings: 50-90% by right-sizing
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 234 lines · 65 tokens per session scan A a082bf9d25e1
token-optimize is a skill published in the GitHub repository blueflyio/openstandardagents (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 65 tokens to every session and 1,533 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.
token-optimize compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| token-optimizeblueflyio/openstandardagents | Skill | 5 | yesterday | Apache-2.0 | A | 65 | Claude Code |
| llm-tuning-patternsparcadei/Continuous-Claude-v3 | Skill | 4.0k | 17d ago | MIT | A | 12 | Claude Code |
| naturalNPC-Worldwide/npcpy | Skill | 1.5k | yesterday | MIT | A | 41 | Claude Code, Codex |
| agentica-promptsparcadei/Continuous-Claude-v3 | Skill | 4.0k | 17d ago | MIT | B | 21 | Claude Code |
| llm-integrationyonatangross/orchestkit | Skill | 313 | today | MIT | A | 58 | Claude Code |
| launchdarkly-snippetsaws/tools-for-devops-agent | Skill | 159 | today | Apache-2.0 | A | 35 | Claude Code, Codex |
| loom-prompt-engineeringcosmix/loom | Skill | 66 | 3d ago | MIT | A | 34 | Claude Code |