claudeindex
Plugin

cost-optimizer

Claude Code cost optimization plugin (Phase 3 of cost-saver trio). Detects task characteristics from prompts to suggest optimal model/subagent (Opus 4.7 / Sonnet 4.6 / Haiku 4.5), recommends genshijin (compression) mode for verbose-output sessions, and analyzes settings.json for unused permissions/hooks/env. Includes opt-in UserPromptSubmit hook (off by default) and 4-layer-defense settings optimizer (dry-run -> backup -> atomic apply -> auto-restore on failure). Pairs with cost-monitor (Phase 1) and skill-analyzer (Phase 2) for the full cost-reduction workflow.

Installation

1

Add the marketplace

/plugin marketplace add arkatom/claude-plugins
2

Install plugins

/plugin

Run these commands in Claude Code to add this plugin to your environment. The marketplace must be added before you can install its plugins.