Skip to content

README documents AGENTMEMORY_LLM_NOTHINK, but no such flag exists in the code #1395

Closed

Description

@paulomac1000

Environment

  • 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.

Related

Activity

  1. dmazhukov commented on Oct 14, 2026

    @dmazhukov
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions