token

token is an agent for Claude Code from jeremylongshore/tons-of-skills-marketplace. It costs 60 tokens per session (759 once invoked), scanned A, original, MIT.

A context-management guide for AI systems that controls how text is counted, divided into chunks, shortened, and fitted into a model's context window.

In plain words
What is it for?
Use it to set token budgets, test chunking strategies, design truncation rules, and measure token usage in production AI systems.
Why use it?
It helps prevent context overflow, wasted token spending, and the loss of important information when inputs are too large.

Agent for Claude Code

Written for Claude Code: background in frontmatter. Also seen: model in frontmatter.

Part of the tonone plugin — 100 agents, 9 plugins shipped together

Good fit Use it to set token budgets, test chunking strategies, design truncation rules, and measure token usage in production AI systems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jeremylongshore/tons-of-skills-marketplace/token
About the project

Tons of Skills is a model-agnostic marketplace that distributes reusable skills, plugins, agents, commands, hooks, and settings for coding-agent tools. It is intended for people who want to browse, install, and manage agent extensions, with Claude Code as its verified native harness. The catalogue entries are extensions provided by or associated with this marketplace.

jeremylongshore/tons-of-skills-marketplace · 2,717 stars · on GitHub · tonsofskills.com

Install

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.

Clone the repo
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace

Made for: Claude Code.

Or install tonone, the plugin that ships this one along with the rest of its 100 agents, 9 plugins.

Wrote 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.

agentmods badge for token

README.md
[![agentmods](https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/token/github.svg)](https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/token)
Your own site
<a href="https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/token"><img src="https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/token/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.

agentmods 80×15 button for token

Your own site · 80×15
<a href="https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/token"><img src="https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/token.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 759 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.00759
Opus 5 $0.00030 $0.00380
Sonnet 5 $0.00012 $0.00152
Haiku 4.5 $0.00006 $0.00076

Measured 8d ago against content hash 109f188aa072, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

token 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 8d 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.

plugins/ai-agency/tonone/agents/token.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are Token — Token Management Engineer on the AI Operations Team. Context window optimization, token counting, truncation strategies, chunking patterns.

Think in production reliability, cost efficiency, and measurable quality. Every AI system recommendation must be paired with an eval or metric that proves it works.

Communication

Respond terse. All technical substance stays — only filler dies. Follow output-kit protocol: compressed prose, no filler, fragments OK. Documents: normal prose. See docs/output-kit.md for CLI skeleton, severity indicators, 40-line rule.

Operating Principle

The context window is your most expensive real estate. Every token costs money and competes for attention. Truncation without strategy loses the most relevant content; chunking without semantic awareness breaks reasoning chains. Token budgeting is upstream of everything: if you don't control token spend at design time, you'll control it at the billing statement.

What you skip: Blindly truncating context without understanding what information is being lost.

What you never skip: Never design a retrieval system without chunk size experiments. Never deploy a prompt without token count instrumentation. Never truncate system prompts without regression testing.

Scope

Owns: Context window optimization, token counting, truncation strategies, chunking patterns

Skills

  • /token-budget — Design token budgets — system/user/assistant allocation, overflow handling, context compression.
  • /token-chunk — Design chunking strategies — semantic splitting, overlap tuning, retrieval-aware chunk sizing.
  • /token-recon — Audit token usage patterns — avg context size, waste, truncation frequency, budget adherence.

Key Rules

  • Budget tokens explicitly: system, user, assistant each get an allocation
  • Measure actual token usage per request before setting limits
  • Chunk size experiments: try 256, 512, 1024 tokens with overlap 10-20%
  • Context overflow must fail gracefully — never silently truncate without logging
  • Token count instrumentation is required on every LLM call, not sampled

Read the full file on GitHub · 77 lines

Changes

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.

  1. 8d ago First seen · 77 lines · 60 tokens per session scan A 109f188aa072

Subscribe to this mod's changes

token is an agent published in the GitHub repository jeremylongshore/tons-of-skills-marketplace (2,717 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 759 once invoked, about $0.0003 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-09-03.

Related

Other agents, from other repositories

ai-engineer

AI/ML Engineer (Reza Tehrani) - LLM seçimi, prompt engineering, RAG, AI agent mimarisi, fine-tuning.

vibeeval/vibecosystem · 36 tokens

ai-engineer

Build LLM applications, RAG systems, and prompt pipelines. Implements vector search, agent orchestration, and AI API integrations. Use PROACTIVELY for LLM features, chatbots, or AI-powered applications.

echoVic/blade-code · 48 tokens

ai-ml-engineer

AI/ML Engineer specialising in prompt engineering, RAG architecture, LLM evaluation, AI safety, and agent orchestration. Use when: "build an AI feature", "LLM", "ChatGPT", "Claude API", "prompt engineering", "RAG", "vector database", "embeddings", "fine-tuning", "AI agent", "LangChain", "LangGraph", "evaluation"…

Ghosteken/agent-harness · 0 tokens

AI-Engineer

AI-Engineer — LLM integration, RAG, prompt engineering, AI agents, vector databases specialist.

aetox-skills/Aetox-Agents-Team · 24 tokens

rag-pipeline-reviewer

Reviews RAG (Retrieval-Augmented Generation) pipelines for retrieval quality, chunking strategy, embedding choices, and evaluation coverage. Invoke when the user builds, modifies, or debugs a RAG system, vector store integration, or asks about retrieval accuracy.

affaan-m/ECC · 58 tokens

RAG Pipeline Engineer

Production RAG specialist focused on chunking strategy, retrieval quality, hybrid search, re-ranking, and eval-driven iteration. Builds pipelines that actually retrieve the right context — not just pipelines that run.

SHAdd0WTAka/Zen-Ai-Pentest · 44 tokens