{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "blendbunjaku-optimaizr--check-context-compaction-results",
 "repo": "blendbunjaku/optimaizr",
 "repo_url": "https://github.com/blendbunjaku/optimaizr",
 "repo_slug": "blendbunjaku-optimaizr",
 "title": "Check whether compacting at 200K actually saved money",
 "page_title": "How to check whether compacting at 200K actually saved money with Optimaizr",
 "summary": "Apply the change, wait several days, then compare cost per prompt and each trade-off to the days before.",
 "who": "A Claude Code or Codex user who wants proof that a context-size change cut cost before keeping it.",
 "problem": "A cost saving can come with more tool calls, errors or waiting, and it is unclear whether the change caused them.",
 "outcome": "A before and after table where every worse row is marked as a trade-off, plus a one-command way to undo the change.",
 "steps": [
  "Run `optimaizr apply context-compaction`.",
  "Use Claude Code or Codex normally for several days.",
  "Run `optimaizr results` to compare the days after with the days before.",
  "If the trade-offs are not worth it, run `optimaizr undo context-compaction`."
 ],
 "agent_prompt": "In the optimaizr repo, after context compaction has been applied for several days, run `optimaizr results` on this machine and report cost per prompt before and after. Verify that every row that got worse is marked as a trade-off before you draw a conclusion.",
 "agents": [
  "claude-code",
  "codex"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README says part of any saving may already have been under way, because the baseline is the days before the change.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 20.11 or later (22.13 or later to read opencode history)",
  "Existing usage logs from Claude Code, Codex or opencode on this machine",
  "A terminal"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/blendbunjaku-optimaizr/check-context-compaction-results/",
 "md": "https://dedupedai.com/use-cases/blendbunjaku-optimaizr/check-context-compaction-results/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/blendbunjaku-optimaizr--check-context-compaction-results.json",
 "api_version": "v1"
}
