CCAR-F scenarios › Code Generation with Claude Code · Question 19 of 60

Scenario 2 · Code Generation with Claude Code

Your engineering team relies on Claude Code to generate, refactor, debug, and document code. You're responsible for fitting it into the team's workflow: custom slash commands and skills, a sensible CLAUDE.md setup, and knowing when a task calls for plan mode and when direct execution is enough.

Context Management & Reliability

During a long debugging session, the context has filled with verbose test-runner output and file listings from earlier investigation steps. You still need to keep working in this session, and the conclusions so far are sound. What is the most appropriate action?

Show answer and explanation

Answer: B — Run /compact to reduce context usage by condensing the verbose discovery output, then continue the investigation in the same session with the conclusions preserved.

/compact reduces context usage during extended sessions that have filled with verbose discovery output, so you can keep working with the important conclusions intact (task 5.4). A fresh session from memory (a) throws away sound conclusions and relies on recall. Pushing on until the window is full (c) invites the degradation and inconsistency you're trying to avoid. /memory shows which memory files are loaded (task 3.1); it doesn't move conversation output into them (d).