This is how you search across past Claude sessions without burning tokens on irrelevant details. The workflow is smart: search returns a lightweight index with IDs and titles, timeline shows you what happened before and after interesting moments, then you only fetch full details for the observations that matter. That three-step filter saves roughly 10x on tokens compared to fetching everything upfront. Use it when someone asks "didn't we already fix this?" or "how did we handle authentication last time?" The batch fetch with get_observations is a nice touch. If you want synthesized answers instead of raw records, there's a knowledge agent mode that reads your history and responds conversationally.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
8
skills.sh installs
9.3K
GitHub stars
115.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add thedotmack/claude-mem --skill mem-search --agent claude-code

Installs into .claude/skills of the current project.

Files

mem-search

Layered workflow. Do not dump full observations until IDs are filtered, and do not reach for raw tool bodies until the summaries came up short.

  1. search(query) — index with IDs
  2. timeline(anchor=ID) — nearby context
  3. get_observations(ids=[...]) — full details for those IDs only
  4. get_tool_uses(ids=[...]) — the ORIGINAL tool_input / tool_response for specific tool calls. Last resort: these are unsummarized and can run to thousands of tokens each.

Stamp platformSource as cursor or grok-bot on writes for this host. When reading, do not drop the other host unless asked.

If MCP is missing, run the install skill first (npx claude-mem install --ide <host>).

Sponsors

Details

Repository
github.com/thedotmack/claude-mem
Categories
Backend & APIs, Databases
First seen
Apr 16, 2026

More from thedotmack/claude-mem

All 18
1nomadamas avatarkakao-mapnomadamas/k-skillKakao Local (장소 검색·주소-좌표 변환) + Kakao Mobility (자동차 길찾기) 를 k-skill-proxy 경유로 조회한다. 사용자 키 불필요. 돌쇠에서는 공식 표면을 통한 후속 액션까지 진행한다.9.2Kskills.sh installs
2rorkai avatarasc-cli-usagerorkai/app-store-connect-cli-skillsGuidance for using asc cli in this repo (flags, output formats, pagination, auth, and discovery). Use when asked to run or design asc commands or interact with 8.9Kskills.sh installs
3emblemcompany avataremblem-aiemblemcompany/agent-skillsOne-shot user management for apps, multi-chain wallet authentication, an AI-powered assistant, and AI app introspection. Use when the user wants to let website 8.7Kskills.sh installs
4datadog-labs avatardd-pupdatadog-labs/agent-skillsDatadog CLI (Rust). OAuth2 auth with token refresh.8.3Kskills.sh installs
5nodnarbnitram avatartauri-v2nodnarbnitram/claude-code-extensionsTauri v2+ cross-platform app development with Rust backend. Use when configuring tauri.conf.json, implementing Rust commands (#[tauri::command]), setting up IPC8.3Kskills.sh installs
6mvanhorn avatarprinting-pressmvanhorn/cli-printing-pressSet up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or Postman spec via the lean researc7.9Kskills.sh installs