Skip to content
Skill

Compact now

Snapshots agent state to a file and Vault note before running native /compact

Compact now is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
227
Last commit
License
MIT
Listing updated

Similar skills

About Compact now

Compact now is a Chrono-side routine for a Claude Code orchestrator that wants to compact its context on purpose rather than waiting for it to fill. When triggered, it checks the live task board for work still in flight and asks the operator before proceeding if any exists or if a task status is unrecognized. It then records active decisions, open and deferred tasks, pending approvals and the next action to a durable Vault learning note and to a JSON snapshot, and only after that invokes the native compact command.

After compaction, the skill recovers state from the snapshot and re-anchors on the operator's next turn, explicitly avoiding a re-read of the full conversation history. The flow relies on the chrono_state Python helpers and the chrono-vault MCP writer, and the snapshot path is a per-session file under the state folder.

The skill expects a Chrono-style setup with those helper modules and the chrono-vault MCP server available. A PreCompact hook is optional and not required for the flow to work.

When your agent uses it

Operator-triggered proactive compaction — Chrono externalizes load-bearing state (active decisions, open tasks, next action) to a snapshot + a durable Vault learning note before invoking Claude Code's native /compact, then resumes from the snapshot. Use when the operator says "/compact-now" / "compact now" or when Chrono has flagged context pressure against shared/lifecycle.md rule 8.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the chrono-vault plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add mtarcure/claude-vibe-squad
/plugin install chrono-vault@claude-vibe-squad

Or copy only this skill to ~/.claude/skills/compact-now:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/compact-now &&
cp -R "$tmp/plugins/chrono-vault/skills/compact-now" ~/.claude/skills/compact-now &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/compact-now inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/compact-now to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/compact-now &&
cp -R "$tmp/plugins/chrono-vault/skills/compact-now" ~/.agents/skills/compact-now &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/compact-now inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/compact-now to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/compact-now &&
cp -R "$tmp/plugins/chrono-vault/skills/compact-now" ~/.cursor/skills/compact-now &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/compact-now inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path plugins/chrono-vault/skills/compact-now

Or copy the folder to ~/.gemini/skills/compact-now yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/compact-now:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/compact-now &&
cp -R "$tmp/plugins/chrono-vault/skills/compact-now" ~/.copilot/skills/compact-now &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/compact-now inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git

Then copy claude-vibe-squad/plugins/chrono-vault/skills/compact-now into your agent's skills folder as compact-now. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Live work check
Reads the task board and asks the operator before compacting if tasks are still running or statuses are unknown.
Vault state externalization
Writes active decisions, open tasks, approvals and the next action into a durable Vault learning note.
Session snapshot
Saves the same state to a per-session JSON file that can be read back after compaction.
Snapshot-based resume
Re-anchors from the snapshot rather than re-reading the whole conversation history.
Native compact trigger
Invokes Claude Code's built-in /compact command once state has been saved.

Good for

  • Compact the context of a long orchestration session without losing open tasks
  • Save current decisions and next steps before a manual compaction
  • Resume work after compaction from a saved snapshot
  • Check whether any background tasks are still running before compacting

Compact now FAQ

When does the skill trigger?

When the operator types /compact-now or a phrase like compact now or please compact, or after Chrono has flagged context pressure and the operator agrees.

When should Compact now not be used?

Not while live dispatches are running, not mid-task while Chrono is still processing, and not below the lifecycle threshold where compaction gives no benefit.

Does Compact now require a hook?

No. A PreCompact hook is optional and only fires if the settings file declares one; the skill saves state eagerly itself.

How do I install Compact now in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/compact-now to use it in all your projects, or to .claude/skills/compact-now in one project. Or install the chrono-vault plugin, which includes it: /plugin marketplace add mtarcure/claude-vibe-squad, then /plugin install chrono-vault@claude-vibe-squad.

Does Compact now run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Compact now?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Compact now?

The closest alternatives to Compact now are Magic compact, Context manager, Note, Atlas compact and Context budget.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from mtarcure/claude-vibe-squad

  1. Writes alt text, timed captions and transcripts for images, footage and audio

    • Open source
    • 227 GitHub stars
    • Design and media
  2. Guides building product agent system prompts with eval-backed boundaries and output

    • Open source
    • 227 GitHub stars
    • AI models and LLM tooling
  3. Guides authorized adversarial testing of autonomous LLM agents for injection and approval

    • Open source
    • 227 GitHub stars
    • Security
  4. Writes a typed game-event to audio-cue map that hands adaptive audio designs to engines

    • Open source
    • 227 GitHub stars
    • Developer tools
  5. Generates missing README, CHANGELOG, LICENSE and agent-context files at project delivery

    • Open source
    • 227 GitHub stars
    • Developer tools
  6. Builds and proves multi-step exploit chains from weak bug-bounty findings

    • Open source
    • 227 GitHub stars
    • Security