Skip to content
/

MemoryAgent

memoryagent · IIIIQIIII/MemoryAgent · ★ 38 · last commit 2026-02-10

Primitive shape 1 total
Skills 1
00

Summary

MemoryAgent — Summary

MemoryAgent is a single Claude Code skill (memory-manage) that implements the "Memory as File" concept — treating all agent knowledge as plain text files managed with the native Read/Write/Edit/Grep/Glob tools Claude Code already has. It ships exactly one skill with 6 sub-commands: recall, record, update, search, forget, and analyze. The analyze command is the centerpiece: it reads the entire memory file and produces a 7-section structured report (summary, topics, entities, timeline, relationships, knowledge gaps, suggested next steps) giving agents a "basic info foundation" before downstream tasks. The project was validated on a 1,022-line real conversation transcript. No MCP server, no database, no hook — just a skill file and a text file.

Compared to seeds: the closest archetype is agent-os (Archetype 4 — markdown scaffold, zero primitives), but MemoryAgent is even more minimal — it ships one skill rather than 5 commands, and its value proposition is pure "files are memory" philosophy applied as a structured skill rather than a markdown template system.

01

Overview

MemoryAgent — Origin & Philosophy

Origin

Created by a single developer (IIIIQIIII). MIT license. 38 GitHub stars. The project includes a blog post (blog.html) and a showcase index.html, suggesting it was written for public exposition as much as for use.

Philosophy

"MemoryAgent explores a simple but powerful idea: Coding Agents already have all the tools they need to manage memory. They can Read, Write, Edit, Grep, and Glob files. If we persist knowledge as files, memory management becomes file management — and Coding Agents are the best file managers around."

The framework reduces the memory problem to its simplest possible form:

Memory Operation Agent Tool
Recall Read / Grep / Glob
Record Write
Update Edit
Search Grep / Glob
Organize Read + Edit

Working Memory Model

The README introduces a working memory model analogous to human cognition:

  • Long-term memory: The file system (all memory files)
  • Working memory: The current context window (only what the current subtask needs)
  • The agent autonomously decides what to load/unload per subtask

Design Principles

  1. Files are memory — all knowledge persisted as human-readable text
  2. Native tools only — Read, Write, Edit, Grep, Glob; zero external dependencies
  3. Human-auditable — users can open and edit memory files directly
  4. Timestamp everything — every entry gets a timestamp for chronological tracking
  5. Analyze before actinganalyze provides the foundation for informed decisions

Validation

"Tested on real data, not just toy examples:

  • 1,022 lines of real conversation transcript
  • 38 search matches found and categorized into 6 thematic groups
  • 6/6 commands passed validation
  • 7-section analysis report generated"
02

Architecture

MemoryAgent — Architecture

Distribution

  • Type: Single Claude Code skill file
  • License: MIT
  • Language: HTML (GitHub classification — project has HTML showcase pages)

Install Method

git clone https://github.com/IIIIQIIII/MemoryAgent.git
cp -r MemoryAgent/skills/memory-manage ~/.claude/skills/
# Restart Claude Code

Required Runtime

None — uses only Claude Code's native tools.

Repository Structure

MemoryAgent/
├── README.md
├── index.html          # Project showcase page
├── blog.html           # Full blog post
├── favicon.svg
└── skills/
    └── memory-manage/
        └── SKILL.md    # The sole deliverable

Data Storage

Default: memory.txt in the current working directory. User can specify any file path as the last argument to any command.

Format:

# Memory File
## [YYYY-MM-DD HH:MM] <short topic>
<content>

All operations use Claude Code's built-in Read/Write/Edit/Grep tools — no external process.

Target AI Tools

  • Claude Code (primary)
  • Any AI coding agent that supports skill files with Read/Write/Edit/Grep/Glob tools
03

Components

MemoryAgent — Components

Skills (1)

Skill Format Purpose
memory-manage skill-md (SKILL.md) Unified memory management skill with 6 sub-commands

Sub-Commands (within memory-manage)

Command Usage Purpose
recall /memory recall [file] Read full contents of memory file
record /memory record <content> [file] Append timestamped entry to memory file
update /memory update <old> -> <new> [file] Replace specific content using Edit tool
search /memory search <query> [file] Grep search with 2-line context window
forget /memory forget <content> [file] Remove specific entry (including timestamp header)
analyze /memory analyze [file] 7-section exploratory analysis report

The analyze Output Structure

The skill specifies a precise 7-section report format:

  1. Summary — one-paragraph overview of scope, depth, theme
  2. Topics — bulleted list ordered by frequency/importance
  3. Key Entities — people, projects, tools, technologies, decisions grouped by category
  4. Timeline — chronological reconstruction from timestamps
  5. Relationships — connections between topics
  6. Knowledge Gaps — missing, incomplete, or unclear information
  7. Suggested Next Steps — concrete actionable recommendations

