Persistence
highContextual riskmedium confidenceThe MCP write tools (add_fact, add_decision, add_gotcha) call store.init with its default update_claude_md=True, so an agent calling a 'record a fact' tool silently creates or modifies the repo's CLAUDE.md/AGENTS.md agent instruction file, which the tool descriptions do not declare; the CLI documents this behavior and offers an opt-out, but the MCP path has none.
target.write_text(prefix + CLAUDE_MD_SECTION, encoding="utf-8")
Counter-argument considered
The MCP write tools call init(root) with the default update_claude_md=True. That silently writes to the agent instruction file, and the tool docstrings do not mention it. The README documents this only for the CLI init command, so the MCP path is undeclared. The block content is benign and static, so severity is low, but the chain is concrete.