# Compact now

> Compact now is an open-source agent skill for developer tools. Snapshots agent state to a file and Vault note before running native /compact. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/plugins/chrono-vault/skills/compact-now
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** compact-now
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/plugins/chrono-vault/skills/compact-now)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/plugins/chrono-vault/skills/compact-now)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [Magic compact](https://ai-powered.com/skills/magic-compact): Magic compact is an open-source agent skill for ai models and llm tooling.
- [Context manager](https://ai-powered.com/skills/context-manager): Context manager is an open-source agent skill for developer tools.
- [Note](https://ai-powered.com/skills/note): Note is an open-source agent skill for developer tools.
- [Atlas compact](https://ai-powered.com/skills/atlas-compact): Atlas compact is an open-source agent skill for developer tools.
- [Context budget](https://ai-powered.com/skills/context-budget): Context budget is an open-source agent skill for developer tools.
- [Spec compact](https://ai-powered.com/skills/spec-compact): Spec compact is an open-source agent skill for developer tools.
- [Soia pkm log agent sessions](https://ai-powered.com/skills/soia-pkm-log-agent-sessions): Soia pkm log agent sessions is an open-source agent skill for developer tools.
- [Autonomous agent harness](https://ai-powered.com/skills/autonomous-agent-harness): Autonomous agent harness is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/compact-now
