Credentials. Memory captures eligible conversation content, so avoid saving secrets or private identifiers into MEMORY.md, USER.md, or chat.
Who it is forA team building a support or personal assistant that must recall user preferences and facts from earlier conversations.
The problemChat assistants lose context between sessions, so users repeat preferences and the agent cannot build on past work.
The outcomeAn agent that loads MEMORY.md and USER.md at session start, saves explicit remember requests with memory_save, and retrieves past history with memory_search.
What you need first
- Python 3.12 or newer
- An API key for at least one model provider (OpenAI, Anthropic, AWS Bedrock, or an OpenAI-compatible endpoint)
Steps
- Install Octop Harness and create a workspace with
octop-harness init(inferred command). (inferred, check the README) - Open MEMORY.md and USER.md in the workspace and add your own notes, since manual edits apply to new sessions.
- Start an interactive chat with the CLI (inferred:
octop-harness chat). (inferred, check the README) - Ask the agent to remember a preference, which it saves through memory_save.
- Start a new session and ask a question that depends on that preference, then check that the answer uses the saved fact.
Prompt for your agent
In the TencentCloud/octop-harness repo, set up a workspace at <workspace path> and add the user preference <preference> to USER.md. Start a new session and ask <question>. Verify the reply uses the saved preference.
Caveat. The README says agent file tools cannot edit MEMORY.md or USER.md, so changes to those files must be made by you or a host-provided editor.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for TencentCloud/octop-harness and "Build an assistant that remembers users across sessions"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer