<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/when-was-the-last-time-you-ran-compact-yourself-claudecode-jdljwcyaw" -->

---
title: When was the last time you ran /compact yourself?...
description: Manually running Claude Code's /compact command before the context window fills up can improve performance. Rather than waiting for Claude to auto-compact when...
canonical: https://daily.dev/posts/when-was-the-last-time-you-ran-compact-yourself-claudecode-jdljwcyaw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: When was the last time you ran /compact yourself? #claudecode | daily.dev
og:description: Manually running Claude Code's /compact command before the context window fills up can improve performance. Rather than waiting for Claude to auto-compact when...
og:url: https://daily.dev/posts/when-was-the-last-time-you-ran-compact-yourself-claudecode-jdljwcyaw
og:image: https://api.daily.dev/og/posts/jDljWCyaw.png
og:image:alt: When was the last time you ran /compact yourself? #claudecode
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# When was the last time you ran /compact yourself? #claudecode

**[We Are .NET](https://daily.dev/sources/wearedotnet)** · 1 min read · 0 upvotes · 0 comments

## Summary

Manually running Claude Code's /compact command before the context window fills up can improve performance. Rather than waiting for Claude to auto-compact when the context is nearly full, running the command proactively as soon as you notice degraded responses leads to a smoother experience.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/shorts/QtSTF-KqVC0>

## Questions this post answers

### When should I manually run /compact in Claude Code instead of waiting for it to auto-trigger?

Run /compact yourself as soon as you notice Claude Code's responses degrading in quality, rather than waiting for the tool to trigger it automatically when the context window is almost full. Manually compacting earlier keeps performance from dropping and gives a better overall experience during long coding sessions.

_Developers fine-tuning long AI coding sessions swap workflow tips like this one on daily.dev._

## Similar posts on daily.dev

- [Claude Code Context Management](https://daily.dev/posts/claude-code-context-management-4iv2b3ese) · SitePoint · 0 upvotes · 0 comments
- [Manual compaction is now available in VS Code](https://daily.dev/posts/manual-compaction-is-now-available-in-vs-code-t8onhq4oz) · The Art of Simplicity · 0 upvotes · 0 comments

---

Tags: [#claude-code](https://daily.dev/tags/claude-code), [#vibe-coding](https://daily.dev/tags/vibe-coding)

[View this post on daily.dev](https://daily.dev/posts/when-was-the-last-time-you-ran-compact-yourself-claudecode-jdljwcyaw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"When was the last time you ran /compact yourself? #claudecode","url":"https://daily.dev/posts/when-was-the-last-time-you-ran-compact-yourself-claudecode-jdljwcyaw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/when-was-the-last-time-you-ran-compact-yourself-claudecode-jdljwcyaw"},"datePublished":"2026-09-07T11:12:26.635Z","dateModified":"2026-09-09T14:38:02.515Z","description":"Manually running Claude Code's /compact command before the context window fills up can improve performance. Rather than waiting for Claude to auto-compact when...","image":"https://i.ytimg.com/vi/QtSTF-KqVC0/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/QtSTF-KqVC0/sddefault.jpg","isAccessibleForFree":true,"articleSection":"We Are .NET","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"We Are .NET","logo":"https://media.daily.dev/image/upload/s--BsnVOa3i--/f_auto/v1718347410/logos/wearedotnet","url":"https://daily.dev/sources/wearedotnet"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/when-was-the-last-time-you-ran-compact-yourself-claudecode-jdljwcyaw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"claude-code,vibe-coding","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"When was the last time you ran /compact yourself? #claudecode","description":"Manually running Claude Code's /compact command before the context window fills up can improve performance. Rather than waiting for Claude to auto-compact when...","thumbnailUrl":"https://i.ytimg.com/vi/QtSTF-KqVC0/sddefault.jpg","uploadDate":"2026-09-07T11:12:26.635Z","duration":"PT1M","url":"https://api.daily.dev/r/jDljWCyaw","embedUrl":"https://www.youtube.com/embed/QtSTF-KqVC0"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"We Are .NET","item":"https://daily.dev/sources/wearedotnet"},{"@type":"ListItem","position":3,"name":"When was the last time you ran /compact yourself? #claudecode"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/when-was-the-last-time-you-ran-compact-yourself-claudecode-jdljwcyaw#faq","mainEntity":[{"@type":"Question","name":"When should I manually run /compact in Claude Code instead of waiting for it to auto-trigger?","acceptedAnswer":{"@type":"Answer","text":"Run /compact yourself as soon as you notice Claude Code's responses degrading in quality, rather than waiting for the tool to trigger it automatically when the context window is almost full. Manually compacting earlier keeps performance from dropping and gives a better overall experience during long coding sessions. Developers fine-tuning long AI coding sessions swap workflow tips like this one on daily.dev."}}]}
```

