Skip to content
System One

konstantinosbotonakis/codex-context-diet

A Codex plugin that asks Jev which bulky tool results a session still needs, then replaces the rest with a bounded head and a one-line note, so long sessions don't resend stale output on every turn.

Two panels. On the left a desk is buried under a tall pile of printed pages. On the right the same desk holds one page and two sticky notes
Image from github.com

konstantinosbotonakis/codex-context-diet on GitHub

Stars
4
Forks
1
Language
TypeScript
Last push
23 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

layaWarmTimeoutMs: 120_000,
minTokens: 2000, keepThreshold: 0.5, dropThreshold: 0.25, truncateHeadChars: 300,
maxStateTokens: 25000, stateResultCapChars: 4000, requestTimeoutMs: 5000,
injectionGuard: true, model: 'jev-latest', neverDietTools: [],
promptGuard: false, promptGuardThreshold: 0.7, promptGuardTimeoutMs: 3500,
cacheMaxEntries: 40, cacheMaxBytes: 262144, debug: false,
logRetentionDays: 30,
pricePerMillionInputTokens: JEV_INPUT_PRICE_PER_MTOK,
privacyMode: 'strict',
neverSendPaths: ['**/.env', '**/.env.*', '**/*.pem', '**/*.key'],
neverSendTools: [],
capsuleMaxChars: 1200,
capsuleMaxErrorLines: 20,
capsuleMaxStackFrames: 10,
capsuleMaxSummaryLines: 8,

View in src/config.ts

Open on GitHub

More like this

Keep browsing