Skip to main content

Commands

Search for files matching query using trigram fuzzy matching.
monogram search <query> [options]
monogram s <query> [options]
OptionDefaultDescription
-n <limit>10Max results
--cwd-Filter to current directory only
--json-JSON output
-r-Reindex before search

chain

Trace symbol call chain (BFS, flat list).
monogram chain <symbol> [options]
monogram c <symbol> [options]
OptionDefaultDescription
--callersdefaultShow who calls symbol
--callees-Show what symbol calls
--depth <N>3Max traversal depth
--strict-Exact + normalized only
--fuzzy=<N>0.5Set fuzzy threshold (0.0-1.0)
--json-JSON output
-r-Reindex before chain

tree

DFS call tree (hierarchical). Same options as chain.
monogram tree <symbol> [options]
monogram t <symbol> [options]

symbols

Search symbols (functions, classes, structs).
monogram symbols <query> [--json]

deps / rdeps

monogram deps <file>    # What does this file import?
monogram rdeps <file>   # Who imports this file?

index / reindex / prune / stats

monogram index <path> [--ext ts,rs] [--symbols]
monogram reindex <path>
monogram prune [--dry-run]
monogram stats

Examples

# Search
monogram search "terminal font size"
monogram search "session" -n 5 --json

# Dependencies
monogram deps main.ts
monogram rdeps terminal.ts

# Call graph
monogram chain createSession --callees --strict
monogram tree handleInput --callers --depth 4

# Fresh after edits
monogram search "newCode" -r