Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Open Source Semantic Search for your AI Agent
| Date | Stars |
|---|---|
| 2026-07-31 | 1140 |
| 2026-08-01 | 1140 |
| 2026-08-06 | 1140 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
<div align="center">
<h1>osgrep</h1>
<p><em>Slash tokens. Save time. Semantic search for your coding agent.</em></p>
<a href="https://opensource.org/licenses/Apache-2.0">
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache 2.0" />
</a>
<a href="https://deepwiki.com/Ryandonofrio3/osgrep">
<img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki" />
</a>
<a>
<img alt="CodeRabbit Pull Request Reviews" src="https://img.shields.io/coderabbit/prs/github/ryandonofrio3/osgrep">
</a>
</div>
Natural-language search that works like `grep`. Fast, local, and built for coding agents.
- **Semantic:** Finds concepts ("where do transactions get created?"), not just strings.
- **Call Graph Tracing:** Map dependencies with `trace` to see who calls what.
- **Role Detection:** Distinguishes `ORCHESTRATION` (high-level logic) from `DEFINITION` (types/classes).
- **Local & Private:** 100% local embeddings via `onnxruntime-node`.
- **Auto-Isolated:** Each repository gets its own index automatically.
- **Agent-Ready:** Native output with symbols, roles, and call graphs.
## Quick Start
1. **Install**
```bash
npm install -g osgrep
```
2. **Setup (Recommended)**
```bash
osgrep setup
```
Downloads embedding models (~150MB) upfront. If you skip this, models download automatically on first use.
3. **Search**
```bash
cd my-repo
osgrep "where do we handle authentication?"
```
**Your first search will automatically index the repository.** Each repository is automatically isolated with its own index. Switching between repos "just works" — no manual configuration needed. If the background server is running (`osgrep serve`), search goes through the hot daemon; otherwise it falls back to on-demand indexing.
4. **Trace** (Call Graph)
```bash
osgrep trace "function_name"
```
See who calls a function (upstream dependencies) and what it calls (downstream dependencies). Perfect for impact analysis and understanding code flow.
To find the symbols in your code base:
```bash
osgrep symbols
```
In our public benchmarks, `osgrep` can save about 20% of your LLM tokens and deliver a 30% speedup.
<div align="center">
<img src="public/bench.png" alt="osgrep benchmark" width="100%" style="border-radius: 8px; margin: 20px 0;" />
</div>
### Claude Code Plugin
1. Run `osgrep install-claude-code`
2. Open Claude Code (`claude`) and ask it questions about your codebase.
3. Highly recommend indexing your code base before using the plugin.
4. The plugin's hooks auto-start `osgrep serve` in the background and shut it down on session end. Claude will use `osgrep` for semantic searches automatically but can be encouraged to do so.
## Opencode Plugin
1. Run `osgrep install-opencode`
2. Open OC (`opencode`) and ask it questions about your codebase.
3. Highly recommend indexing your code base before using the plugin.
4. The plugin's hooks auto-start `osgrep serve` in the background and shut it down on session end. OC will use `osgrep` for semantic searches automatically but can be encouraged to do so.
## Commands
### `osgrep search`
The default command. Searches the current directory using semantic meaning.
```bash
osgrep "how is the database connection pooled?"
```
**Options:**
| Flag | Description | Default |
| --- | --- | --- |
| `-m <n>` | Max total results to return. | `25` |
| `--per-file <n>` | Max matches to show per file. | `1` |
| `-c`, `--content` | Show full chunk content instead of snippets. | `false` |
| `--scores` | Show relevance scores (0-1) for each result. | `false` |
| `--min-score <n>` | Filter out results below this score threshold. | `0` |
| `--compact` | Show file paths only (like `grep -l`). | `false` |
| `-s`, `--sync` | Force re-index changed files before searching. | `false` |
| `-r`, `--reset` | Reset the index and re-index from scratch. | `false` |
**Examples:**
```bash
# General concept search
Excerpt of 11,957 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:e663f5bf5f99c1c9, topic:embeddings