compact-now

compact-now is a skill for Claude Code from mtarcure/claude-vibe-squad. It costs 82 tokens per session (1,434 once invoked), scanned A, original, MIT.

A command that saves important working state before compacting an agent's context. It records decisions, open tasks, and the next action, then resumes from that snapshot.

In plain words
What is it for?
It is for safely shortening an active coding session while keeping its current work understandable.
Why use it?
It helps prevent an agent from losing important context when its conversation becomes too large.

Skill for Claude Code

Written for Claude Code: PreCompact hook event. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the chrono-vault plugin — 3 skills shipped together

Good fit It is for safely shortening an active coding session while keeping its current work understandable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mtarcure/claude-vibe-squad/compact-now
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mtarcure/claude-vibe-squad --skill compact-now
Clone the repo
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad

Made for: Claude Code.

Or install chrono-vault, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compact-now

README.md
[![agentmods](https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/compact-now/github.svg)](https://agentmods.dev/skills/mtarcure/claude-vibe-squad/compact-now)
Your own site
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/compact-now"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/compact-now/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compact-now

Your own site · 80×15
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/compact-now"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/compact-now.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,434 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.01434
Opus 5 $0.00041 $0.00717
Sonnet 5 $0.00016 $0.00287
Haiku 4.5 $0.00008 $0.00143

Measured 6d ago against content hash 57bd8897ef29, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

compact-now scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/chrono-vault/skills/compact-now/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/compact-now

Chrono-side proactive compaction. The operator triggers via slash phrase. Chrono:

  1. Reads the live board partition via chrono_state.registry.registry_view() and confirms no live work is in flight. Whether context pressure warrants compacting is Chrono's judgment against shared/lifecycle.md § 8 — there is no predicate to call, and no token counter to call it with (shared/lifecycle.md § 9: pressure is inferred from proxy signals only).
  2. If blockers exist (live dispatches), surfaces them to the operator and asks whether to proceed anyway — likewise for any unclassified registry status, which the partition cannot vouch for.
  3. Externalizes load-bearing state to the Vault via the current record("learning", {...}) writer — captures active decisions (authority), open tasks, pending approvals, and the next action.
  4. Snapshots the same state to _state/chrono/compaction/<session>.json via chrono_state.compaction.snapshot().
  5. Invokes Claude Code's native /compact.
  6. After compact, reads the snapshot via chrono_state.compaction.recover() and re-anchors on the next operator turn — never bulk-re-reading conversation history.

When to invoke

  • Operator types /compact-now (explicit)
  • Operator types compact now / please compact / let's compact in prose (intent-recognition)
  • After Chrono has flagged context pressure against shared/lifecycle.md § 8 and the operator nudges affirmatively

When NOT to invoke

  • Live dispatches running (registry_view()["live"] non-empty) — surface blockers first
  • Mid-task (Chrono still processing) — wait for a task boundary
  • Below the shared/lifecycle.md § 8 threshold — no benefit, just cost

Implementation

Chrono runs this skill inline (not a subagent dispatch), operator-triggered. It uses the chrono_state helpers (in scripts/python/chrono_state/) and Chrono's existing chrono-vault MCP access. A PreCompact hook is OPTIONAL and only fires if .claude/settings.json declares one — do not depend on it; externalize eagerly here.

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 114 lines · 82 tokens per session scan A 57bd8897ef29

Subscribe to this mod's changes

compact-now is a skill published in the GitHub repository mtarcure/claude-vibe-squad (122 stars, last pushed yesterday), licensed MIT. It adds 82 tokens to every session and 1,434 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

handoff

Write a compact, decision-ready handoff so the next session (or the user) can continue without reconstructing the current one. Use when the session is ending, context is running low, the user asks for a handoff / "pass the baton" / "hand off", or a long-running operation needs a durable state checkpoint.

Hmbown/CodeWhale · 70 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

context-preservation

State capture and restore across context window compactions. Monitors usage thresholds and serializes quality, task, and spec state for seamless continuation.

a5c-ai/babysitter · 32 tokens

claude-code-expert

Especialista profundo em Claude Code - CLI da Anthropic. Maximiza produtividade com atalhos, hooks, MCPs, configuracoes avancadas, workflows, CLAUDE.md, memoria, sub-agentes, permissoes e integracao com ecossistemas.

aAAaqwq/AGI-Super-Team · 59 tokens

reflect

Use Recall Reflect to review AI coding workflow history as a conversation-first timeline and discuss observed patterns before changing behavior. Trigger when the user asks to reflect on a project, review AI coding workflow, inspect workflow friction, discuss repeated corrections, review handoffs, or explore possible…

samzong/Recall · 57 tokens

claude-compaction-restore

Use when a Claude Code session has just compacted, is about to compact, reached context limit, resumed after /compact, or needs to rebuild its working mental model from Claude JSONL transcripts and touched files.

mvschwarz/openrig · 49 tokens