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).
More from this scenario
- You're adding comprehensive tests to a legacy service in phases. In phase one, a…
- A new engineer joins and finds that Claude Code ignores the team's error-handling and…
- Your monorepo has a shared standards folder with files for API design, PCI handling…
- The root CLAUDE.md has a long section on database migration conventions. Migration files…
- Your team's /map-dependencies skill reads dozens of files and produces several thousand…