Skip to content
BeClaude

compact-plus

New
57GitHub TrendingGeneralby u-ichi

Claude Code plugin: preserve and restore working state around /compact

Summary

compact-plus is a Claude Code plugin that preserves and restores your working state around the /compact command.

  • It saves the current conversation context, including system prompts and user messages, before compaction and restores them afterward, ensuring no critical information is lost during session management.

Install & Usage

1
Create the skills directory
mkdir -p .claude/skills
2
Download the skill file

Add the configuration to .claude/skills/compact-plus.md

3
Invoke in Claude Code
/compact-plus

Use Cases

Save the current conversation state before running /compact to avoid losing context.
Restore a previously saved state after compaction to continue work seamlessly.
Automatically backup conversation history when memory limits are reached.
Switch between different working contexts by saving and restoring multiple states.
Recover from accidental compaction by restoring the last saved state.
Maintain continuity in long coding sessions by preserving state across compactions.

Usage Examples

1

/compact-plus save my-session

2

/compact-plus restore my-session

3

/compact-plus list

View source on GitHub
plugin

Security Audits

LicenseUnknownSourceWarnRepositoryPass

Frequently Asked Questions

What is compact-plus?

compact-plus is a Claude Code plugin that preserves and restores your working state around the /compact command. It saves the current conversation context, including system prompts and user messages, before compaction and restores them afterward, ensuring no critical information is lost during session management.

How to install compact-plus?

To install compact-plus: create the skills directory (mkdir -p .claude/skills), then add the config to .claude/skills/compact-plus.md. Finally, /compact-plus in Claude Code.

What is compact-plus best for?

compact-plus is a other categorized under General. It is designed for: plugin. Created by u-ichi.

What can I use compact-plus for?

compact-plus is useful for: Save the current conversation state before running /compact to avoid losing context.; Restore a previously saved state after compaction to continue work seamlessly.; Automatically backup conversation history when memory limits are reached.; Switch between different working contexts by saving and restoring multiple states.; Recover from accidental compaction by restoring the last saved state.; Maintain continuity in long coding sessions by preserving state across compactions..