Three-tier agent memory model (hot/cold/wiki) for context reduction per spawn
npx skills add https://github.com/microsoft/Generative-AI-for-beginners-dotnet --skill tiered-memory
> Status (v0.10.0): This skill describes a design proposal, not a shipped runtime. Skill files install via squad init/upgrade, but the underlying tier scaffolding (.squad/memory/hot/, cold/, wiki/), Scribe promotion logic, and spawn-template tier-aware reads are tracked in bradygaster/squad#1264. Until those land, agents continue to load full history.md + decisions.md on every spawn.
Squad agents today load their full context history on every spawn, which grows unboundedly across sessions. The Tiered Agent Memory model proposes a three-tier separation so agents only load the bytes that are actually relevant to the current task, with older context kept available on demand.
--include-cold in spawn template or add ## Cold Memory section.--include-wiki or reference specific wiki doc paths in spawn template.| Situation | Hot | Cold | Wiki |
|-----------|-----|------|------|
| New task, no prior context needed | โ | โ | โ |
| Resuming interrupted work | โ | โ | โ |
| Debugging a recurring issue | โ | โ | โ |
| Implementing against a spec/ADR | โ | โ | โ |
| Onboarding to unfamiliar subsystem | โ | โ | โ |
| Post-incident review | โ | โ | โ |
The default spawn prompt should include Hot tier only:
## Memory Context
### Hot (current session)
{hot_context}
Add --include-cold when the task needs history:
## Memory Context
### Hot (current session)
{hot_context}
### Cold (summarized history โ load on demand)
See: .squad/memory/cold/{agent-name}.md
Add --include-wiki when the task needs domain knowledge:
## Memory Context
### Hot (current session)
{hot_context}
### Wiki (durable reference)
See: .squad/memory/wiki/{topic}.md
Scribe is the proposed memory coordinator for this system. Once the runtime lands, Scribe will:
Until then, see the Scribe charter for current behavior: .squad/agents/scribe/charter.md
.squad/memory/hot/{agent}.md)--include-cold / --include-wiki flags as needed.squad/memory/wiki/.squad/memory/cold/ with rolling TTLUse this template when spawning any Squad agent. By default it loads Hot tier only. Add optional sections as needed.
{task_description}
{why_this_matters}
> Paste current session context here (~2โ4KB target):
Current task: {task_description}
Active decisions: {decisions_this_session}
Last actions: {last_3_to_5_actions}
Blockers: {current_blockers_or_none}
Talking to: {current_interlocutor}
--include-cold)> Load on demand. Do not inline unless specifically needed.
Summarized cross-session history is at:
.squad/memory/cold/{agent-name}.md
Include when:
To load cold memory, add this section and fetch the file before spawning:
## Cold Memory Summary
{contents_of_.squad/memory/cold/{agent-name}.md}
--include-wiki)> Load on demand. Reference specific wiki docs by path.
Wiki entries are at: .squad/memory/wiki/
Include when:
To load wiki, add this section and reference the specific doc:
## Wiki Reference
{contents_of_.squad/memory/wiki/{topic}.md}
If blocked or uncertain:
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Replace with description of the skill and when Claude should use it.
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Take microsoft/tiered-memory from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side โ one of them will be ignored.