A product manager opens Copilot Chat in VS Code to map duplicate login error handling across a TypeScript monorepo, needing repo-wide context and file references, while a teammate needs terminal command help in the same session. Which agent selection should the product manager make in Copilot Chat to get accurate codebase answers?
Select an answer to reveal the explanation.
Short Explanation
You've got the right library, you just need the right librarian, and the workspace agent reads your shelves. It's like asking the archivist instead of the receptionist for old records.
Full Explanation
The correct choice succeeds because mapping duplicate login error handling across a TypeScript monorepo is a codebase comprehension task that requires retrieval over the whole repository plus citable evidence, and the workspace-aware coding agent is specifically designed to ground answers in the open repository index with linked files that can be opened and verified. The terminal-aware choice fails by agent specialization concept even though it mentions repository and linked files, since that agent family is tuned for explaining and constructing shell commands and terminal workflows, which matches the teammate need but not the product manager need for accurate codebase answers. The context-only choice fails by evidence concept because answering from repository context without file references removes traceability, leaving the manager unable to locate each duplicate handler, compare implementations, or assign follow-ups, which is essential when the stated need explicitly includes file references. The generation-focused choice fails by task-type concept because creating new login handling synthesizes fresh implementation rather than analyzing and mapping existing duplication, so it would add code instead of producing the inventory of where handling already diverges. Exam caveat to remember is that Copilot Chat sessions can share a window while still requiring distinct agent modes for distinct intents, so the presence of a second terminal need does not change the correct agent for the codebase question. As a practical check before accepting an answer, confirm the response cites repository files with clickable links and that the scope covers multiple packages or folders rather than one open editor, then follow a reference to verify the handler logic matches the summary.