session-optimizer: Instructions file for Claude Code

CLAUDE.md

session-optimizer CLAUDE.md is an instructions file for Claude Code from cdeust/session-optimizer. It costs 192 tokens per session, scanned A, original, MIT.

A set of instructions for an AI coding agent in the session-optimizer project. It points the agent to detailed guidance about prompt refinement, context limits, telemetry, and rules for working with pull requests.

In plain words
What is it for?
Use it to guide non-trivial changes and automated routines in this project, including work involving Codex, Gemini CLI, or Claude Code.
Why use it?
It keeps routine agent work within the project's limits, such as having one pull request in progress and avoiding forced pushes or unnecessary comments.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

This is cdeust/session-optimizer's own configuration. It tells Claude Code how to work on session-optimizer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything session-optimizer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cdeust/session-optimizer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cdeust/session-optimizer/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/cdeust/session-optimizer

Made for: Claude Code.

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 session-optimizer CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cdeust/session-optimizer/claude-md/github.svg)](https://agentmods.dev/instructions/cdeust/session-optimizer/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/cdeust/session-optimizer/claude-md"><img src="https://agentmods.dev/badge/instructions/cdeust/session-optimizer/claude-md/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 session-optimizer CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cdeust/session-optimizer/claude-md"><img src="https://agentmods.dev/badge/instructions/cdeust/session-optimizer/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 192 This file is loaded in full into every session.
When invoked 192 The same file — it is already loaded in full.
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.00192 $0.00192
Opus 5.5 $0.00077 $0.00077
Sonnet 5.5 $0.00038 $0.00038
Haiku 4.5 $0.00019 $0.00019

Measured 4d ago against content hash 5acc534ecf78, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-optimizer CLAUDE.md 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 4d 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.

CLAUDE.md · 15 lines

What it actually says

session-optimizer

Cross-platform prompt refinement for Codex, Gemini CLI and Claude Code, plus context-budget and telemetry controls.

This file is deliberately short: the host loads what it needs on demand. The rules for agents are in docs/agent-guidance.md. Read it before any non-trivial change.

Non-negotiables

  • CI contract (docs/agent-guidance.md, "CI contract for agents and routines"): it binds every agent and routine and wins over a less restrictive routine prompt. One pull request in flight, no comparison with the main branch, no forced push, no comment after an approve.
  • Issues: no issue waits for the owner (docs/agent-guidance.md, "Issues: no issue waits for the owner"). Decide, write the decision and its reason, deliver; hold only for the irreversible, a missing access, a named open dependency or a routine's attempt cap.
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. 4d ago Changed · +1 lines · +59 tokens per session 5acc534ecf78
  2. 6d ago First seen · 14 lines · 133 tokens per session scan A 40e3ca53ae4f

Subscribe to this mod's changes

session-optimizer CLAUDE.md is an instructions file published in the GitHub repository cdeust/session-optimizer (1 stars, last pushed today), licensed MIT. It adds 192 tokens to every session, about $0.0008 per session on Opus 5.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-11-11.

Related

session-optimizer CLAUDE.md compared with instructions from other repositories

session-optimizer CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-optimizer CLAUDE.mdcdeust/session-optimizerInstructions file1todayMITA192Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA8,130Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,153GitHub Copilot
generative-ai-for-beginners AGENTS.mdmicrosoft/generative-ai-for-beginnersInstructions file124ktodayMITA2,981Codex, OpenCode