---
title: "Discussion on \"How do I make Claude Code auto clear instead of compact?\" | Hashnode"
description: "Discussion on \"How do I make Claude Code auto clear instead of compact?\". Claude Code has no built-in setting to auto clear instead of auto compact, so you have to do it from outside the session: have the agent write a checkpoint file before the window fills, then send /cle"
url: "https://hashnode.com/posts/how-do-i-make-claude-code-auto-clear-instead-of-compact/6aea3df8e475138977c76b63"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How do I make Claude Code auto clear instead of compact?](https://wrg32786.hashnode.dev/how-do-i-make-claude-code-auto-clear-instead-of-compact?utm_source=hashnode&utm_medium=feed)

Claude Code has no built-in setting to auto clear instead of auto compact, so you have to do it from outside the session: have the agent write a checkpoint file before the window fills, then send /cle

Nov 3 · 5 min read · wrg32786.hashnode.dev  
Read the article

-   [#claudecode](https://hashnode.com/tag/claudecode)
-   [#ai](https://hashnode.com/tag/ai)
-   [#productivity](https://hashnode.com/tag/productivity)
-   [#opensource](https://hashnode.com/tag/opensource)

## Written by

[Will Gwyn](https://hashnode.com/@wrg32786)

@wrg32786

  
[View profile](https://hashnode.com/@wrg32786)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
