Context7
Up-to-date docs for AI agents
제작자가 쓴 설명(영어 원문)
Persistent 5-level hierarchical memory for AI agents. SQLite-backed, lazy-loaded.
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
HMEM_STORAGE_DIR필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"hmem": {
"command": "npx",
"args": [
"-y",
"hmem-mcp"
],
"env": {
"HMEM_STORAGE_DIR": "your-value"
}
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add hmem --env HMEM_STORAGE_DIR=your-value -- npx -y hmem-mcp실행하기 전에 빈 값을 채워 주세요.
프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"hmem": {
"command": "npx",
"args": [
"-y",
"hmem-mcp"
],
"env": {
"HMEM_STORAGE_DIR": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"hmem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"hmem-mcp"
],
"env": {
"HMEM_STORAGE_DIR": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
HMEM_STORAGE_DIR env이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검
레지스트리 이름이 GitHub 계정 Bumblebiber 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.6.7)은 8개월 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.
같은 카테고리에는: Context7, Codebase Memory, Exa
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
Your AI forgets everything between sessions. hmem fixes that.
One load_project() call. ~3000 tokens. Your agent knows everything important about a project — every past mistake, every decision, every open task — across sessions, devices, and AI providers. No setup per conversation. No "let me re-read the codebase." It just *remembers*.
AI agent? Skip this file. Read AGENT_SETUP.md — written for you, not for humans.
Naming note (v8.0): This package was briefly published as
its-over-9k(1.x). It is nowhmemagain — pure memory framework, nothing else. Theits-over-9kname lives on as a separate project: the o9k token-efficiency meta-framework, which combines skills/plugins like this one. Related: TIM — hmem's next-generation successor (hypergraph memory, CRDT sync).
hmem is not a note-taking plugin. It's a memory framework for AI agents — a complete infrastructure layer for persistent, portable, token-efficient knowledge that survives session boundaries, device switches, and provider changes.
Four core guarantees:
| Pillar | What it means |
|---|---|
| Token efficiency | 5-level lazy loading — you pay for what you read, never more |
| Portability | Same memory across Claude, Gemini, GPT, local models, any MCP client |
| Efficient storage | Hierarchical tree structure — context scales with depth, not flat append |
| No context waste | Auto-session capture + project briefing = zero re-read overhead |
Every AI session starts from zero. Your agent asks the same questions, makes the same mistakes, contradicts last week's decisions, and wastes 50k tokens loading context it already processed yesterday.
You've tried workarounds — CLAUDE.md files, custom prompts, manually pasting context. They don't scale. You have 10 projects. You switch between 3 devices. You use different AI tools.
You: "Load project"
Agent: [calls load_project("P0048") — 3000 tokens] Agent: "v1.2.9, TypeScript/SQLite/npm. 3 open bugs, 8 roadmap items. Last session: rebrand complete, rename_id bug fixed (89 changes). Next: O-Entry Auto-Purge. What's the focus today?"
That's it. 3000 tokens for a complete project briefing. The agent knows the stack, the architecture, the open bugs, the recent decisions, and exactly where you left off — even if "you" was a different AI on a different machine yesterday.
Level 1 ── One-line summary (always loaded — ~5k tokens for 300+ entries)
Level 2 ── Paragraph detail (loaded on demand) Level 3 ── Full context (loaded on demand) Level 4 ── Extended detail (loaded on demand) Level 5 ── Raw/verbatim data (loaded on demand)
At session start, the agent loads Level 1 summaries — one line per memory. When it needs detail, it drills down. Your 300-entry memory costs 5k tokens to overview. A single project costs ~3000 tokens.
Nothing is summarized away. Level 1 is a compressed view, but Levels 2–5 hold the complete original text, word for word, accessible on demand.
Every conversation is recorded automatically. No "save your work" prompts. No manual checkpoints.
You type → Agent responds → Stop hook fires → Exchange saved to O-entry
→ Linked to active project → Haiku auto-titles the session
Switch projects mid-session? The O-entry switches too. Start a new session on a different device? The next agent sees every exchange from every device — the conversation never dies.
Every N exchanges (configurable, default 5), a Haiku subagent wakes up in the background. It reads the recent conversation, extracts lessons learned, errors encountered, and decisions made, then writes them to long-term memory — with full MCP tool access. Your main agent is never interrupted.
The checkpoint also writes a handoff note to the project: "Here's what was done, here's what's in progress, here's the next step." The next agent — on any device, any provider — picks up exactly where you left off.
Sessions are meaningless. Projects are everything.
load_project shows recent conversations with full context — across all deviceshmem ships with a complete skills layer — structured behavior files that agents load on demand. Skills define *how* an agent should do something (debug, write memory, curate entries, handle a session start) — separate from memory, separate from prompts.
npx hmem update-skills # Pull latest skills to your AI tool's skill directory
Skills are versioned and updated independently. Your agents get smarter without reinstalling. 21 skills ship by default:
| Skill | Triggers when… |
|---|---|
hmem-session-start | Every session start — loads project + surfaces pending git work, open tasks, misrouted O-entries |
hmem-using-hmem | Meta-skill loaded at session start; defines mandatory memory habits |
hmem-read | Reading from long-term memory (search, prefix filter, find_related, cross-project read) |
hmem-write | Writing to hmem — picks prefix, tree location, tags, detects duplicates |
hmem-search | User references something without an ID ("the bug we had", "letzte Woche") |
hmem-new-project | Creating a P-entry — handles schema, sections, O-entry linking |
hmem-new-error | Creating an E-entry with the strict 5-level scaffold |
hmem-activate | Switching active project mid-session, plus fixing misrouted exchanges |
hmem-context | Loading specific context when load_project output isn't enough |
hmem-recall | Dispatching a Haiku sub-agent to search hmem |
hmem-dispatch | Dispatching an isolated sub-agent for any search/lookup/calculation |
hmem-curate | Cleaning up an .hmem file (mark obsolete, fix titles, consolidate dupes) |
hmem-migrate-o | Migrating O-entries to the project-bound 5-level structure |
hmem-consolidate | Merging session checkpoint summaries into one final O-entry summary |
hmem-wipe | Prep for /clear — save high-value knowledge, update Next Steps |
hmem-config | View/change memory settings, hooks, sync, checkpoints |
hmem-setup | First-time install of hmem for Claude Code / Gemini CLI / OpenCode |
hmem-sync-setup | Set up hmem-sync for cross-device sync |
hmem-update | Update flow — runs npm update -g, syncs skills, applies migrations |
hmem-release | Pre-publish checklist for hmem itself |
hmem-subagent | Template for sub-agents dispatched by hmem-dispatch |
Beyond personal memory, agents can maintain a shared company store — a separate company.hmem that multiple agents and team members can read from. Personal and company memory coexist; agents query both simultaneously.
import { openCompanyMemory } from 'hmem';
const store = openCompanyMemory('/path/to/project');
hmem ships as a fully documented TypeScript SDK — import HmemStore directly into your own agents, tools, or automation pipelines:
import {
HmemStore, openCompanyMemory, resolveHmemPath, loadHmemConfig, saveHmemConfig, DEFAULT_CONFIG, DEFAULT_PREFIXES, formatPrefixList, searchMemory, } from 'hmem'; import type { AgentRole, MemoryEntry, MemoryNode, HmemConfig, SearchResult, SearchOptions, SearchScope, } from 'hmem';
const store = new HmemStore('/path/to/agent.hmem'); const results = searchMemory('/path/to/project', 'auth token bug', { maxResults: 5 });
hmem ships two MCP servers:
hmem — daily-use server (13)| Tool | What it does |
|---|---|
read_memory | 5-level lazy read — by ID, prefix, search, time, or tag |
write_memory | Create new entries with title, body, tags, links |
append_memory | Add child nodes to existing entries |
update_memory | Patch fields: title, body, tags, irrelevant, links |
search_memory | FTS5 full-text search with sub-node attribution |
find_related | Find contextually related entries by tag overlap |
load_project | Activate a project + get full briefing + recent sessions |
read_project | Read project without activating (comparison/reference) |
create_project | Scaffold a new project entry with standard schema |
list_projects | List all projects with status summary |
flush_context | Persist current session context to long-term memory |
move_nodes | Move a subtree under a different parent (also in curate server) |
set_active_device | Register and switch between devices |
hmem-curate — maintenance server (11)| Tool | What it does |
|---|---|
memory_stats | Per-prefix counts, total tokens, favorites, hashtags, stale-list |
memory_health | Find broken links, orphan tags, empty entries, dangling chains |
export_memory | Export the full .hmem to a portable JSON snapshot |
import_memory | Import a JSON snapshot back into a .hmem (destructive) |
update_many | Bulk-patch a set of entries (irrelevant, tags, body, etc.) |
tag_bulk | Add/remove a tag across many entries |
tag_rename | Rename a tag globally across all entries |
move_memory | Move an entire entry to a new ID slot |
move_nodes | Move a subtree under a different parent (also in main server) |
rename_id | Rename an entry's ID; rewrites all inbound links |
reset_memory_cache | Invalidate the in-memory L1 cache (after raw SQL writes) |
The daily hmem server is registered automatically by hmem init. hmem-curate is opt-in because its tools are destructive — register it when you need to curate:
npx hmem mcp-add-curate # adds the curate server to Claude Code (user scope)
Then toggle it via /mcp only during curation sessions. For other MCP clients, see Manual setup.
After npm install -g hmem-mcp, the hmem binary is on PATH.
| Command | Purpose |
|---|---|
hmem init | Interactive installer for AI tools (Claude Code, OpenCode, Gemini CLI, Cursor, Windsurf, Cline). Flags: --global / --local / --tools / --dir / --no-example |
hmem update-skills | Copy/sync bundled skill files to detected AI tools (called automatically on npm install) |
hmem mcp-add-curate | Register the hmem-curate MCP server with Claude Code (opt-in; toggle via /mcp when curating) |
hmem doctor | Detect stale or deprecated hmem MCP entries in host configs |
hmem stats | Memory statistics + per-project token estimates + 🔴 4k threshold flagging |
hmem setup-hook | Re-add the SessionStart hook to Claude Code settings (if removed) |
hmem version | Show version |
| Command | Wired into | What it does |
|---|---|---|
hmem hook-startup | UserPromptSubmit | First-message context injection (memory overview, project list, sync status). Periodic checkpoint reminders. Reads JSON from stdin |
| hmem log-exchange | Stop (sync) | Append the latest e
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요