Hooks

None.

Commands

None (separate from skills).

MCP Servers

None.

Scripts

None.

Templates

None beyond the skill file itself.

05

Prompts

MemoryAgent — Prompt Files (Verbatim Excerpts)

Excerpt 1: memory-manage Skill — analyze Command Definition

Source: skills/memory-manage/SKILL.md

Prompting technique: Structured output contract — the skill specifies an exact 7-section report template that the agent must produce. This is a "fill the template" pattern ensuring consistent, machine-parseable memory analysis.

### `analyze` — Exploratory Analysis

Usage: `/memory analyze [file]`

**This is the most important command.** Perform a comprehensive exploratory analysis of the memory file to build context for subsequent work.

Steps:
1. Read the entire memory file using the **Read** tool
2. Produce a structured analysis report with the following sections:

Memory Analysis Report

Summary

One-paragraph overview of what the memory contains — its scope, depth, and overall theme.

Topics

Bulleted list of distinct topics and themes found in the memory, ordered by frequency or importance.

Key Entities

People, projects, tools, technologies, and decisions mentioned. Group by category.

Timeline

Chronological progression of events or knowledge, if timestamps or temporal references exist.

Relationships

Connections between topics — how different pieces of memory relate to each other.

Knowledge Gaps

What information is missing, incomplete, or unclear. What questions remain unanswered.

Suggested Next Steps

Concrete, actionable recommendations for what the agent (or user) could do next based on the memory content. These should be specific enough to serve as task descriptions.


3. This report is designed to give the agent (or a sub-agent) a **basic info foundation** — enough context to understand the situation and continue working on downstream tasks without needing to re-read the full memory file.

Excerpt 2: memory-manage Skill — record Command Format

Source: skills/memory-manage/SKILL.md

Prompting technique: Enforced structured append — the command specifies exact timestamped format for every entry, ensuring the memory file remains parseable by the search and analyze commands.

### `record` — Append to Memory

Usage: `/memory record <content> [file]`

Append new information to the memory file.

**Format each entry as:**

[YYYY-MM-DD HH:MM]

```
  • Use the current date and time for the timestamp
  • Derive a short topic label (3-5 words) from the content
  • If the file does not exist, create it with a header line: # Memory File
  • Use the Read tool to get existing content, then Write to append the new entry
  • Do NOT overwrite existing content — always append

## Excerpt 3: `memory-manage` Skill — Design Principles (Closing Section)

Source: `skills/memory-manage/SKILL.md`

**Prompting technique**: Iron-law constraints at end of skill — four non-negotiable rules placed after all the command definitions, ensuring they are enforced regardless of which command is invoked.

```markdown
## Design Principles

- **Files are memory** — all knowledge is persisted as human-readable text files
- **Native tools only** — use Read, Write, Edit, Grep, and Glob; no external dependencies
- **Human-auditable** — users can open and edit memory files directly at any time
- **Timestamp everything** — every recorded entry gets a timestamp for chronological tracking
- **Analyze before acting** — the `analyze` command provides the foundation for informed decision-making
09

Uniqueness

MemoryAgent — Uniqueness & Positioning

differs_from_seeds

MemoryAgent is closest to agent-os (Archetype 4 — markdown scaffold, zero primitives) but with a tighter focus on memory specifically. While agent-os ships 5 commands that write markdown files for passive agent reading, MemoryAgent ships 1 skill with 6 sub-commands for active CRUD on a plain text file. Unlike any seed, MemoryAgent names the "working memory / long-term memory" distinction explicitly and models it architecturally. It is the most minimal framework in this batch — one file, one skill, one text file. The 7-section analyze output template is the closest thing in the corpus to a "structured intelligence briefing" pattern for memory retrieval.

Positioning

MemoryAgent is a proof-of-concept / blog-post framework — the index.html showcase and blog.html writeup indicate it was written to make an argument ("files are memory") as much as to provide a production tool. At 38 stars from a single developer, it has not achieved wide adoption, but the idea is cleanly demonstrated.

