ace index
ace index
Section titled “ace index”Parses and indexes your codebase into ACECode’s semantic search engine.
ace index [options]Options
Section titled “Options”| Flag | Description | Default |
|---|---|---|
-p, --project | Project slug to index | Auto-detected from .ace/config |
--force | Force full re-index (ignore change detection) | false |
--since <commit> | Only index files changed since this commit | — |
--api-key <key> | Override API key | ACE_API_KEY env var |
--api-url <url> | Override API URL | https://api.acecode.dev |
Examples
Section titled “Examples”# Index current project (auto-detect from .ace/config)ace index
# Index a specific projectace index -p my-backend
# Force full re-indexace index --force
# Only index files changed since last commitace index --since HEAD~1How it works
Section titled “How it works”The ace index command:
- Scans your project for source files
- Parses each file using the TypeScript Compiler API (TS/JS) or tree-sitter (other languages)
- Splits code into semantic chunks (functions, classes, blocks)
- Sends chunks to the API for embedding and storage
- Detects unchanged files via content hash — only re-indexes modified files
Incremental indexing
Section titled “Incremental indexing”ACECode uses content hashes to avoid re-indexing unchanged files. On subsequent runs:
📁 Scanning 847 files...⚡ 823 files unchanged (skipped)⚡ Indexing 24 changed files...✅ Done in 3.2s