Skip to main content
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

FeatureDescription
Trigram SearchFuzzy file/content search (~100ms)
Call ChainCallers/callees tracing with BFS (7-496ms)
Tree ViewHierarchical DFS call tree
Cross-ConventioncreateSession finds create_session automatically
Multi-LanguageTypeScript, Rust, Python, Go, Zig
Tauri IPC BridgeLinks TS invoke('cmd') to Rust #[tauri::command] fn cmd
Closure TrackingTracks calls inside callbacks and spawn blocks

Supported Languages

LanguageExtensionsSymbol Types
Rust.rsfn, struct, enum, trait, impl
TypeScript.ts, .tsxfunction, class, interface, type
JavaScript.js, .jsxfunction, class
Python.pydef, class
Go.gofunc, 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
ModeWhen to Use
--strictStart here. Precise results.
DefaultWhen --strict returns too few results
--fuzzy=0.7Relaxed fuzzy, fewer false positives
--fuzzy=0.4Aggressive 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.
ModeTimeNotes
Without -r50-200msFast, may be outdated
With -r2-5sSlow, 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.