CLI

larkx index

Parse files and build the graph.

Usage

bash
larkx index [options]

Options

FlagEffect
--forceIgnore hash cache, reparse every file
--aiGenerate AI summaries using the provider configured during larkx init
--watchWatch for file changes and re-index automatically

Examples

bash
# Standard incremental index
larkx index

# Full reindex
larkx index --force

# Generate summaries with the configured provider
larkx index --ai

# Anthropic API provider example
ANTHROPIC_API_KEY=sk-... larkx index --ai

# Live mode (saves on every file save)
larkx index --watch

Agent file refresh

Every larkx index run automatically refreshes agent instruction files (CLAUDE.md, .cursorrules, etc.) with the latest instructions. Only files created by larkx (marked with <!-- larkx-managed -->) are updated — any file you have edited manually is left untouched.

Output

example
✓ Found 342 files
✓ Parsed 342 files · 1,847 functions · 89 classes
✓ Built graph: 342 nodes · 4,612 edges
✓ Saved to .larkx/