Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 2.37 KB

File metadata and controls

57 lines (36 loc) · 2.37 KB

Commands

🏠 Home · 📚 Docs · Português 🇧🇷

All commands accept the global flags -C, --path <dir> (operate on another directory), -p, --provider, --embedding-provider, -m, --model, --embedding-model and --index-dir. See Configuration for the full list.

ailore index [path]

Scans the directory (honoring .gitignore), splits files into line-aligned chunks, embeds them, and stores everything locally. Re-running only re-embeds files whose content changed.

ailore index                 # index the current directory
ailore index ./packages/api  # index a subfolder

ailore ask <question>

Retrieves the most relevant chunks and asks the model to answer using only that context, with inline citations. The answer streams to your terminal and the sources are listed at the end.

ailore ask "how do we validate webhook signatures?"
ailore ask -k 10 "summarize the deployment process"    # retrieve more context
ailore ask --no-stream "what does the cache layer do?"  # print all at once

Flags: -k, --top-k, --min-score, --mode, -t, --temperature, --max-tokens, --top-p, --seed, --no-stream. See Configuration.

ailore search <query>

Ranked snippets, no LLM call. Uses hybrid retrieval by default; switch with --mode. Great for quickly jumping to relevant code.

ailore search "jwt refresh token rotation"
ailore search --mode keyword "TokenRotationError"   # exact-symbol lookup
ailore search --json "database migrations" > hits.json

ailore init

Writes a starter ailore.config.json you can tweak. See Configuration.

ailore mcp

Runs an MCP server over stdio, exposing two tools — ailore_search and ailore_ask — so an AI client can search and ask against your index on its own, with the same path:line citations.

ailore mcp                 # serve the current directory
ailore mcp -C ./my-project # serve a specific project

Full client setup (Claude, Cursor, …) is in Editor / MCP integration.


[← Prev: Getting started](./getting-started.md) · [📚 All guides](./README.md) · [Next: Configuration →](./configuration.md)