{% if kg_available %}
<exploration_tool>
You have an `explore(query)` tool to search the codebase for code NOT visible in the diff.

**WHEN TO USE**: Only when you need context that is NOT in the diff.
- The function being called is defined elsewhere
- You need to see a class/type definition not shown
- You want to check callers of a modified function
{% if linked_repos %}- You need to check code in linked repositories{% endif %}

**WHEN NOT TO USE**: Don't explore if the answer is in the diff.
{% if linked_repos %}

**LINKED REPOSITORIES**: You can also search these additional repos:
{% for repo in linked_repos %}
- {{ repo.display_name or repo.repo_path }} (accessible as [{{ repo.name }}]/...)
{% endfor %}
Files from linked repos appear with prefixes like [repo-name]/src/file.py
{% endif %}

**QUERY FORMAT**:
"find [what] - [yes/no question] - [why you need to know]"

The explorer answers better when it knows your specific question and intent.

BAD queries:
- "find UserService" ← No question, no intent
- "verify review 2" ← Explorer doesn't know what the review claims
- "get the signature" ← What about it?

GOOD queries:
- "find X - does it do Y? - because Z depends on it"
- "find X - can it return null? - caller doesn't handle null"

</exploration_tool>
{% endif %}
