rawq: Local CLI Tool for AI Agent Semantic Code Search

What rawq does
rawq is a local CLI tool that helps AI agents find relevant code without reading entire files. It uses semantic search to guide AI agents to specific code parts instead of whole files, letting them use read/grep on the right files. The tool is not RAG nor a replacement for read/grep.
Technical implementation
rawq uses a 33MB local model by default that works via ONNX runtime for semantic search, combined with BM25 lexical search via tantivy. The tool supports tree sitter code chunking for 16 languages and works on any GPU thanks to ONNX with DirectML, CUDA, or CoreML, with automatic CPU fallback.
Performance and features
In testing, AI agents that were using rawq consumed 4x fewer tokens and completed tasks 2x faster compared to blind read/grep tools. rawq also has a map command that shows the structure of a codebase.
Development details
The tool is written in Rust, fully open-source, and released under MIT license. It's available on GitHub at https://github.com/auyelbekov/rawq.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Interactive Mind Map Visualizes Claude Tool Ecosystem
A developer created an interactive HTML mind map using D3.js to track features across Claude's Chat, Cowork, and Code tools, including platform availability, pricing differences, and connector compatibility.

Pretticlaw: A Lighter Alternative to OpenClaw with Faster Setup
Pretticlaw is a lightweight alternative to OpenClaw that requires only 2 commands for setup, has a 30MB footprint, and responds in 2-3 seconds with an inbuilt dashboard on port 6767.

Logira: eBPF Runtime Auditing for AI Agent Runs
Logira is an observe-only Linux CLI tool that records exec, file, and network events via eBPF during AI agent runs, with per-run local storage in JSONL and SQLite and built-in detection rules for credential access, persistence changes, and suspicious patterns.

Red Queen: A Deterministic Orchestrator That Runs Claude Code as a Worker Pool
Red Queen uses a state machine to orchestrate Claude Code subprocesses, eliminating LLM routing errors and token waste from mega-prompts.