Observable Failure Modes

  • No auto-save / no hooks: Everything requires explicit /memory record calls. In practice, agents in complex sessions rarely remember to invoke memory commands.
  • Flat text scalability: A 1,000+ line memory file (tested in the README's validation) is at the edge of usability. The analyze command reads the entire file each time — expensive at large scales.
  • No conflict resolution: If two agents write to memory.txt simultaneously, races occur. No locking mechanism.
  • No search semantics: Grep is pattern-matching only. "Find decisions about auth" requires the user to know the exact phrase they used.
  • No retention/cleanup: Old entries accumulate indefinitely. forget requires exact content matching.

Cross-References

  • Philosophically aligned with: Nemp Memory ("plain files" approach)
  • Simpler than: RLM (no MCP, no hooks, no semantic search)
04

Workflow

MemoryAgent — Workflow

Phase 1: Install

cp -r MemoryAgent/skills/memory-manage ~/.claude/skills/

Artifact: Skill available in Claude Code

Phase 2: Record Knowledge

/memory record This project uses TypeScript with bun
/memory record PostgreSQL via Prisma, migrations in /prisma/
/memory record Auth: NextAuth.js JWT strategy

Each call appends a timestamped entry to memory.txt.

Artifact: memory.txt with structured entries

Phase 3: Context Recovery (session start or after compaction)

/memory analyze

Reads entire memory.txt, produces 7-section report, giving the agent a "basic info foundation."

Artifact: Analysis report in chat — agent now has full project context

Phase 4: Active Development

/memory search auth          # Find auth-related entries
/memory recall               # Read all entries
/memory update "NextAuth.js" -> "Auth.js (renamed)"   # Update stale fact
/memory forget "old decision"  # Remove superseded entry

Artifact: Updated memory.txt

Approval Gates

None.

Artifacts Summary

Artifact Path
Memory file memory.txt (default) or any specified path

Default Behavior

If /memory is invoked without arguments:

  • If memory file exists → default to analyze
  • If no memory file → instruct user to start with record
06

Memory Context

MemoryAgent — Memory & Context

Storage Model

Flat text file, local, zero dependencies.

File Format Default Path
Memory file Plain text with ## [timestamp] topic headers memory.txt

Users can specify any file path as the last argument, enabling multi-file memory (e.g., memory-auth.txt, memory-db.txt).

Memory Format

# Memory File
## [2026-01-15 14:32] Auth Strategy
NextAuth.js with JWT strategy

## [2026-01-15 15:00] Database Setup
PostgreSQL via Prisma, migrations in /prisma/

Human-readable, human-editable at any time.

/memory search <query> uses Grep with 2-line context window. Pure pattern matching — no vector embeddings or synonym expansion. Fast but literal.

Cross-Session Handoff

The memory file persists on disk across sessions. After compaction:

  1. Run /memory analyze to rebuild context from the file
  2. The 7-section analysis report gives the agent enough foundation to continue

No hooks — no automatic compaction interception. The user must manually invoke /memory analyze after context loss.

Working Memory Model

The skill's README describes a working memory model:

  • Long-term memory (file system): all memory files
  • Working memory (context window): only what the current subtask needs
  • Agent decides what to load/unload per subtask

This is a conceptual model, not an enforced mechanism — the skill provides the tools but doesn't automate the load/unload decisions.

Context Compaction Handling

No — no PreCompact hook or automatic save mechanism.

07

Orchestration

MemoryAgent — Orchestration

Multi-Agent

No — no subagent spawning or coordination.

Orchestration Pattern

none — single-agent, direct tool use.

Isolation Mechanism

none

Multi-Model

no

Execution Mode

interactive-loop — invoked on-demand per /memory command invocation.

Consensus

None.

Crash Recovery

No — relies on Write tool atomicity.

Cross-Tool Portability

High — requires only Read/Write/Edit/Grep/Glob tools, which are standard across most AI coding agents.

08

Ui Cli Surface

MemoryAgent — UI & CLI Surface

Dedicated CLI Binary

None.

Local Web Dashboard

None.

Slash Command

/memory <subcommand> — single skill with 6 sub-commands.

IDE Integration

Claude Code (primary). The skill file can be copied to any directory that Claude Code reads skills from. No Cursor, Copilot, or other editor support documented.

Observability

None — no audit log, no stats command, no health check. The memory file itself is the only observable state.

Human Auditability

The memory.txt file is plain text, human-readable at any time. This is the design's main "observability" feature — you can cat memory.txt and see everything.

Related frameworks

same archetype · same primary tool · same memory type

claude-mem (thedotmack) ★ 78k

Background worker service captures every tool call as an observation, AI-compresses sessions, and auto-injects relevant past…

pi (badlogic/earendil) ★ 55k

A minimal, hackable, multi-provider terminal coding agent that adapts to your workflows via npm-installable TypeScript Extensions…

Agent Skills (Addy Osmani) ★ 46k

Encodes senior-engineer software development lifecycle as 23 auto-routed skills and 7 slash commands for any AI coding agent.

wshobson/agents Plugin Marketplace ★ 36k

Single Markdown source for 83 domain-specialized plugins that auto-generates idiomatic artifacts for five AI coding harnesses.

TabbyML/Tabby ★ 34k

Self-hosted AI coding assistant server (alternative to GitHub Copilot) with admin dashboard, RAG-based completions, and multi-IDE…

Compound Engineering ★ 17k

Make each unit of engineering work compound into easier future work via brainstorm→plan→execute→review→learn cycles.