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 agentmods add skills/drvoss/everything-copilot-cli/token-cost-optimizernpx skills add drvoss/everything-copilot-cli --skill token-cost-optimizergit clone --depth 1 https://github.com/drvoss/everything-copilot-cliWhat 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 | $0.00042 | $0.01316 |
| Opus 5 | $0.00021 | $0.00658 |
| Sonnet 5 | $0.00008 | $0.00263 |
| Haiku 4.5 | $0.00004 | $0.00132 |
Grade A, and why
token-cost-optimizer 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 2d ago.
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 — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Token Cost Optimizer
Token Cost Optimizer is a proactive cost-control skill for GitHub Copilot. It helps you reduce metered usage before and during a task by choosing the right model path, cutting unnecessary context, and avoiding parallel work that burns credits without enough payoff.
Why This is Copilot-Exclusive
GitHub Copilot now exposes cost-sensitive control surfaces that matter directly in the CLI:
- Model pricing for token-based usage across Copilot models
- Premium request multipliers that vary by model and feature surface
This skill focuses on Copilot-native levers such as /model, Auto model selection, /compact,
/context, autopilot, and /fleet rather than generic LLM budgeting advice.
When to Use
- Before launching a large Copilot CLI task that may scan many files or run for a long time
- Before using
/fleetor autonomous modes where model and context choices can multiply spend - When you need to stay inside a budget or monthly AI credit allowance
- When you want to trade a small quality reduction for a large cost reduction on routine work
When NOT to Use
| Instead of token-cost-optimizer | Use |
|---|---|
| You are auditing historical spend after the fact | workflow/cost-audit |
| The task is tiny and the model choice is obvious | do the task directly |
| You need to choose execution mode before cost strategy | task-intake-router |
Cost Drivers
The main Copilot cost drivers are:
- Model selection — more capable models generally cost more
- Context size — wider scans and larger prompts increase token use
- Parallel agent count —
/fleetcan multiply model interactions - Autonomous depth — long autopilot runs can continue consuming usage while you are not intervening
Workflow
1. Estimate the task shape first
Ask:
- how many files must be read?
- does the work need a premium model?
- is the task truly parallelizable?
- can the context be narrowed before starting?
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.
- 2d ago First seen · 159 lines · 42 tokens per session scan A 6a4f92f4c21c
token-cost-optimizer is a skill published in the GitHub repository drvoss/everything-copilot-cli (45 stars, last pushed 6d ago), licensed MIT. It adds 42 tokens to every session and 1,316 once invoked, about $0.0002 per session on Opus 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-08-30.
Other skills, from other repositories
winui-session-report
Analyze the current or a recent agent session (GitHub Copilot CLI or Claude Code) and generate a diagnostic report. Use only when the user explicitly asks for session feedback, agent debugging, or a review of what happened during a build session. Do not inspect session data automatically.
rig
Minimal agent cli harness for defining harnesses in prompts as rig markdown fences.
atifact
This skill should be used when the user asks to "extract agent trajectory", "convert HAR to trajectory", "get trajectory from session", "parse agent session", "convert Claude Code logs", "convert Copilot CLI logs", "extract ATIF", or needs to convert HAR files or JSONL session logs into ATIF trajectory JSON using the…
update-skill-with-log
允许 organizer 和 player 调整 skill,但每次变更都必须同步做文档记录。.
explain-project-design
把这个仓库解释成一个从 coordinator-heavy live loop 演进到 standalone bridge 的版本化多智能体设计。.
ai-ready
ANALYSIS SKILL — Analyze any repository and generate AI-ready configuration — AGENTS.md, copilot-instructions.md, skills, CI workflows, issue templates. WHEN: "make this repo ai-ready", "set up AI config", "add copilot instructions", "prepare this repo for AI contributions", "generate AGENTS.md". INVOKES: glob, grep…