You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
README documents AGENTMEMORY_LLM_NOTHINK, but no such flag exists in the code #1395
main @ e04ba888; npm @agentmemory/agentmemory@0.9.29
Summary
The README references an AGENTMEMORY_LLM_NOTHINK setting ("Set AGENTMEMORY_LLM_NOTHINK=1 to append /no_think ..."), but no NOTHINK or DISABLE_THINKING string exists anywhere in the repository code (0 search hits on main @ e04ba888). PR #569 proposed an AGENTMEMORY_DISABLE_THINKING env var but was never merged.
Users who follow the README will set a no-op variable. On reasoning-model gateways that reject reasoning controls (e.g. OpenRouter returning HTTP 400 "Reasoning is mandatory for this endpoint and cannot be disabled"), there is currently no documented or implemented way to disable thinking at all.
Suggested fix
Either wire the flag (or an equivalent reasoning-control env) into the providers, or remove the reference from the README and document the supported knobs (OPENAI_REASONING_EFFORT) together with their gateway caveats.
The flag does exist: src/prompts/graph-extraction.ts:37 reads AGENTMEMORY_LLM_NOTHINK === "1" and appends /no_think, and it was already there at e04ba888 (added in #1205). It only touches the graph-extraction prompt, which is what README line 1500 says.
So the README is accurate; what stands from this issue is the second half: compression, summarize and reflect prompts have no way to turn thinking off on gateways that reject reasoning controls.
Activity
dmazhukov commentedon Oct 14, 2026
The flag does exist:
src/prompts/graph-extraction.ts:37readsAGENTMEMORY_LLM_NOTHINK === "1"and appends/no_think, and it was already there ate04ba888(added in #1205). It only touches the graph-extraction prompt, which is what README line 1500 says.So the README is accurate; what stands from this issue is the second half: compression, summarize and reflect prompts have no way to turn thinking off on gateways that reject reasoning controls.