English(EN)Claude Code /compact vs /clear: what actually happens to your context
Claude Code 用户探索高级管理和优化技术
作者PulseAugur 编辑部·[17 个来源]·
多位用户正在探索 Claude Code(一款 AI 编码助手)的高级技术和配置。一位用户开发了“Spool”,一个用于管理持久化 Claude Code 循环的工具,该工具可以协调工作并通过 Telegram 和 Slack 等聊天界面进行通信。其他用户正在讨论优化 Claude Code 性能和上下文窗口使用的方法,包括禁用“空闲时压缩”功能以防止意外的会话摘要,以及实现 bash 钩子来验证代码更改并防止错误。讨论还涵盖了安装方法、CLI 与桌面应用程序的偏好,以及运行多个账户或高效管理大型项目的策略。
AI
影响
用户正在开发工具和高级配置,以增强 Claude Code 等 AI 编码助手的实用性和效率。
<p>You don't keep one context window alive for days. You run a chain of bounded sessions that share durable state on disk (a progress file, a task list, git history), and you make the handoff between sessions automatic and checkable.</p> <p>I've been running Claude Code agents th…
dev.to — Claude Code tag
TIER_1English(EN)·Will Gwyn·
<p><code>/compact</code> replaces your conversation with a summary Claude writes and keeps the same session going. <code>/clear</code> starts a new conversation with an empty context. Your project memory, like CLAUDE.md, still loads, and the old conversation stays available throu…
dev.to — Claude Code tag
TIER_1English(EN)·Will Gwyn·
<p>Turn off auto-compact in <code>/config</code> (the Auto-compact toggle), or set <code>"autoCompactEnabled": false</code> in your settings file, or launch with <code>DISABLE_AUTO_COMPACT=1</code>. That stops the automatic summary, but it doesn't give you a bigger context window…
dev.to — Claude Code tag
TIER_1English(EN)·Tahir Nazir·
<p><em>Originally published at <a href="https://www.its-tahir.com/blog/claude-code-compacted-while-idle" rel="noopener noreferrer">its-tahir.com</a>.</em></p> <p><strong>To stop Claude Code's "Compacted while idle" summaries, add <code>"idleCompaction": false</code> to your setti…
dev.to — Claude Code tag
TIER_1English(EN)·98dkcc488b-glitch·
<p>Last month Claude Code told me it had added a regression test. The commit landed. The PR merged. Two days later a bug slipped through — the test wasn't actually there. The agent had claimed the work, generated a convincing diff summary at the end of the turn, and the tool-call…
dev.to — Claude Code tag
TIER_1English(EN)·aicoding-guide·
<p><em>Originally published at <a href="https://aicoding-guide.com/en/posts/claude-code-getting-started/" rel="noopener noreferrer">https://aicoding-guide.com</a>.</em></p> <p>Two things trip people up on a first install of Claude Code: which install method to pick, and what to c…
dev.to — Claude Code tag
TIER_1English(EN)·Ilya Gorban·
<p><strong>TL;DR:</strong> Ten or more parallel Claude Code sessions work if you treat them as a small distributed system: ownership by function, one writer (a governance session) for shared rules and hooks, approval never relayed, repeat mistakes turned into guard hooks. Assumpt…
Medium — Claude tag
TIER_1English(EN)·Umer Daraz Khan·
<p><em>Originally published on <a href="https://contextforge.dev/blog/how-to-stop-claude-code-from-losing-context" rel="noopener noreferrer">contextforge.dev</a>.</em></p> <p>Yesterday I was in the middle of a release with Claude Code. Two hours in, the session hit the context li…
Medium — Claude tag
TIER_1English(EN)·Dharmendra Pratap Singh·
<div class="medium-feed-item"><p class="medium-feed-snippet">A practical guide to controlling context, reducing noise, and preserving important engineering decisions while working with AI coding…</p><p class="medium-feed-link"><a href="https://medium.com/@dharamai2024/cont…
Medium — Claude tag
TIER_1English(EN)·techpotions·
<!-- SC_OFF --><div class="md"><p>Hey everyone!</p> <p>I'm pretty new to Claude (only been using it for about 2 weeks), and I'm still figuring things out. My first week of Claude Pro lasted barely 4 days before I hit the usage limits 😅</p> <p>I was told my <code>PROJECT_STATUS.md…
<!-- SC_OFF --><div class="md"><p>Curious what the people who use Claude Code a lot actually go with.<br /> I personally like the CLI more. It just feels right for coding, and I like that it's its own separate thing. The normal chat lives in the app, Claude Code lives in my termi…
<!-- SC_OFF --><div class="md"><p>Hey, I’m looking for ways to manage my tasks better. I’m a pretty disorganized person.</p> <p>I have lots of projects running in parallel (hobbies, university, work). I’ve adjusted my workflow several times, but I still haven’t really found a sma…
<!-- SC_OFF --><div class="md"><p>In addition to an i7 8th generation cpu in my laptop I have an i5 7th generation NAS box running Debian and a ryzen 5 PC running windows 11. </p> <p>Claude is now configured to share out code compiling and tasks among the 3 machines over a 1GB LA…