CCAR-F scenarios › Developer Productivity with Claude · Question 38 of 60
Scenario 4 · Developer Productivity with Claude
Your team is building internal developer tools on the Claude Agent SDK. The agent helps engineers find their way around unfamiliar or legacy codebases, generates boilerplate, and automates repetitive chores. It works through the built-in Read, Write, Bash, Grep, and Glob tools, plus connections to Model Context Protocol (MCP) servers.
Agentic Architecture & Orchestration
An engineer asks the agent to "add comprehensive tests to the legacy inventory service," a 200-file codebase with almost no tests. The agent starts writing unit tests file by file in alphabetical order. After an hour, the most heavily used stock-reservation logic still has no tests, and many of the new tests mock modules that turned out to be dead code. Which decomposition strategy should the agent use?
Show answer and explanation
Answer: C — First map the structure and find high-impact areas, then build a prioritized plan that the agent revises as it discovers dependencies along the way.
This is an open-ended investigation task, so it calls for dynamic decomposition: map the structure, find the high-impact areas, and prioritize, adapting the plan as dependencies come to light. That is exactly how section 6 describes handling "add comprehensive tests to a legacy codebase." (a) keeps the fixed, priority-blind order that caused the problem. (b) parallelizes the same unprioritized work and adds merge overhead. (d) optimizes a coverage number and uses an arbitrary cap, not a judgment of impact.
More from this scenario
- An engineer spent a long session having the agent analyze a legacy authentication…
- Your Agent SDK loop for the "automate repetitive tasks" feature sometimes stops halfway…
- An engineer asks the agent, "Where is calculateLateFee called in this legacy billing…
- Your team connected an internal MCP server whose find_symbol_references tool resolves…
- Select two. The whole team should get the productivity agent's connection to your…