Session Optimizer — Development skill for Claude Code
Cross-platform prompt refinement for Codex, Gemini CLI, and Claude Code, plus Claude-native context guard and telemetry statusline plugins.
How to install Session Optimizer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open cdeust/session-optimizer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Session Optimizer does
Cross-platform prompt refinement for Codex, Gemini CLI, and Claude Code, plus Claude-native context guard and telemetry statusline plugins. Portable refine-gate binds vague prompts to evidence; optional hooks enforce checkpoints, track subagent spend, and surface context and quota telemetry.
Alternatives in Development
- ExportProfile — Generate a complete personal profile summary of everything you know about me from our conversations 250 ★
- Question Refinement — Refine the user's research question into a structured research prompt 228 ★
- M5 Paper Buddy — 📟 Claude Code physical companion on M5Paper V1.1 e-ink 160 ★
README
session-optimizer
[](https://securityscorecards.dev/viewer/?uri=github.com/cdeust/session-optimizer) [](https://www.bestpractices.dev/projects/13938) [](LICENSE)
**Cross-platform prompt refinement for Codex, Gemini CLI, and Claude Code, plus context-budget and telemetry controls.** The portable `refine-gate` skill binds vague requests to concrete evidence on all three hosts. `context-guard` enforces a per-model context-budget checkpoint on both Claude Code and Codex (each host's own Stop-hook contract). `statusline` adds passive telemetry where Claude Code exposes the required metrics.
The repository ships three small, dependency-light, **independently installable** packages. Install exactly the ones your host supports and you need; none requires the others.
/plugin marketplace add cdeust/session-optimizer
| Plugin | One-line install | What it does |
|---|---|---|
| **context-guard** | Claude: /plugin install context-guard@session-optimizer-marketplace; Codex: codex plugin marketplace add cdeust/session-optimizer + codex plugin add context-guard@session-optimizer-codex |
A Stop hook enforces a per-model context budget: at the WARN threshold it writes a mechanical checkpoint stub — on Claude Code it delegates persistence to a budgeted memory-writer subagent as a reflection pause; on Codex the model writes the stub itself (no subagent-spawn tool is assumed) — at the hard cap it forces checkpoint → /clear → resume. On Claude Code a SubagentStop tracker also surfaces true session spend (main thread + subagents) |
Related Skills
Idea Refine
Refine a vague idea into a sharp, buildable concept
Winsle
A dynamic island for Windows — coding cockpit for Claude Code & Antigravity, local-first media, calendar, phon
Claude Pacer
Statusline + budget guard + pacing verdict for Claude Code usage limits — the statusline is for you, the guard
Sync Claude Config
Sync Claude Code + cross-CLI config (AGENTS.md, CLAUDE.md, GEMINI.md, agents, skills, settings, statusline, gu
EchoPortal
A round dashboard for a 1st-gen Amazon Echo Spot: Kotlin shell on LineageOS plus a Windows tray agent. Clock,
Ullage
Context-window telemetry for Claude Code and OpenAI Codex, plus Cursor agent activity: a macOS menu bar item s
Related Agents
Backlog Grooming
Use when the user needs to groom, refine, or clean up a product backlog. Triggers on: 'groom backlog', 'backlo
Skill Scorecard Analyst
Reviews collected skill telemetry and recommends keep / refine / merge / deprecate per skill, with the evidenc
MCP Advisor
Portable MCP build + conformance advisor — how to build an MCP server (tools/resources/prompts, transports, OA