Hierarchical Agent Memory

•
32k
•

Optimizes AI agent context usage by implementing a tiered memory system that reduces token consumption through directory-scoped guidance.

Hierarchical Agent Memory (HAM) is a sophisticated context management framework for Claude Code and other AI coding agents that replaces monolithic project files with a structured, multi-layer memory system. By utilizing a lightweight root CLAUDE.md for global context and specialized subdirectory-level files for specific modules, it prevents agents from re-reading irrelevant code, significantly slashing input token costs. The skill includes a dedicated web dashboard for tracking financial savings, carbon efficiency, and context health, making it an essential tool for large-scale projects where token limits and latency are critical concerns.

주요 기능

01Scoped context routing using tiered CLAUDE.md files to minimize token bloat.
02Environmental impact reporting including energy efficiency and carbon estimates.
0331,721 GitHub stars
04Web-based dashboard for real-time visualization of token savings and cost trends.
05Dedicated .memory/ layer for tracking decisions, patterns, and unconfirmed inferences.
06Automated memory structure generation and platform detection via 'go ham'.

사용 사례

01Improving AI agent accuracy by providing modular, directory-specific coding standards.
02Auditing and maintaining the health of project documentation and context routing.
03Reducing API operational costs for large codebases with complex directory structures.