code_intel
Search local code semantically; analyze architecture and impact; inspect symbols—while index creation, syncing, and repair happen automatically.
Instructions
Unified autonomous local code intelligence and index control plane for OMP. Routes to zvec-grep for semantic workspace retrieval, CodeGraph for architecture/call-flow/impact, and Serena/LSP for exact symbol semantics. It automatically creates, watches, synchronizes, and repairs derived indexes; no user index maintenance is required. The same tool lets the agent inspect/sync/reindex/repair indexes when explicit control is useful. Sharpshooter remains the durable memory owner. OMP native source/edit/build/tests remain correctness truth. Prefer explicit operation when known. auto uses deterministic routing and fans out to at most two intelligence backends.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Canonical workspace root, confined to process boot root or explicitly configured LAZY_INTEL_ALLOWED_ROOTS. | |
| depth | No | ||
| limit | No | ||
| query | No | Focused local-code question or search phrase. Optional for status/sync/reindex/repair and symbol-only calls. | |
| symbol | No | Exact/near-exact symbol name or Serena name_path. Required for impact, references and implementations. | |
| backend | No | Backend target for control operations. Serena supports status/repair; zvec and CodeGraph support index controls. | all |
| maxChars | No | ||
| embedding | No | Optional zvec embedding model for an explicit reindex. Omit it to preserve an existing index model. | |
| freshness | No | auto is default: create indexes if absent and sync when dirty/stale. strict forces a pre-query sync. fast permits a previously built index. | auto |
| operation | No | auto | |
| timeoutMs | No | ||
| includeBody | No | ||
| relativePath | No | Project-relative source path. Required for references/implementations/diagnostics. | |
| indexTimeoutMs | No | Timeout for automatic index create/sync/rebuild operations. | |
| substringMatching | No |