Scenario-keyed MEMORY.md index — auto-adopt now seeds a 5-row scenario→tool table into every adopted project's sentinel block, closing the always-loaded context gap between tool names (impact_analysis) and natural-language triggers (改 X 影响面 / 谁调用 X).
Migration
needsRefresh() detects INDEX_LINE drift automatically; the sentinel block rewrites once on next SessionStart. No user action required.
Opt-out
CODE_GRAPH_NO_TEMPLATE_REFRESH=1— lock current MEMORY.md block (shipped v0.11.0)CODE_GRAPH_NO_AUTO_ADOPT=1— disable auto-adopt entirely (shipped v0.9.0)- Reinstall
0.11.6for the 3-lineINDEX_LINE
Verification
adopt.test.js: 37/37 pass (assertions reference theINDEX_LINEconstant; extension is transparent)cargo +1.95.0 clippy --no-default-features / --all-targets -- -D warnings: cleanrouting_bench: 19/20 = 95.0% unchanged from v0.11.6 (release does not touchToolRegistry)
Full details in CHANGELOG.md § v0.12.0.
Full Changelog: v0.11.6...v0.12.0