Skip to content

AI Compass / Knowledge cards

Maintaining your Claude Code setup

clear out after every model change

Checked Prompting Automation Costs

A setup is everything Claude Code receives in every session: instruction files such as CLAUDE.md, skills, hooks and settings. All of it takes up context, that is, the space the model has to read along with every answer. With every new model, part of the old instructions becomes unnecessary, but it stays in place unless you tidy up.

What it is for

A lean setup saves context and usage limit. You also keep track of which instruction still applies.

Steps

  1. After every model change, run /doctor prompt-audit (from version 2.1.283). The command checks the CLAUDE.md files, skills and other settings for outdated or contradictory instructions. Read the suggestions before you accept them.
  2. Run /skill-doctor (from version 2.1.252). It shows, for each skill, how much context it costs and how often it is used. Switch off skills that are rarely used.
  3. For a new project, set the environment variable CLAUDE_CODE_NEW_INIT=1 and then start /init. /init then sets the project up in a conversation. According to AI LABS, it first asks about how you work and writes only after you agree.
  4. Reduce permission prompts: /fewer-permission-prompts searches your past sessions for frequent read-only commands and adds them to the project’s allowlist.
  5. Plan mode: With the setting showClearContextOnPlanAccept, Claude Code offers to clear the context first when you accept a plan. plansDirectory sets the folder where plans are stored.
  6. Reduce consumption: With the model opusplan, Claude works with Opus in plan mode and otherwise with the cheaper Sonnet. CLAUDE_CODE_SUBAGENT_MODEL sets the default model for subagents, that is, helper agents that Claude starts for subtasks.
  7. Try new settings first in the settings of a test project, and only then move them into the user settings, which apply to all sessions.

What may stay

The commands above show what is in the setup. These checks decide whether it should stay:

Limits

Sources

Status

Checked 9 October 2026, section “What may stay” added 11 October 2026 · Maturity new · Commands and settings have been verified in the official docs. The videos give no figures for the effect (how much context is saved).

Want to try this with your team? That’s what the AI Lab is for. See the AI Lab