/chrono-vault:compact-nowfrom chrono-vault
Operator-triggered proactive compaction that externalizes load-bearing state (active decisions, open tasks, next action) to a snapshot and Vault learning note before invoking Claude Code's native /compact, then resumes from the snapshot.
Ships in chrono-vault. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Chrono-side proactive compaction. The operator triggers via slash phrase. Chrono:
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. The context tripwire hook (bin/context-tripwire.sh)
already reports the measured token count on every prompt once it passes 400k, so a
WARN/HARD line in the current turn is the direct signal; below that, pressure is inferred
from the § 9 proxy signals.record("learning", {...}) writer — captures active decisions (authority), open tasks, pending approvals, and the next action._state/chrono/compaction/<session>.json via chrono_state.compaction.snapshot()./compact.chrono_state.compaction.recover() and re-anchors on the next operator turn — never bulk-re-reading conversation history./compact-now (explicit)compact now / please compact / let's compact in prose (intent-recognition)shared/lifecycle.md § 8 and the operator nudges affirmativelyregistry_view()["live"] non-empty) — surface blockers firstshared/lifecycle.md § 8 threshold — no benefit, just costChrono 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.
# Chrono inline (not dispatched)
import json, sys
sys.path.insert(0, "scripts/python")
from chrono_state.compaction import snapshot # noqa: E402
from chrono_state.registry import registry_view # noqa: E402
from chrono_state.decisions import active_decisions # noqa: E402
# ONE classification pass over the LIVE registry (_state/active-tasks.json).
# registry_view() is the current API for this gate. The dead bounded-registry helper
# load_active() was removed; it read _state/tasks/active.json, which the live board
# does not feed. registry_view() partitions by the real vocabulary in
# registry.LIVE_STATUSES / DEFERRED_STATUSES; never hand-write status literals here,
# or the gate filters on a status the board does not emit and passes vacuously.
board = registry_view()
# Live work is a hard blocker and IS mechanical -- the board knows it, so ask the
# board. Whether context pressure warrants compacting at all is Chrono's judgment
# against shared/lifecycle.md rule 8; there is no predicate for it and no token
# counter to feed one (rule 9: proxy signals only).
blockers = [t["id"] for t in board["live"]]
if blockers:
surface_to_operator(f"Blockers: {blockers}. Proceed anyway?")
if not operator_confirms:
return
# An unclassified status is owed work the partition cannot see — surface it loudly
# rather than compacting over it (same contract as the resume capsule).
if board["unclassified"]:
surface_to_operator(f"UNKNOWN registry statuses: {board['unclassified']}. Proceed anyway?")
state = {
"next_action": next_action,
"active_decisions": active_decisions(), # AUTHORITY — not Vault evidence
"active_tasks": board["live"],
"deferred_tasks": board["deferred"], # owed work; stalled, not executing
"latest_turn": latest_operator_turn,
"pending_approvals": pending_approvals,
}
# 1) Durable Vault note via the CURRENT API — record(note_type, fields), NOT the stale
# record_finding(role=, canonical_name=, ...) signature. fields require title/body/
# target/attack_class; unknown fields are rejected.
mcp__chrono_vault__record("learning", {
"title": f"compact-now externalization ({session_id})",
"body": json.dumps(state, indent=2),
"target": "chrono-orchestrator",
"attack_class": "session-continuity",
"keywords": ["compaction", "resume", "chrono"],
"source_task": current_task_id,
})
# 2) Atomic snapshot to _state/chrono/compaction/<session>.json
snapshot(session_id, state)
# 3) Invoke Claude Code's native /compact
trigger_native_compact()
# 4) After compact: recover ONLY from the snapshot, never bulk-re-read history.
# from chrono_state.compaction import recover; recover(session_id)
scripts/python/chrono_state/compaction.py (snapshot, recover). The
threshold policy is prose, not code: shared/lifecycle.md § 8.scripts/python/chrono_state/decisions.pyscripts/python/chrono_state/registry.py (registry_view — live /
deferred / unclassified; LIVE_STATUSES is the only status vocabulary. The dead bounded-file
helper load_active() was removed; registry_view() is the correct API for this blocker gate.)scripts/python/chrono_state/resume.pyrecord(note_type, fields) — see plugins/chrono-vault/README.mdscripts/python/tests/test_resume_canary.py.claude/settings.json declares oneWhat SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/blind-rediscoveryOperational checklist + helper for blind-rediscovery fan-out work. Splits per-target dossiers into _blind/ (voice-readable, no prior-finding refs) and _curated/ (operator-only, prior findings + comparisons). Use when running Stage 3 hypothesis exploration on a target with prior chrono work./parity-probeRun representative capability smoke tasks through the ordinary VibeSquad board after lane, adapter, native-CLI, or utility-MCP changes.npx claudepluginhub mtarcure/claude-vibe-squad --plugin chrono-vaultOther plugins' skills for the same job