---
name: semantic-code-search-across-multiple-repositories
description: "Searches target repositories for code matching a natural language question, returning file paths, line numbers and key snippets. Use when you need to locate where a capability or workflow is implemented without reading entire directories."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, GitHub."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/semantic-code-search-across-multiple-repositories/"
  kind: skill
  hermes:
    tags: ["codesearch", "devtools", "refactoring", "indexing"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Semantic code search across multiple repositories

Locate relevant functions and code snippets without reading through entire directories

## When to use

When asked how a specific capability or workflow is implemented, the bot inspects target codebases using targeted code search tools. It extracts the precise snippets, file paths, and line references needed to understand or update the feature without loading full source files into context.

## Inputs

- `code_query`: Natural language question describing the capability or workflow to locate in code.
- `repository_names`: Names of the target repositories to search for matching code.

## Steps

1. When you ask: Receive code query (A person asks a natural language question about where a capability or workflow is implemented in the code.)
2. Search target repositories
3. Return relevant snippets

## Instructions

When a search request arrives, query the codebase using the terminal search utility to locate code snippets matching the natural language question. Extract the file paths, line numbers, and relevant context across the requested repositories. Summarize where the logic lives and display the key excerpts. If asked to apply edits, commit changes, or delete files, ask for explicit user approval before proceeding.

## Approvals

- Applying code edits requires explicit user approval before proceeding.
- Committing changes requires explicit user approval before proceeding.
- Deleting files requires explicit user approval before proceeding.

## Output

A summary of where the logic lives plus key code excerpts with file paths and line numbers. (format: chat_message)

## Source

Summarized in our own words from [semble: Fast and Accurate Code Search for Agents. Uses 99% fewer tokens than grep+read](https://github.com/MinishLab/semble) (GitHub, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/semantic-code-search-across-multiple-repositories/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
