wasintoh/toh-framework/memory-system
Claude Code and agent skill by wasintoh/toh-framework
- community
Checking that the SKILL.md file is still in the repository.
Tiered, low-token project memory protocol for .toh/memory/ — 7 files across 3 tiers (Tier 1 active.md + summary.md always read, ~800 tokens; Tier 2 architecture/components for build work and changelog for debug work; Tier 3 decisions/agents-log only on demand). Auto-saves after task completion with zero user effort; delegated agents receive context from the orchestrator instead of re-reading. Use at every session start and whenever loading or saving project memory or resuming context across ses…
Install
npx vskill@latest install wasintoh/toh-framework/memory-systemSKILL.md
The same SKILL.md was published earlier as wasintoh/toh-framework/memory-system.
🧠 Memory System Skill
Purpose: Tiered, low-token memory — load only what the task needs, save what mattersVersion: 2.0.0For: Toh Framework v2.0.0+Updated: 2026-07-14
Overview
Automatic memory that keeps AI in context across sessions with zero user effort. v2 replaces the old "read all files every time" mandate with tiered loading: Tier 1 is always read (~800 tokens), Tier 2 is read only for the relevant task type, Tier 3 only when explicitly referenced.
Key principles
- ✅ Zero config — no setup required
- ✅ Tiered — Tier 1 always; Tier 2/3 on demand (no more ~3,000 tokens every time)
- ✅ Auto save — saves after task completion, never asks the user
- ✅ Delegated agents don't re-read — they receive context from the orchestrator
- ✅ IDE & model agnostic
📚 The Tiered Model (use this everywhere)
There are 7 memory files across 3 tiers. Read by tier, not all at once.
| Tier | Files | When to read | Budget | |
|---|---|---|---|---|
| Tier 1 | active.md + summary.md | ALWAYS, at every session start | ~800 tokens | |
| Tier 2 | architecture.md + components.md | Build / code work (creating pages, components, logic) | ~600 tokens | |
| Tier 2 | changelog.md | Debug work (to see previous attempts) | ~400 tokens | |
| Tier 3 | decisions.md + agents-log.md | Only when explicitly referenced / asked about | on demand |
This replaces the old "read ALL files (MANDATORY)" rule. Never bulk-read all 7. Read Tier 1 always, add the Tier 2 files that match the task type, and touch Tier 3 only when needed.
Delegated agents: an agent invoked by the orchestrator receives context from the orchestrator and does NOT re-read memory itself. This avoids every agent re-reading the same files.
📁 Directory Structure
agents-log.md stays a separate file — it is NOT merged into changelog.md.
🔄 Read Protocol (session start)
Do not read archive/ during normal work — only when the user asks about past work or runs a history command.
💾 Save Protocol (after completing work)
Write rules: always update active.md; update summary.md when the project shape changes; update the rest only when relevant to what actually happened. Keep entries concise (1-2 lines). If active.md grows past ~50 lines, roll older content into archive/YYYY-MM-DD.md.
🗂️ File Reference
| File | Tier | Holds | Update when | |
|---|---|---|---|---|
active.md | 1 | Current focus, in-progress, next steps | Always | |
summary.md | 1 | Project name, stack, completed features | Project shape changes | |
architecture.md | 2 | Entry points, modules, data flow, services | Structure changes | |
components.md | 2 | Pages, components, hooks, stores, utils registry | Components change | |
changelog.md | 2 | Chronological change & debug-attempt log | Every notable change | |
decisions.md | 3 | Date · Decision · Reason table | A real decision is made | |
agents-log.md | 3 | Which agent did what, when | Agents are delegated |
📝 Templates
active.md (Tier 1)
summary.md (Tier 1)
changelog.md (Tier 2 — debug)
agents-log.md (Tier 3)
architecture.md,components.md, anddecisions.mdkeep their existing table structures (entry points/modules, component registry, decision log).
⚠️ Anti-Patterns
| ❌ Don't | ✅ Do | |
|---|---|---|
| Bulk-read all 7 files every time | Read Tier 1 always; Tier 2/3 by need | |
| Make delegated agents re-read memory | Pass context from the orchestrator | |
Read archive/ during normal work | Only when the user asks about the past | |
| Forget to save | Always update active.md after a task | |
| Ask the user whether to save | Save automatically | |
Merge agents-log into changelog | Keep the 7 files distinct |
🔗 Integration
Every command applies this protocol: read Tier 1 at start, add Tier 2 for the task type, save active.md (+ relevant files) at the end. Delegated agents receive context and skip the re-read.
Memory System v2.0.0 — tiered loading, ~800-token Tier 1, 7 files across 3 tiers
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/skills/memory-system/SKILL.md
Popularity
- Repository stars
- 97
- Repository forks
- 19
- Repository npm downloads, 7 days
- 5
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 16 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wasintoh/toh-framework/memory-system)