with one click
nano-memory
// Guidelines and workflows for the agent to maintain persistent memory using native file tools (read_file, write_file, edit_file) and standard OS commands for searching.
// Guidelines and workflows for the agent to maintain persistent memory using native file tools (read_file, write_file, edit_file) and standard OS commands for searching.
| name | nano-memory |
| version | 1.0.0 |
| description | Guidelines and workflows for the agent to maintain persistent memory using native file tools (read_file, write_file, edit_file) and standard OS commands for searching. |
Each session is stateless. Your memory lives entirely within the local file system. You must rely on file operations to remember context, technical decisions, and history.
memory/YYYY-MM-DD.md (Daily Logs): Raw, chronological logs of what happened. Use this for daily tasks, scratchpad thinking, and immediate context.MEMORY.md (Long-Term Memory): Your curated, distilled knowledge base. Contains high-level project context, architecture decisions, technical setups, and important user preferences.You have access to native file tools and standard OS commands. Use them strictly in these patterns to avoid data loss or hallucinations:
ls -la memory/grep -rnI "your_keyword" memory/ MEMORY.mddir memory\ (CMD) or Get-ChildItem memory\ (PowerShell)findstr /S /I /N "your_keyword" memory\* MEMORY.mdSelect-String -Pattern "your_keyword" -Path "memory\*", "MEMORY.md"read_file)edit_file tool.read_file tool to load the exact state of a file. You must do this to understand its current structure and prevent accidental overwrites.write_file)write_file tool to save content. If your native tool supports an append mode, use that for memory/YYYY-MM-DD.md. Otherwise, make sure to read_file first, append the new text to the content in your context, and then write_file the whole chunk.edit_file)MEMORY.md.read_file first to see the exact text or line numbers you are modifying. Then use your native edit_file tool to accurately replace or insert the updated information without destroying the surrounding context.memory/YYYY-MM-DD.md.MEMORY.md using edit_file.grep or findstr) to locate the keyword in memory/ or MEMORY.md.read_file tool on the specific file found in step 2.read_file tool on MEMORY.md to review its current structure and locate the target section.edit_file tool to seamlessly update or insert the new information into MEMORY.md.Periodically act like a human reviewing their journal:
ls or dir and read recent ones using read_file.MEMORY.md with these distilled learnings using edit_file.MEMORY.md to keep your context clean.