deprecate_symbol
Record a symbol replacement after refactoring to prevent coding agents from re-emitting old calls. Maps old to new and supersedes prior records.
Instructions
CODING-AGENT REFACTOR RECORD (write, deterministic, no LLM): record that a code symbol old was replaced
by new (a function/method/constant renamed or removed in a refactor). This is the fix for the single most
common coding-loop memory failure — the model re-emitting a call the refactor already deleted because the old
signature is still in its context. A later deprecate_symbol of the same old supersedes the replacement.
Then call check_code(generated) before emitting code. Returns the recorded deprecation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| reason | No |