Ham — AI skill for Claude Code
(HAM) Memory system for AI coding agents.
How to install Ham
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open kromahlusenii-ops/ham and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Ham does
(HAM) Memory system for AI coding agents. Cut token usage by 80% by scoping context to directories.
Alternatives in AI
- Codeburn — Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k ★
- Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
- Token Monitor — Local-first desktop widget for tracking token usage, costs, and limits across 32+ AI coding tools—including Cl 1.8k ★
README
HAM — Hierarchical Agent Memory
**Fewer tokens. Greener AI.**
HAM is a memory system for AI coding agents that reduces token consumption by up to 80%. Instead of loading your entire project context on every request, HAM scopes memory to the directory you're actually working in.
Less tokens. Faster agents. Lower costs. Greener AI.
**Claude Code only** — HAM is a skill for [Claude Code](https://docs.anthropic.com/en/docs/claude-code) and only works with Claude coding agents. It is not compatible with Cursor, Copilot, Windsurf, or other AI coding tools.
The Problem
Every time your AI agent starts a session, it re-reads everything. Your full project structure. Conventions it already learned. Decisions you already made. Context that has nothing to do with the current task.
A single bloated CLAUDE.md can eat 47% of your context window before the agent writes a single line of code.
That's wasted tokens. Wasted money. Wasted energy.
The Solution
HAM replaces one massive context file with small, scoped memory files at each directory level. Your agent reads only what it needs for the directory it's touching.
project-root/
├── CLAUDE.md # Global: stack, conventions (under 250 tokens)
├── src/
│ ├── CLAUDE.md # Shared src patterns
│ ├── api/
│ │ └── CLAUDE.md # API auth, rate limits, endpoint patterns
│ ├── components/
│ │ └── CLAUDE.md # Component conventions, styling rules
│ └── db/
│ └── CLAUDE.md # Schema context, query patterns
└── .memory/
├── decisions.md # Architecture decisions with rationale
└── patterns.md # Implementation patterns
The agent reads 2-3 small files instead of one massive context dump. Your starting context drops from thousands of tokens to hundreds.
Before & After
| Before HAM | After HAM | |
|---|---|---|
| Context per prompt |
Related Skills
Smart Context Delegation
Cut coding-agent token usage by ~90%: a PreToolUse hook blocks large file reads; bulk-read/code-write delegate
Furl Ctx
Context compression for AI agents — cut token usage costs with retrievable CCR compression. Rust core + Python
Context Broker
Cut Claude Code token usage 80-95% on big-file reads. Deterministic, ~1ms, zero egress — no second LLM.
Lean Agent Skills
⚡ Cut AI coding agent token usage without losing quality — curated Agent Skills for Claude Code, Codex, Antigr
Toknt
Tokens? Tokn't. Local-first token optimization for AI coding agents (Cursor, Claude Code, Codex). Cut redundan
Minimize Cursor Cost
Drop-in AI rules for Cursor and Claude Code that cut project token usage by 50%+.
Related Agents
Context Optimizer
Meta utility agent for token and context optimization. Spawn when needing to compress agent prompts, optimize
Context Auditor
Use proactively when the user wants to cut Claude Code token cost or asks "why is this session so expensive /
Context Analyzer
Analyzes context usage patterns, identifies waste, and provides optimization recommendations. Use when the use