Documentation Index
Fetch the complete documentation index at: https://docs.monolex.ai/llms.txt
Use this file to discover all available pages before exploring further.
Monogram is a fast code search engine built on trigram indexing with cross-language call dependency tracing. Designed for LLM code navigation — reducing AI uncertainty through concrete data.
Quick Start
# Search for files by name or content
monogram search "session manager" -n 10
# Trace what a function calls
monogram chain createSession --callees --strict
# Trace who calls a function (impact analysis)
monogram chain handleInput --callers --depth 3
# View call tree (hierarchical)
monogram tree main --callees --depth 4
Key Features
| Feature | Description |
|---|
| Trigram Search | Fuzzy file/content search (~100ms) |
| Call Chain | Callers/callees tracing with BFS (7-496ms) |
| Tree View | Hierarchical DFS call tree |
| Cross-Convention | createSession finds create_session automatically |
| Multi-Language | TypeScript, Rust, Python, Go, Zig |
| Tauri IPC Bridge | Links TS invoke('cmd') to Rust #[tauri::command] fn cmd |
| Closure Tracking | Tracks calls inside callbacks and spawn blocks |
Supported Languages
| Language | Extensions | Symbol Types |
|---|
| Rust | .rs | fn, struct, enum, trait, impl |
| TypeScript | .ts, .tsx | function, class, interface, type |
| JavaScript | .js, .jsx | function, class |
| Python | .py | def, class |
| Go | .go | func, type, struct |
Resolution Modes
Always try --strict first, fall back to fuzzy if needed.
# --strict: Exact + normalized matching (no false positives)
monogram chain createSession --callees --strict
# Default: Fuzzy matching with 50% threshold
monogram chain createSession --callees
# Custom threshold (0.0-1.0)
monogram chain createSession --callees --fuzzy=0.7
| Mode | When to Use |
|---|
--strict | Start here. Precise results. |
| Default | When --strict returns too few results |
--fuzzy=0.7 | Relaxed fuzzy, fewer false positives |
--fuzzy=0.4 | Aggressive fuzzy, more matches |
Index Management
# Index current project
monogram index . --symbols
# Fresh results after code changes
monogram search "newCode" -r
monogram chain fn_name -r
The -r flag forces a full reindex before the command. Unconditional — no stale data.
| Mode | Time | Notes |
|---|
Without -r | 50-200ms | Fast, may be outdated |
With -r | 2-5s | Slow, guaranteed fresh |
Behavioral Engineering
Monogram is not just a search tool — it’s a behavioral engineering system that reduces LLM uncertainty:
Uncertainty → monogram → Data → Confidence → Action
Measured impact on AI coding tasks:
- Avoidance reduction: 70% → 20%
- Completion quality: 40% → 90%
- Confidence increase: 30% → 85%
See the command reference for all commands and options.