Hierarchical Agent Memory (HAM)

•
38k
•

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.

Características Principales

01Web-based dashboard for visualizing token savings and cost analytics
02Automated context routing between global and local project files
03Automated health audits to detect stale or missing context files
0437,718 GitHub stars
05Persistent .memory layer for architecture decisions and design patterns
06Directory-scoped memory architecture to minimize context window usage

Casos de Uso

01Maintaining long-term architectural consistency across multiple AI development sessions
02Managing large-scale projects or monorepos where full-project context exceeds token limits
03Reducing monthly API spend for Claude Code and other AI coding agents