mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-25 09:34:00 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
927 B
927 B
/compact
The /compact command is a context management tool designed to optimize your session's memory when the context window begins to fill up. Instead of completely wiping your history like /clear, /compact instructs Claude to generate a concise summary of the key decisions, code changes, and project state established so far. It then replaces the bulky, line-by-line conversation history with this summarized version, effectively "compressing" the tokens used while preserving the essential knowledge the AI needs to continue the task.
Visit the following resources to learn more: