# Before you ask the client's engineers, ask the call sites

> Sourcegraph shows where code starts, what calls it and who changed it lately, so the first question you take to the client is already narrow.

Original: https://fdetimes.net/en/tools/sourcegraph-call-sites-client-codebase/

Pauline Brunet, VP of Forward Deployed Engineering at Cursor, told AI Engineer World's Fair 2026 that engineers still have to configure systems and build inside the customer's codebase, but should not do it alone. On a first day on site, that advice has a very practical meaning: you need to know whom to ask, and what to ask them.

Asking the right question is harder than it sounds. You arrive at a repository you have never seen, the documentation may date from three refactors ago, and the person who understands the system best is stuck in meetings. Before you interrupt them, you need to answer three questions yourself: where the code starts running, what calls it, and who has changed what recently.

A code-reading tool cannot replace the person who understands the system. What it can do is help you bring that person a question that has already been narrowed down.

Sourcegraph is aimed squarely at those three questions. The company's About page describes it as a code intelligence platform that helps developers search, write and understand code quickly; its Tour documentation puts it more briefly, as a code search and intelligence tool for developers.

## Call sites tell you what the docs leave out

The two navigation features you will use most are Go to definition and Find references. Go to definition takes you straight to where a symbol is defined. The Find references panel lists the symbol's references, definitions and implementations.

Sourcegraph's Tour recommends using Find references to list every call site, which also helps you check whether a change has touched every place it needs to. According to the Tour, call sites are more useful than documentation because they show how the code is really being used.

**Key point:** Documentation says how code should be used; call sites show how it is being used.

Beyond the list of call sites, the Tour suggests looking at blame information for each line, meaning who wrote it and when, to judge which call sites are worth treating as examples.

A call site written last week by someone still active on the team is usually a better model than a block nobody has touched in four years, and the name in the blame is also the person you should ask.

## A morning with an unfamiliar function

Take a hypothetical case. The client asks you to wire an agent into the payments flow, and every path leads to a function called `retry_payment`. You do not yet know what it does.

The first step is to search for the function name and click Go to definition to read its signature and body. Then open Find references. Say you find 14 call sites: most sit in queue-processing workers, a few in tests. That list alone tells you the function runs in the background and has tests you can lean on.

Next, check the blame on the call sites in the workers. Pick the most recent one, written by someone still on the team, as the model for the code you are about to write. Then turn to the change history. Sourcegraph's Tour calls diff search a good starting point when investigating a bug, and the queries might look like this:

```
type:diff retry_payment
type:diff retry_payment author:<author name>
type:diff retry_payment after:"2 weeks ago"
type:commit retry
```

`type:diff` searches the code that changed, while `type:commit` searches commit messages. The syntax documentation explains that `author:` and `after:` narrow diff and commit results by author and by commit date. The first three lines answer the question newcomers are often reluctant to ask: who just changed this function, and when.

## The last step happens outside the tool

At this point you should stop searching and write down a question. Suppose the `after:` query shows that a recent commit changed how `retry_payment` handles errors.

Rather than asking a vague "how does the payments flow work?", you take the author of that commit a specific question: was the change intentional, and do the workers calling the function need to be updated to match?

A question like that costs them far less time than an explanation from scratch. It also shows the client that you read the code before asking. That is the most practical reading of "don't do it alone": the tool points you to the person you need to see, and the answer still comes from a person.

## Where the tool stops

The first limit is spelled out in the documentation. When Find references returns too many results, Sourcegraph truncates them to under 500 items so the browser loads quickly. For a utility function called everywhere, you have to go back to code search and filter it yourself, so do not assume the references list is complete when checking a change.

The second limit lies in how you read the data. Blame tells you who wrote a line and when, not whether the code is right. New code can also be rushed code, so treat blame as a hint about whom to ask rather than a verdict.

Sourcegraph is also pulling this sequence of steps into one place. A blog post by Justin Dorfman introduces Deep Search, which combines code search, blame and commit history in a single query, built for codebases you did not write. Mastering the manual steps first still pays off, because you will know which synthesized answers to trust.

## What to learn first, and how to prove it

Start with a habit rather than a feature: definition, then references, then blame, then diff, and finish with a question written down. PostHog's FDE handbook advises learning by doing real customer work instead of trying to model everything in advance. Reading a codebase works the same way: you understand it fastest by tracing one specific function that needs fixing.

When you read an FDE job posting, check whether the role involves working directly in customers' codebases; if it does, this skill deserves a prominent place in your application.

On your CV, do not just write "proficient in Sourcegraph". Describe a time you got to grips with an unfamiliar module: how long it took, which call sites you traced, and which commit you found had caused the bug.

On your first day at a client, set a goal for your first question before your first line of code. A carefully read list of call sites will often lead you straight to it.

**Try this week:**

- Pick a large open-source repository you have never read. Take a core function, work through definition → references → blame → diff, then write down the question you would send to the author of the most recent commit.
- Write three type:diff queries for the same function name: one unfiltered, one with author:, one with after:. Compare how much each filter trims the list.
- Add a line to your CV about a time you got to grips with an unfamiliar codebase quickly: how long it took, which tools you used, and what came of it.

## Sources

- [About | Sourcegraph](https://sourcegraph.com/about)

- [Sourcegraph Tour - Sourcegraph docs](https://sourcegraph.com/docs/getting-started/tour)

- [Code Search Features - Sourcegraph docs](https://sourcegraph.com/docs/code-search/features)

- [Search Query Syntax - Sourcegraph docs](https://sourcegraph.com/docs/code-search/queries)

- [Code Navigation Features - Sourcegraph docs](https://sourcegraph.com/docs/code-navigation/features)

- [Deep Search: The AI-powered tool helping engineers navigate codebases they didn't write](https://sourcegraph.com/blog/deep-search-navigate-codebases)

- [Forward Deployed Engineering at Cursor](https://www.ai.engineer/talks/APqXGyCoGW4-forward-deployed-engineering-at-cursor)

- [How forward deployed engineers work - Handbook](https://posthog.com/handbook/forward-deployed-engineering/how-we-work)
