Skip to lesson
Exit
Search your codebase with agent1 / 1

1 min lesson

Verify a codebase answer

Practice codebase search on one real case. Open the returned files and confirm a known reference.

Check your understanding

Complete the practice "Trace auth token validation with targeted codebase search".

Outcome: The narrowed answer names the defining file and both callers. Exact grep confirms every reference.

Trace auth token validation with targeted codebase search
Instant Grep and file reads
SayFind every use of verifyToken and trace the route from the API handler to token validation.
SeeAgent uses exact grep, opens the defining file and follows the references into two callers.
DoOpen the definition and both call sites Agent named.
TypeverifyToken(
SeeExact grep finds the definition and the same two call sites. The answer's route matches the code.
SayIf the first answer is too broad, limit the search to /src/auth and ask for the route again.
SeeThe narrowed answer names the defining file and both callers. Exact grep confirms every reference.
Learn more

Optional practice

Test yourself on Verify a codebase answer

QWhat should be true when you finish the Codebase search practice?

Finish the check to continue.