Add Token Optimizer#145
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the Token Optimizer plugin by adding it to the README and creating a manifest file. However, the reviewer identified that the plugin bundle is incomplete, missing functional components and the required skills configuration. Additionally, the manifest requires corrections for the category and icon path, the README entry needs to be alphabetically sorted, and the plugins.json file must be updated to include the new entry.
| @@ -0,0 +1,14 @@ | |||
| { | |||
There was a problem hiding this comment.
The plugin bundle appears to be incomplete. This repository mirrors installable bundles under the plugins/ directory (see README lines 56 and 93), but the actual functional components (such as the skills/ directory and associated scripts mentioned in the PR description) are missing from this pull request. Furthermore, the manifest is missing the required skills configuration field mentioned in the plugin development guide (README line 233).
| "category": "Developer Tools", | ||
| "composerIcon": "./assets/icon.png" |
There was a problem hiding this comment.
The category should be aligned with the repository's existing taxonomy ('Development & Workflow'). Additionally, the composerIcon path is likely incorrect; since the manifest is located in the .codex-plugin/ subdirectory, the path should be ../assets/icon.png to reach an assets folder at the plugin root. Please also ensure the icon file itself is included in the PR.
| "category": "Developer Tools", | |
| "composerIcon": "./assets/icon.png" | |
| "category": "Development & Workflow", | |
| "composerIcon": "../assets/icon.png" |
| - [Tandem Workflow Architect](https://github.com/frumu-ai/tandem-codex-plugin) - Plan Tandem workflows in Codex, then validate, preview, and run them through the governed Tandem engine. | ||
| - [Tartiner Labs](https://github.com/tartinerlabs/skills) - Agent skills for git workflows, GitHub automation, security audits, code refactoring, and project tooling. | ||
| - [Team Skills Platform](https://github.com/Colin4k1024/tsp) - Role-based team delivery framework — Tech Lead-orchestrated 8-role system with 195+ skills, 27 specialist agents, 80+ commands, hooks, and ECC harness for Claude Code, Codex, and OpenCode. | ||
| - [Token Optimizer](https://github.com/alexgreensh/token-optimizer) - Detect and fix all three types of context waste (behavioral, structural, runtime), track quality degradation with a 7-signal scoring engine, and actively optimize sessions with smart compaction, loop detection, and continuity recovery across Claude Code, Codex, OpenCode, and OpenClaw. |
There was a problem hiding this comment.
The 'Token Optimizer' entry is not alphabetically sorted. Based on the existing list (Team, Test, TODO, Tool), it should be placed after 'TODO Harvest'. Additionally, please ensure that plugins.json is updated to include this new entry and that the total count is incremented (to 83), as that file is used for automation.
Context quality scoring, smart compaction, session continuity, and active optimization across Claude Code, Codex, OpenCode, and OpenClaw.
a860e95 to
519c406
Compare
Code Review SummaryStatus: 3 Issues (from previous review, unresolved) | Recommendation: Address before merge Overview
Existing Issues (unresolved from prior review — do not duplicate)The following issues were raised in Review #4337644533 and remain unresolved in the current state of this PR:
Other Observations (not in diff)No issues found in unchanged code relevant to this diff.
Files Reviewed (3 files)
Reviewed by step-3.5-flash · 394,607 tokens |
Token Optimizer
Context windows degrade silently. By the time you notice your AI is "getting dumber," you've already lost quality you can't get back. Most token tools compress command output and call it a day. That covers maybe 15-25% of the problem.
The three types of context waste
1. Behavioral waste -- What you do in your sessions. Re-reading files already in context. Retry loops where the same approach fails three times. Not compacting until it's too late. Asking the agent to explore broadly when the window is already at 70%.
2. Structural waste -- What eats your context before you type a word. Bloated AGENTS.md or CLAUDE.md files. Skills you installed once and never use but that load every session. Dead MCP servers sitting in config. Stale memory entries past line 200 that the model can't even see.
3. Runtime waste -- What accumulates during the session. Tool results returning 50KB when you needed 2 lines. Duplicate system reminders injected on every turn. Verbose bash output flooding the window. File reads repeated after the file was already edited.
Most tools touch one of these. Usually runtime (output compression). Token Optimizer covers all three. And nobody else measures the quality of your context as it degrades.
What it actually does
It doesn't just observe. It actively optimizes:
Platform support
Native plugins for Claude Code (Python), Codex (Python), OpenCode (TypeScript), and OpenClaw (TypeScript). Each platform has its own native implementation, no bridging, no shared runtime.
Stats
PR Checklist
plugins/alexgreensh/token-optimizer/.codex-plugin/plugin.jsonexists and is valid JSONcomposerIconfield is set in plugin.json interface sectioncomposerIcon