mcp_engram_context_for_edit
Retrieve pre-edit situated memory with spatial context, edit arcs, and decision traces for a given file path. Supports optional line range filtering and auto-ingests when empty.
Instructions
Code atlas v2 — pre-edit situated memory. Returns JSON: spatial_items (tree-sitter AABB + edit_arc per locus), traces_at_locus (decisions at file:line), scars_at_locus, spatial_siblings, anchor goals/traces. Requires wake queue ack when ENGRAM_WAKE_QUEUE_GATE=hard (call mcp_engram_ack_wake_queue after session_start queue). Soft mode embeds wake_queue_gate warning if not acked. Auto-ingests single file when empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auto_ingest | No | If true (default), force-ingest this single file when no spatial items exist | |
| line_end | No | Optional end line for spatial AABB filter (1-based) | |
| line_start | No | Optional start line for spatial AABB filter (1-based) | |
| path | Yes | Absolute or relative file path to edit |