swack toolspluginsGitHub

The collection / Token Max

Understand where your tokens go

In-app, report-only token audit for Codex and Claude

1Skills
0Servers
0Tools
0Hook actions
1Claude slash commands

What it does

Overview

CODEX + CLAUDE · TOKEN AUDIT

Evidence before
optimization.

Understand where your tokens go.
Find changes worth testing.

Review your session and available project to find evidence-backed ways to use fewer tokens. The command checks instruction bloat, repeated exploration, large tool outputs, long files/functions, plugins/MCP, and model-routing rules. It returns a report in chat with concrete proposals and validation steps.

It does not equate “smaller file,” “cheaper model,” or “more plugins” with proven savings. Actual usage comes from session counters. Recommendations are labeled measured, estimated, or hypothesis.

No runtime hooks are installed. See the implementation review, reproducible benchmark and research for measured reductions, added overhead, and the limits of quality claims.

Measured

What the log or file actually records.

Estimated

A calculation with explicit assumptions.

Hypothesis

A proposed change that needs a test.

Overview source ↗

Start here

Try a concrete example

Request a report-only audit in Claude
/token-max:token-audit Review this session and project.

Expected behavior. Return an evidence-backed report in chat. Do not edit code or configuration, install tools, or apply proposed fixes. Report unavailable history and counters as unknown.

Prerequisites. Install Token Max in Claude and provide access to the session or project to review.

Every capability below includes its own example. Examples describe expected behavior; they are not recorded execution results.

Skills you can use

token-audit

Review the current conversation and available project for evidence-backed token improvements. Return a report in chat without changing code or configuration.

claudecodex
View SKILL.md ↗
Request a report-only audit in Claude
/token-max:token-audit Review this session and project.

Expected behavior. Return an evidence-backed report in chat. Do not edit code or configuration, install tools, or apply proposed fixes. Report unavailable history and counters as unknown.

Prerequisites. Install Token Max in Claude and provide access to the session or project to review.

Request an audit in Codex
$token-audit Review this session and project.

Expected behavior. Return prioritized findings, evidence, tradeoffs, quality checks, unknowns, and proposed next steps in chat. Leave code and configuration unchanged.

Prerequisites. Install Token Max in Codex and provide access to the session or project to review.

Request optional Codex measurements
Use the internal collector to measure this project's matching Codex session.

Expected behavior. When the host already provides the required runtime, collect Codex log metadata locally. Otherwise continue with the native in-app review and disclose that measurements are unavailable. The default review requires no terminal setup.

Prerequisites. Request quantitative Codex measurements. The host must already provide execution, Python 3.10 or later, and Git or ripgrep.

Ask for fix prompts as guidance
$token-audit Review this project and include a fix prompt for each actionable finding.

Expected behavior. Include copyable implementation guidance for actionable findings. A prompt is illustrative guidance for a separate request; the audit does not execute it. The example does not demonstrate net token savings.

Prerequisites. Run an audit in the supported client.

Connected servers

This plugin has no MCP servers in the inspected source.

Available tools

This plugin has no MCP tools in the inspected source.

Hooks and their triggers

This plugin has no hooks in the inspected source.

Standalone command files

0 standalone command files. Skill-based slash commands appear in the invocation guide below.

This plugin has no standalone command files in the inspected source.

Slash commands and skill invocation

A skill contains instructions. Its invocation lets you request those instructions directly. The skill and its Claude slash command represent the same capability.

Claude slash commands

After installing the plugin in Claude Code, type a command below and add your request. Availability in other Claude clients depends on the client.

token-audit
/token-max:token-audit Review this session and project.

Review the current conversation and available project for evidence-backed token improvements. Return a report in chat without changing code or configuration.

See examples and prerequisites ↗View SKILL.md ↗

Codex skill invocation

Codex supports built-in slash commands. In the command-line tool, use /skills to select a skill, or use its $skill-name invocation with your request. A Codex skill invocation uses a dollar sign and can include a plugin namespace.

token-audit
$token-audit Review this session and project.

Review the current conversation and available project for evidence-backed token improvements. Return a report in chat without changing code or configuration.

See examples and prerequisites ↗View SKILL.md ↗

Read the Claude skill guide, Codex skill guide, and Codex command-line guide.

Use it in your client

Slack

Workspace guidance

The repository does not document a Slack integration.

Not documented upstream

Releases and downloads

Verified release

v0.4.0

Download the archive for your client.

ZIP integrity, checksums, and manifest versions are checked during the build. This page describes source 0.4.0; the release may contain an earlier set of capabilities.

v0.4.0

What's Changed

  • Bump actions/deploy-pages from 4.0.5 to 5.0.1 by @dependabot[bot] in https://github.com/swack-tools/token-max-ai-plugin/pull/1
  • Bump actions/upload-pages-artifact from 4.0.0 to 5.0.0 by @dependabot[bot] in https://github.com/swack-tools/token-max-ai-plugin/pull/2
  • Bump actions/checkout from 6.1.0 to 7.0.1 by @dependabot[bot] in https://github.com/swack-tools/token-max-ai-plugin/pull/3
  • Bump actions/configure-pages from 5.0.0 to 6.0.0 by @dependabot[bot] in https://github.com/swack-tools/token-max-ai-plugin/pull/4
  • Add copyable fix prompts to report-only token audits by @swackhamer in https://github.com/swack-tools/token-max-ai-plugin/pull/5
  • Add Claude and Codex release archives by @swackhamer in https://github.com/swack-tools/token-max-ai-plugin/pull/6

New Contributors

  • @dependabot[bot] made their first contribution in https://github.com/swack-tools/token-max-ai-plugin/pull/1
  • @swackhamer made their first contribution in https://github.com/swack-tools/token-max-ai-plugin/pull/5

Full Changelog: https://github.com/swack-tools/token-max-ai-plugin/commits/v0.4.0

Read the changes ↗
Sources and version

Source version: 0.4.0

Source commit: 6d6047f6306899e2083ab421c55fde0f33a2c1f7

Counts and descriptions are parsed from repository files. Source links identify immutable commits; the full guide follows the upstream project's latest publication.