compact-adviser SKILL.md skillA

compact-adviser from kunchenguid/compact-adviser is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add kunchenguid/compact-adviser/compact-adviser@git:20261002.2e90535

Pins git:20261002.2e90535 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
kunchenguid/compact-adviser
Path
packages/codex-plugin/skills/compact-adviser/SKILL.md
Versions recorded
2
Latest version
git:20261002.2e90535, committed Oct 2, 2026
First version recorded
Sep 18, 2026
Size
2,039 bytes
Repository stars
233
License
MIT

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.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 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:

```bash
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 |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add kunchenguid/compact-adviser/compact-adviser@sha256:2799f20ceb702216

The line at the top of this page pins the label git:20261002.2e90535, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_panjshqxz6taoxbg.svg)](https://markdownregistry.com/a/art_panjshqxz6taoxbg)

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Sep 18, 2026 and Oct 2, 2026, about one every 13 days.

versioncommittedcommitsizeaudit
git:20261002.2e90535 latest2026-10-02 2e90535 2,039 BA view · diff
git:20260918.17e441a2026-09-18 17e441a 1,844 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2039 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

kunchenguid/compact-adviser · 233 stars · license MIT · pushed 2026-10-26 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_panjshqxz6taoxbg
GET https://markdownregistry.com/api/v1/resolve?ref=kunchenguid/compact-adviser/compact-adviser
GET https://markdownregistry.com/api/v1/blob/2799f20ceb7022164e9f79be30ce3817e01373e3f9ddbb1f88695b6865595938

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from kunchenguid/compact-adviser

codex-adapter SKILL.md skill
kunchenguid/compact-adviser · .agents/skills/codex-adapter/SKILL.md · Use when modifying or testing `packages/codex-plugin` or Codex `/compact` behavior.
git:20260920.d1655fa · audit A · 233 stars
judge-evaluation SKILL.md skill
kunchenguid/compact-adviser · .agents/skills/judge-evaluation/SKILL.md · Use when changing or evaluating judge prompts, scoring thresholds, usage floors, or judgment eval corpora.
git:20260920.d1655fa · audit A · 233 stars
AGENTS.md AGENTS.md file
kunchenguid/compact-adviser · AGENTS.md
git:20260929.a73995f · audit A · 233 stars
CLAUDE.md CLAUDE.md file
kunchenguid/compact-adviser · CLAUDE.md
git:20260918.7e7095e · audit B · 233 stars

Every file in kunchenguid/compact-adviser

Browse by kind, by grade A, or by owner.