Home / Problems / Manage Claude Code context pressure

Workflow problem

Manage Claude Code context pressure

Large logs, long conversations and repeated tool output can consume context before the task is finished.

The problem

Large logs, long conversations and repeated tool output can consume context before the task is finished.

Native approach

Run `/context` to inspect context use and `/compact` to summarize the conversation when needed. Keep durable project decisions in files so they survive compaction.

Official Claude Code documentation ↗

Tools to consider

Trim bulky outputs and keep only task-relevant facts; compression can discard details you later need.

FAQ

Does `/compact` erase files?

No. It summarizes conversation context; project files remain on disk.

Should I save decisions before compacting?

Yes. Put critical constraints and next steps in files.