hierarchical-agent-memory

Featured

Scoped CLAUDE.md memory system that reduces context token spend. Creates directory-level context files, tracks savings via dashboard, and routes agents to the right sub-context.

AI & Automation 49,938 stars 7238 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Hierarchical Agent Memory (HAM) Scoped memory system that gives AI coding agents a cheat sheet for each directory instead of re-reading your entire project every prompt. Root CLAUDE.md holds global context (~200 tokens), subdirectory CLAUDE.md files hold scoped context (~250 tokens each), and a `.memory/` layer stores decisions, patterns, and an inbox for unconfirmed inferences. ## When to Use This Skill - Use when you want to reduce input token costs across Claude Code sessions - Use when your project has 3+ directories and the agent keeps re-reading the same files - Use when you want directory-scoped context instead of one monolithic CLAUDE.md - Use when you want a dashboard to visualize token savings, session history, and context health - Use when setting up a new project and want structured agent memory from day one ## How It Works ### Step 1: Setup ("go ham") Auto-detects your project platform and maturity, then generates the memory structure: ``` project/ ├── CLAUDE.md # Root context (~200 tokens) ├── .memory/ │ ├── decisions.md # Architecture Decision Records │ ├── patterns.md # Reusable patterns │ ├── inbox.md # Inferred items awaiting confirmation │ └── audit-log.md # Audit history └── src/ ├── api/CLAUDE.md # Scoped context for api/ ├── components/CLAUDE.md └── lib/CLAUDE.md ``` ### Step 2: Context Routing The root CLAUDE.md includes a routing section that tells the agent exactly which sub...

Details

Author
sickn33
Repository
sickn33/antigravity-awesome-skills
Created
10 months ago
Last Updated
today
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

agents-project-memory

Configure CLAUDE.md/AGENTS.md/CODEX.md for persistent agent context. Use when setting coding standards or architecture docs for a codebase.

90 Updated 1 months ago
vasilyu1983
AI & Automation Listed

memory-architecture

Keeps coding-agent memory cheap and true, so Claude stops forgetting between sessions, re-reading bloated CLAUDE.md files, redoing research and acting on stale notes. Knows which files actually load and when (CLAUDE.md at every level, AGENTS.md, .claude/rules, MEMORY.md), where each fact belongs, and the gates that stop it rotting. Ships a self-testing audit script and a 0-10 score. Use it for any question about those files, even a narrow one, before answering from memory or searching by hand. That includes which CLAUDE.md files load in a folder, whether the paths an AGENTS.md or CLAUDE.md mentions still exist, why an agent ignored or broke a rule it was given, how to make Claude Code, Cursor and Codex follow the same rules, how to set up, audit, slim down or clean up agent memory, where a rule or fact should live, and why an agent keeps forgetting, redoing work or burning tokens. Also use it before saving a memory or writing an agent-facing doc, even if nobody says "memory".

1 Updated 1 months ago
nicuk
AI & Automation Listed

agents-memory

Manages AGENTS.md, CLAUDE.md, and scoped repo rules for Claude Code and Codex. Use when fixing stale memory, ignored instructions, memory audits, or model-upgrade migration.

90 Updated 1 months ago
vasilyu1983