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 flag | Category | Description |
|---|---|---|
| def / ref / search / context / discover | Symbols | Locate symbol definitions, references, fuzzy symbol matches, context bundles, and project layouts. |
| callers / callees / impact / trace | Call graph | Map incoming callers, outgoing callees, transitive change impact, and log-injected command traces that restore source files afterwards. |
| imports / exports / decorations / ast-diff | Structure | Extract module imports/exports, annotations/decorators, and structural AST diffs. |
| find / grep / edit / fix / delete | Files & edits | Search 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-files | Git | Read-only Git repository inspection returning parsed JSON records. |
| history blame|churn|co-change|commit|diff|evolution|introduced|todos | History | Analyze 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-facts | Scanners | Scan for secrets, cryptographic call sites, async leaks, config keys, HTTP routes, and OpenAPI facts. |
| aws catalog / aws query | Cloud | Inspect the read-only AWS operation catalog or run a read-only AWS CLI query. |
| --json / --infile FILE.graphql / --outfile FILE.json | Program I/O | Emit the versioned lmprobe.result.v1 JSON envelope or run a GraphQL sensor program. |
| --lmcode FILE / --lmcode-schema [--json] / --lmcode-signatures | lmcode host | Execute compiled DSLB bytecode or inspect the 63-operation host schema and 289 total signatures. |
Domain host functions (host.schema.json — 63 operations)
| Function group | Registered probe_* functions (all signature (string) -> string) |
|---|---|
| Symbol & AST navigation | probe_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 & hierarchy | probe_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 & mutations | probe_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 history | probe_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 scanners | probe_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 function | Signature | Role |
|---|---|---|
| RestGet..RestOptions, RestHandler | (exchange: RestExchange) -> void | SAM interfaces for @"/path/:param" HTTP route handlers. |
| CliCommand, CliOption | (exchange: RestExchange) -> void | SAM interfaces for @"cmd" subcommands and @"--opt" options via rest_cli. |
| rest_config, rest_route, rest_serve, rest_stop, rest_cli | Standard router functions | Configure and execute in-memory CLI commands or HTTP/1.1 endpoints inside _lmcode_. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Command, GraphQL query, edit preview/apply, or bytecode execution succeeded. |
| 1 | No results matched (pass --exit-zero-on-no-match to return 0 instead). |
| Other non-zero | Usage, load, or runtime error; details are in the lmprobe.result.v1 error payload or on stderr. |