memory_check_change
Pre-edit safety check: submit a diff or change description to surface matching guardrails, invariants, conventions, and failed approaches. Returns proceed, ask_first, or stop before modifying code.
Instructions
Pre-edit safety check: given a diff or a short description of a change you're about to make, return any FAILED_APPROACH, GUARDRAIL, INVARIANT, or CONVENTION memories that match. Call this BEFORE editing code when the task touches an area with known historical failures or explicit rules. Returns a decision: proceed, ask_first, or stop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Unified diff of the proposed change (e.g. git diff --no-index or a hand-written patch). If omitted, the check is based on paths + task only. | |
| task | No | Short plain-text description of what you're about to do (used for keyword matching when no diff is given) | |
| paths | No | Repo-relative paths the change touches | |
| agent_id | No | Your agent identifier, e.g. 'claude-code' |