lmprobe reference

CLI commands, flags, the 63 probe_* lmcode host functions, standard REST and CLI interfaces, and exit codes for lmprobe.

CLI command groups and global flags

Command or flagCategoryDescription
def / ref / search / context / discoverSymbolsLocate symbol definitions, references, fuzzy symbol matches, context bundles, and project layouts.
callers / callees / impact / traceCall graphMap incoming callers, outgoing callees, transitive change impact, and log-injected command traces that restore source files afterwards.
imports / exports / decorations / ast-diffStructureExtract module imports/exports, annotations/decorators, and structural AST diffs.
find / grep / edit / fix / deleteFiles & editsSearch paths or text, and preview or apply text/AST edits (--apply [--force]) and deletions (delete --force).
git status|diff|log|show|blame|branch|remote|rev-parse|ls-filesGitRead-only Git repository inspection returning parsed JSON records.
history blame|churn|co-change|commit|diff|evolution|introduced|todosHistoryAnalyze commit churn, file co-change coupling, symbol evolution, and blame history.
secrets / secrets-recipes / secrets-sources / crypto-sites / async-leaks / config-keys / route-anchors / openapi-factsScannersScan for secrets, cryptographic call sites, async leaks, config keys, HTTP routes, and OpenAPI facts.
aws catalog / aws queryCloudInspect the read-only AWS operation catalog or run a read-only AWS CLI query.
--json / --infile FILE.graphql / --outfile FILE.jsonProgram I/OEmit the versioned lmprobe.result.v1 JSON envelope or run a GraphQL sensor program.
--lmcode FILE / --lmcode-schema [--json] / --lmcode-signatureslmcode hostExecute compiled DSLB bytecode or inspect the 63-operation host schema and 289 total signatures.

Domain host functions (host.schema.json — 63 operations)

Function groupRegistered probe_* functions (all signature (string) -> string)
Symbol & AST navigationprobe_def_symbol, probe_ref_symbol, probe_search_symbols, probe_list_kinds, probe_ast_diff, probe_context_bundle, probe_diff_context, probe_discover_projects, probe_py_slice_candidates, probe_query_graphql.
Call graph & hierarchyprobe_callers_of, probe_callees_of, probe_callsite_args, probe_impact_of, probe_trace_exec, probe_overrides_of, probe_subtypes_of, probe_supertypes_of, probe_imports_of, probe_exports_of, probe_decorations_of.
File search & mutationsprobe_find_paths, probe_find_delete, probe_delete_paths, probe_grep_text, probe_edit_preview, probe_edit_text, probe_fix_preview, probe_fix_ast.
Git & commit historyprobe_git_status, probe_git_diff, probe_git_log, probe_git_show, probe_git_blame, probe_git_branch, probe_git_remote, probe_git_rev_parse, probe_git_ls_files, probe_history_blame, probe_history_churn, probe_history_co_change, probe_history_commit, probe_history_diff, probe_history_evolution, probe_history_introduced, probe_history_todos, probe_evolution_of, probe_pr_triage.
Security, API & AWS scannersprobe_secrets_scan, probe_secrets_recipes_list, probe_secrets_recipes_show, probe_secrets_sources_list, probe_secrets_sources_show, probe_crypto_sites, probe_async_leaks, probe_guard_sites, probe_resource_sites, probe_http_client_calls, probe_config_keys, probe_route_anchors, probe_openapi_facts, probe_aws_catalog, probe_aws_query.

Standard REST and CLI interfaces (lmcode_std_v3)

Interface or functionSignatureRole
RestGet..RestOptions, RestHandler(exchange: RestExchange) -> voidSAM interfaces for @"/path/:param" HTTP route handlers.
CliCommand, CliOption(exchange: RestExchange) -> voidSAM interfaces for @"cmd" subcommands and @"--opt" options via rest_cli.
rest_config, rest_route, rest_serve, rest_stop, rest_cliStandard router functionsConfigure and execute in-memory CLI commands or HTTP/1.1 endpoints inside _lmcode_.

Exit codes

CodeMeaning
0Command, GraphQL query, edit preview/apply, or bytecode execution succeeded.
1No results matched (pass --exit-zero-on-no-match to return 0 instead).
Other non-zeroUsage, load, or runtime error; details are in the lmprobe.result.v1 error payload or on stderr.