This commit is contained in:
centdix
2025-05-14 16:46:26 +02:00
parent 6fe3bf3eff
commit 698b969f78
+2 -12
View File
@@ -1,6 +1,4 @@
# Probe
[![npm version](https://img.shields.io/npm/v/@buger/probe)](https://www.npmjs.com/package/@buger/probe)
# Probe Usage
Probe is a powerful, AI-augmented code search and extraction tool. It combines fast, tree-sitterpowered queries with optional LLM integration to help you find, extract, and understand code across any codebase.
@@ -25,19 +23,11 @@ curl -fsSL https://raw.githubusercontent.com/buger/probe/main/install.sh | bash
Search for code containing specific phrases in the current directory:
```bash
probe search "parser" ./
probe search "parser" ./backend
```
This will search for the terms "parser" in your codebase and return the most relevant code blocks.
## 🔄 Advanced Search (with Token Limiting)
Limit the total tokens for AI tools with context window constraints:
```bash
probe search "prompt injection" ./ --max-tokens 10000
```
## 💾 Session-Based Caching
Use session IDs to avoid seeing the same code blocks multiple times in related searches: