Hierarchical Agent Memory (HAM)
Optimizes AI coding sessions using a directory-scoped memory system that minimizes token consumption and improves context accuracy.
Hierarchical Agent Memory (HAM) is a sophisticated context management system designed to solve the problem of context bloat in large codebases. Instead of forcing Claude to re-read your entire project, HAM implements a tiered architecture consisting of a lightweight root CLAUDE.md for global routing, subdirectory-specific context files, and a dedicated .memory folder for tracking architectural decisions. This approach drastically reduces input token costs and improves agent performance by ensuring the AI only processes the most relevant local context for any given task. The included web dashboard provides real-time visibility into token savings, cost trends, and the overall health of your project's documentation.