The amnesia problem in AI coding agents is real. You solve a tricky bug, set a team convention, or explain why you chose a specific library, and the moment you close the session, that context evaporates. Knock, an open-source HTTP client and toolkit, aims to fix this by turning your Markdown notes into shared memory for both humans and agents. The tool works with major players like Claude Code, Codex, and Cursor, ensuring that what you learn stays learned.

Seamless MCP Integration

Knock embeds an MCP (Model Context Protocol) server directly into its CLI. Connecting is straightforward: you can add it to Claude Code with claude mcp add --scope user knock -- knock mcp or to Codex with codex mcp add knock -- knock mcp. For Cursor, Claude Desktop, and Windsurf, the app provides the exact JSON configuration block needed. Once connected, agents are instructed to search Knock's notes before starting work, ensuring they don't reinvent the wheel every time they boot up.

Human-in-the-Loop Verification

What sets Knock apart from typical RAG setups is its review workflow. When an agent discovers something valuable, it uses knock_remember to create a new note. However, nothing becomes permanent knowledge without human approval. These agent-generated notes land in a 'Notes Inbox' marked as 'unreviewed.' You can view the diff, approve the change to make it confirmed knowledge, or discard it to revert to the previous text. This prevents agents from polluting your knowledge base with hallucinations or redundant entries.

Privacy and Security by Default

Knock assumes your notes contain sensitive data. Values marked with ||secret|| or inside secret blocks are redacted for the agent, appearing as [redacted:secret-1]. If an agent tries to rewrite a note, Knock automatically restores the real value, ensuring the agent never sees or accidentally leaks the credential. Additionally, environment variables from *.local.toml files are masked in any note. This architectural choice ensures that while agents have context, they don't have keys to the kingdom.

Key Takeaways

  • Knock uses Markdown notes as a persistent memory layer for AI agents via MCP.
  • Agents can recall context with knock_recall and save new learnings with knock_remember.
  • A human review inbox ensures only verified knowledge becomes part of the agent's long-term memory.
  • Secrets are automatically redacted from agent view but preserved in the underlying notes.
  • Version 0.0.35 added support for agents to view and attach images to notes.

The Bottom Line

Knock offers a pragmatic, privacy-first approach to agent memory that respects the human operator's final say. It turns ephemeral chat sessions into a durable, auditable knowledge graph without forcing you to trust the agent with your secrets.