Latch Compact — Development skill for Claude Code
Manually trigger a latch compaction for the current session.
How to install Latch Compact
Installs to ~/.claude/skills/open-latch-latch-latch-compact/SKILL.md
mkdir -p ~/.claude/skills/open-latch-latch-latch-compact && curl -fsSL https://raw.githubusercontent.com/open-latch/latch/HEAD/commands/latch-compact.md -o ~/.claude/skills/open-latch-latch-latch-compact/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Latch Compact does
description: Manually trigger a latch compaction for the current session
Run a compaction pass for the current Claude Code session against the
per-project knowledge base under `
The compaction runs in a separate `claude -p` subprocess that takes its own context — it does NOT consume tokens from this session. We launch it in the background so the main session stays interactive while compaction runs.
This combines/overwrites the prior session_summary node with the latest stat
Alternatives in Development
- /discover — Run a full discovery loop without manually stitching together skills 2.3k ★
- Icpg Intent — Manually create or update an iCPG intent (ReasonNode) for a file before implementing 705 ★
- Run Stack Tests — Skill: Run stack-tests (stacktest-) manually 295 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Learn Review
Manually trigger a learning review of the current session
Skill Compact
Shrink Claude Code SKILL.md token cost without breaking skills. Trigger-preserving description gate + lossless
Compact
Prepare session state for context compaction — capture learnings, save state, then compact
Fire Cost
Track context usage, estimate session costs, and trigger strategic compaction
Dsh Fast
Read-only performance diagnostics for DeepSeek Harness: session load/restore timing, spill-hit counts, compact
Write Post
Manually write and publish a blog post about the current session
Related Agents
Comment Pruner
Autonomously prune bad comments from code added in the current session. Dispatched by the comment-pruner Stop
Summarize
Gather current session context for compact survival using Aspy data
Automation Sentinel
Use this agent to monitor, analyze, and optimize the automation ecosystem (agents, commands, hooks). This is a