AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Oct 18, 2026, 22:00 JST

Developer drops context-shrinking for Claude Code, clears per task

Developer drops context-shrinking for Claude Code, clears per task

3 Key Points

  1. What happened

    A developer writing on Zenn says he stopped dividing work to keep Claude Code's context small, letting Sonnet handle investigation through testing in one session, then running /clear.

  2. Why it matters

    He argues that interrupting a task just to save context breaks continuity, while a separate Opus session for review gives a fresh perspective on the code.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The developer's shift came after noticing that even a single small request could balloon context, because recent Sonnet versions investigate related code, implement, verify, and test in one go. Splitting tasks further to save context meant interrupting that flow and re-explaining the situation in a new session, which he judged worse for keeping the reasoning behind implementation decisions intact.

His current setup separates concerns by session rather than by context size: Sonnet carries a task from request through testing in the main session, Opus reviews in a separate session to avoid being anchored by the implementation conversation, and fixes go back to the original Sonnet session until review passes. Only then does he run /clear. He explicitly notes this is his own judgment, not a quantitative comparison of quality, and that manual /compact is not something he has found necessary in his style of work.

FAQ
What models does the developer use for implementation and review?
Sonnet handles implementation and fixes in the main session, while Opus reviews the code in a separate session.
Does the developer use /compact manually?
No. He does not run /compact manually and leaves auto-compact to Claude Code when a task runs long.
When does the developer clear the session?
He runs /clear once implementation, testing, review, and fixes are all complete, starting the next task with fresh context.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleOnlyFans creators question Meta's Muse sexting while Instagram restricts them