Skip to content
Agent Memory
Skill

/compact-adviser

Read or change compact-adviser settings for Codex - the mode (hint or off), the minimum context before a checkpoint is judged, the context budget, TypeSafe request logging, and the TypeSafe API key. Use when the user asks about compaction advice, the /compact hint,

From plugin
compact-adviser
2361 skill6 commands

Claude Code

$ npx -y skills add kunchenguid/compact-adviser --skill compact-adviser --agent claude-code

SKILL.md

compact-adviser.SKILL.md
name: compact-adviser
description: Read or change compact-adviser settings for Codex - the mode (hint or off), the minimum context before a checkpoint is judged, the context budget, TypeSafe request logging, and the TypeSafe API key. Use when the user asks about compaction advice, the /compact hint, compact-adviser status, or wants to turn the adviser on or off.

compact-adviser settings

compact-adviser watches for a completed checkpoint and prints one hint to run `/compact`. It cannot run `/compact` itself: Codex exposes no way for an outside process to do that, so this host is hint-only and there is no automatic mode. Never claim otherwise.

How to run it

Settings live in a small CLI inside this plugin. From the directory that holds this `SKILL.md`, the CLI is at `../../src/cli.ts`; run it with the absolute path:

node "<this skill's directory>/../../src/cli.ts" <command>

macOS or Linux and Node 22.18 or newer are required, because the CLI is TypeScript that Node strips types from and the hooks run through POSIX `sh`.

Commands

| Command | Effect | | --- | --- | | `status` | Mode, minimum, budget, key source, the latest session's cooldown, and the request-log path | | `hint` | Advise with a hint at eligible checkpoints (the default) | | `off` | Stop advising; Codex's own compaction is unaffected | | `threshold <tokens\|default>` | Save an absolute token minimum | | `budget <tokens\|off>` | Save a context budget (`off` clears it): the hint floor relaxes toward this context size, or toward the model's window if that is smaller | | `log <on\|off>` | Log each TypeSafe request and its outcome to a local jsonl file | | `key set` | Prompt for a TypeSafe API key and save it; the value is never printed | | `key clear` / `key status` | Remove the saved key, or report which source the key in effect came from |

`key set` reads the key from the terminal, so ask the user to run that one themselves rather than passing a key on a command line. Never print, echo, or repeat a key value.

Read more
@kunchenguid
Ships withcompact-adviser

"Work appears completed or recorded. Run /compact to save tokens."

Stars on GitHub

Momentum

stars in total
236
Star history of kunchenguid/compact-adviser on GitHub, a chart by star-history.com

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@milla-jovovich@milla-jovovichInstall Skill

Questions about compact-adviser.

Which coding agents can use compact-adviser?
compact-adviser installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.