{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "kunchenguid-compact-adviser--get-compact-hints-in-codex-cli",
 "repo": "kunchenguid/compact-adviser",
 "repo_url": "https://github.com/kunchenguid/compact-adviser",
 "repo_slug": "kunchenguid-compact-adviser",
 "title": "Get hint-only /compact advice in Codex CLI on macOS or Linux",
 "page_title": "How to get hint-only /compact advice in Codex CLI on macOS or Linux with Compact Adviser",
 "summary": "Install the Compact Adviser hook in Codex CLI to see a compact hint after each finished turn.",
 "who": "A developer on macOS or Linux using Codex CLI for long sessions who wants a prompt to compact without giving up manual control.",
 "problem": "Codex CLI sessions grow over time, and there is no built-in signal for when compacting would be safe.",
 "outcome": "After a completed checkpoint, Codex shows a hint line under the answer. Codex never compacts on its own, so the decision stays with you.",
 "steps": [
  "Confirm you are on macOS or Linux, Node is 22.18 or newer, and Codex CLI is 0.153.0 or newer.",
  "Run `codex plugin marketplace add kunchenguid/compact-adviser`.",
  "Run `codex plugin add compact-adviser@compact-adviser`.",
  "Restart Codex and review the hook in `/hooks` once so it is trusted.",
  "Finish a turn and look for the `↳ Hook · Compact adviser:` line under the answer. If the hook cannot find Node, set COMPACT_ADVISER_NODE to an absolute node path."
 ],
 "agent_prompt": "Install compact-adviser in Codex CLI on <target macOS or Linux machine>: add the kunchenguid/compact-adviser marketplace, add compact-adviser@compact-adviser, then restart and trust the hook in /hooks. Expected output: a Compact adviser hint line appears after a completed turn. Verify the hook is trusted before reporting success.",
 "agents": [
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Codex support is limited to macOS and Linux, and Windows is not supported in this release.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node 22 or newer (22.18 or newer for Codex and Grok)",
  "One supported host: Pi 0.82.0 or newer, Claude Code 2.1.274 or newer, Codex CLI 0.153.0 or newer, or Grok Build 1.0.34 or newer",
  "A TypeSafe API key, supplied as TYPESAFE_API_KEY in the launch environment, a cwd .env file, or saved through the host settings where supported"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/kunchenguid-compact-adviser/get-compact-hints-in-codex-cli/",
 "md": "https://dedupedai.com/use-cases/kunchenguid-compact-adviser/get-compact-hints-in-codex-cli/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/kunchenguid-compact-adviser--get-compact-hints-in-codex-cli.json",
 "api_version": "v1"
}
