Przejdź do treści
Biblioteka skilli
Produktywność osobista · Research

zeromem

/zeromem

Przeszukuje lokalną historię dawnych sesji Claude Code, by odpowiedzieć, jak wcześniej rozwiązano dany problem, i indeksuje ją bez zużycia tokenów.

Repozytorium
zeromem ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
107
Skrypty
69
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 69 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: bin/zeromem.py, install.ps1, install.py, tests/__init__.py, tests/test_bm25.py, tests/test_calibrate.py, tests/test_cli.py, tests/test_closure.py

Co robi i kiedy

Przeszukuje lokalną historię dawnych sesji Claude Code, by odpowiedzieć, jak wcześniej rozwiązano dany problem, i indeksuje ją bez zużycia tokenów.

Wyzwalacze z opisu

what did I do about Xlast time we…which project had that bughow did I fix this beforedid I already try…khi nào tôi…lần trước tôi đã làm gìtrong project cũ tôi đã…
Oryginalny opis (EN)

Use when the user asks about something from their own past Claude Code sessions — 'what did I do about X', 'last time we…', 'which project had that bug', 'how did I fix this before', 'did I already try…', 'khi nào tôi…', 'lần trước tôi đã làm gì', 'trong project cũ tôi đã…', 'tôi từng sửa lỗi này chưa' — or wants to search, index, or refresh their local session history. Runs Zero-Mem: a zero-token memory pipeline (entity–context graph + temporal hierarchy, dual-view retrieval, deterministic calibration) over ~/.claude/projects transcripts. No LLM call and no token spend happens inside the memo

Jak działa

  1. When to use it
  2. How to call it
  3. First, check whether the memory actually has it
  4. How to use the output — the provenance rule
  5. Reading the summary line
  6. Index maintenance
  7. When something fails
  8. More detail
Sekcje z nagłówków SKILL.md, w oryginale · 197 linii, 1 558 słów
Podgląd SKILL.md
---
name: zeromem
description: "Use when the user asks about something from their own past Claude Code sessions — 'what did I do about X', 'last time we…', 'which project had that bug', 'how did I fix this before', 'did I already try…', 'khi nào tôi…', 'lần trước tôi đã làm gì', 'trong project cũ tôi đã…', 'tôi từng sửa lỗi này chưa' — or wants to search, index, or refresh their local session history. Runs Zero-Mem: a zero-token memory pipeline (entity–context graph + temporal hierarchy, dual-view retrieval, deterministic calibration) over ~/.claude/projects transcripts. No LLM call and no token spend happens inside the memory pipeline; the only model reading the evidence is you."
---

# ZeroMem — structured recall over the user's own session history

Zero-token structured retrieval over this user's real Claude Code transcripts,
implementing Zero-Mem (arXiv:2607.29377v1). Every memory operation — graph
propagation, PageRank, hierarchy walk, fusion, closure, calibration — is
deterministic arithmetic. The only model in the loop is you, reading what it
returns.

## When to use it

Use it when the answer lives in the user's **past sessions**:

- "what did I do about the ENOENT bug"
- "lần trước tôi xử lý auth trong TaskBot thế nào?"
- "which project was that BM25 fix in"
- "did I already try mean-pooling here?"

**Do not** use it for:

- anything in the current session or an open file — that is already in context;
- general knowledge or library docs — this only knows what the user has done;
- reading a specific file you already have the path to — just read the file.

## How to call it

```
zeromem recall "<query>" --top-k 5
```

If `zeromem` is not on PATH, `python -m zeromem recall "<query>"` is equivalent
and works wherever the package is importable. Use one of these two forms only —
never an absolute path to the launcher script, which differs on every machine.
If neither works the package is not installed; see "When something fails".

Useful flags:

| Flag | Use |
|---|---|
| `--project <SLUG>` | Hard-restrict to one project (slugs come from `status`) |
| `--session <ID>` | Hard-restrict to one session |
| `--since` / `--until` | ISO datetime bounds, e.g. `--since 2026-07-01` |
| `--json` | Every provenance field, machine-readable |
| `--timings` | Per-stage timing breakdown |
| `--no-daemon` | Force the slow in-process path (debugging) |

Examples:

```
zeromem recall "BM25 CSC caching fix" --top-k 3
zeromem recall "lỗi auth" --project <SLUG>          # slugs come from `zeromem status`
zeromem recall "what changed in the encoder" --since 2026-07-20 --json
```

**Speed.** The first call in a session takes ~40 s because it loads a 135k-unit
index and a sentence-transformer. A background daemon makes every later call
~1.5 s:

```
zeromem serve
```

It binds loopback only, holds ~3.3 GB resident, and exits after 30 idle minutes.
**Do not start it silently** — if you expect several recalls, tell the user the
one-line tradeoff and let them decide. `recall` works either way; the slow path
prints a hint to stderr, not an error.

## First, check whether the memory actually has it

Before quoting anything, read the `support=` field on the summary line. It is
a deterministic measurement of how much of the query's distinctive vocabulary
actually appears in the returned blocks — **not** a model's opinion.

| What you see | What it means | What to do |
|---|---|---|
| `support=supported` | the query's terms are present in the evidence | answer normally, quoting blocks |
| `support=weak` + `PARTIAL EVIDENCE` | only part of the question is covered | answer the covered part, say plainly what is not covered |
| `support=unsupported` + `WEAK EVIDENCE` | the query's distinctive terms are essentially absent | **say the memory does not have this.** Do not present the blocks as an answer |
| no `support=` field | the query had no distinctive term to check | judge from the blocks as usual |

When the notice appears, it names the exact terms it could not find, and
separately any term that **never appears anywhere** in the indexed history.
Those are facts you can repeat to the user: "nothing in your indexed history
mentions `kubernetes`" is checkable and true; "you never worked on
Kubernetes" is neither — the index may simply not cover that project (see
`status`).

The retrieval still returns its best five blocks under a weak verdict — that
is deliberate, so you can see them. It is not permission to use them as the
answer. Measured behaviour: on 20 questions whose answers were genuinely
absent, 20/20 drew a hedge and 0/20 were reported as supported
(`references/abstention.md`).

### "Searched specifically for the missing terms"

On a weak verdict only, recall looks up each missing term and reports **corpus
facts, not answers**. `occurs in 0 units` is the strongest statement available —
say it directly, it is checkable. `occurs in 4 unit(s)` plus `[P]` blocks means
the word exists only there; if those are incidental mentions, say the memory has
the word but not the answer. No section means every missing term was too common
to point at anything. `[P]` blocks came from looking up **one word**, not from
the ranked retrieval — never present them as the answer.

The reverse error is likelier in Vietnamese: a Vietnamese question over English
evidence can score low even though retrieval was right (2 of 3 measured false
hedges). If the blocks plainly do answer the question, trust them and say the
match was lexically thin — do not refuse evidence you can see is relevant.

## How to use the output — the provenance rule

Every block's body is **verbatim text from the user's own history**, carrying its
uid, timestamp, project, and session.

> Quote it, or cite its uid. Do **not** paraphrase a block into a claim about
> what happened. If the evidence is thin, say the evidence is thin. Never
> present recalled text as your own recollection, and never merge two blocks
> into one narrative the user did not write.

This is the difference between a memory that is auditable and one that
confabulates. The retrieval is deterministic and provenance-preserving right up
to the moment you summarize it — that moment is where the guarantee can be lost.

Block header:

```
[E1] main · uid=<uid> · 2026-07-14 22:48 +07 · <project> · session <id> · user/text
<verbatim text>
```

`main` = retrieved directly. `bridge via <entity>` = pulled in by the
entity–context graph because it shares that entity. `neighbor via <uid>` =
an adjacent turn included for context. Bridges and neighbours are **context**,
not answers — the user asked about the main hits.

## Reading the summary line

```
route=relational (rule 3) · ρ=0.6 · support=supported (0.89) · 5 main, 2 bridges, 1 neighbors · 0 LLM calls · 0 tokens · 1013 ms
```

- **`support`** — how much of the query's distinctive vocabulary the evidence
  covers, weighted by rarity (see the table above). Omitted when the query had
  no distinctive term to check.
- **`route`** — `relational` means the query connects things across sessions
  (comparison, aggregation, multi-entity); `local` means a single anchor plus
  recency. `rule N` is which deterministic rule fired.
- **`ρ`** — how much weight the primary view got in the fusion (0.6 by default).
- **counts** — how many blocks came from retrieval vs. from closure.
- **`0 LLM calls · 0 tokens`** — literal, by construction. The pipeline contains
  no model.

Use it to tell the user *why* these results: "it routed relational, so it
connected traces across three projects" is a real explanation.

## Index maintenance

```
zeromem status                 # what is indexed, what is not, is the graph stale
zeromem update                 # incremental refresh of everything already indexed
zeromem update --quiet         # silent when nothing changed (for a scheduled run)
zeromem build --scope <SLUG> --with-graph   # add a project not yet indexed
```

**Recall only sees indexed scopes.** `status` lists the unindexed ones. If the
user asks about a project that is not indexed, say so and give the `build`
command — do not report "no memory of that", which is a different and wrong
claim.

`status` also reports whether the graph covers the current units. If it says
`STALE: covers N of M indexed units`, recall's graph view is blind to the
difference — tell the user to run `update`.

## When something fails

| Symptom | What to do |
|---|---|
| `zeromem: command not found` | The package is not installed. Tell the user: `pip install git+https://github.com/viethuynh243/ZeroMem` (or `pip install -e .` in a checkout). Try `python -m zeromem status` first — it works without the console script. |
| `no index found` | Give the user the `zeromem build --scope <SLUG> --with-graph` command. **Never** run a full build yourself — on a dense tier it is a ~45-minute encode. |
| `no entity-context graph found` | `zeromem graph --all` |
| stderr hint about no daemon | Nothing is wrong; it was just slow. Mention `zeromem serve` if you will recall repeatedly. |
| stale daemon warning | `zeromem serve --stop`, then start a fresh one. |
| recall returns nothing | Say so plainly. Check `status` for whether that project is indexed at all before concluding the memory is empty. |
| `WEAK EVIDENCE` notice | Not a failure. Report that the memory does not appear to hold this, name the missing terms, and check `status` in case the relevant project is simply unindexed. |

## More detail

- `references/usage.md` — full CLI reference, troubleshooting, scheduling
- `references/architecture.md` — the pipeline stage by stage, mapped to the paper
- Measured evidence, not claims: `references/tiers.md` (encoder throughput),
  `references/corpus.md` (what the corpus contains), `references/entities.md`
  (extractor precision), `references/routing.md` (router accuracy),
  `references/recall-quality.md` (recall@k and ablations),
  `references/abstention.md` (does it know when it does *not* know),
  `references/latency.md` (cold start, daemon, memory)
- `references/method-notes.md` — retrieval-methodology ideas measured against
  this system, including two that were rejected on the numbers
Pliki w paczce (107)
  • .gitignore 1 KB
  • LICENSE 1 KB
  • README.md 8 KB
  • SKILL.md 10 KB
  • install.ps1 1 KB
  • install.py 8 KB
  • pyproject.toml 2 KB
  • requirements.txt 1 KB
  • bin/zeromem.py 1 KB
  • plans/001-skeleton-config-hardware-tier.md 22 KB
  • plans/002-substrate-ingest-hierarchy.md 29 KB
  • plans/003-indexes-bm25-dense-store.md 26 KB
  • plans/004-entity-context-graph.md 22 KB
  • plans/005-query-profile-routing-dual-retrieval.md 28 KB
  • plans/006-fusion-closure-calibration-recall.md 23 KB
  • plans/007-skill-packaging-install-integration.md 25 KB
  • plans/008-tool-use-rendering-and-stale-vector-fix.md 22 KB
  • plans/009-recall-daemon.md 21 KB
  • plans/010-coordination-ledger.md 48 KB
  • plans/011-tool-effect-policy.md 25 KB
  • plans/README.md 16 KB
  • references/abstention.md 13 KB
  • references/architecture.md 10 KB
  • references/corpus.md 7 KB
  • references/entities.md 15 KB
  • references/latency.md 8 KB
  • references/ledger.md 16 KB
  • references/method-notes.md 10 KB
  • references/recall-quality.md 8 KB
  • references/routing.md 17 KB
  • references/tiers.md 7 KB
  • references/usage.md 8 KB
  • tests/__init__.py 1 KB
  • tests/test_bm25.py 5 KB
  • tests/test_calibrate.py 8 KB
  • tests/test_cli.py 5 KB
  • tests/test_closure.py 12 KB
  • tests/test_config.py 1 KB
  • tests/test_daemon.py 22 KB
  • tests/test_dense.py 9 KB
  • tests/test_dependencies.py 7 KB
  • tests/test_entities.py 5 KB
  • tests/test_escalate.py 6 KB
  • tests/test_fusion.py 2 KB
  • tests/test_graph_build.py 11 KB
  • tests/test_graph_view.py 11 KB
  • tests/test_hardware.py 2 KB
  • tests/test_hier_view.py 8 KB
  • tests/test_hierarchy.py 6 KB
  • tests/test_ingest_files.py 3 KB
  • tests/test_ingest_transcripts.py 12 KB
  • tests/test_ledger.py 21 KB
  • tests/test_no_llm_calls.py 3 KB
  • tests/test_packaging.py 5 KB
  • tests/test_pipeline.py 7 KB
  • tests/test_profile.py 5 KB
  • tests/test_redact.py 2 KB
  • tests/test_render.py 17 KB
  • tests/test_route.py 10 KB
  • tests/test_skill_md.py 8 KB
  • tests/test_store.py 32 KB
  • tests/test_support.py 10 KB
  • tests/test_tokenize.py 2 KB
  • tests/test_units.py 3 KB
  • tests/fixtures/ledger_session.jsonl 2 KB
  • tests/fixtures/mini_session.jsonl 6 KB
  • tests/fixtures/negative_eval_set.jsonl 3 KB
  • tests/fixtures/router_eval.jsonl 4 KB
  • tests/fixtures/docs/a.md 1 KB
  • tests/fixtures/docs/b.txt 1 KB
  • tests/fixtures/nested_corpus/D--Fake-Project/a1111111-1111-1111-1111-111111111111.jsonl 1 KB
  • tests/fixtures/nested_corpus/D--Fake-Project/a1111111-1111-1111-1111-111111111111/subagents/agent-fake001.jsonl 1 KB
  • tests/fixtures/nested_corpus/D--Fake-Project/a1111111-1111-1111-1111-111111111111/subagents/workflows/wf_fakeworkflow123/agent-fake002.jsonl 1 KB
  • zeromem/__init__.py 1 KB
  • zeromem/__main__.py 1 KB
  • zeromem/cli.py 66 KB
  • zeromem/config.py 10 KB
  • zeromem/daemon.py 23 KB
  • zeromem/hardware.py 5 KB
  • zeromem/ledger.py 29 KB
  • zeromem/progress.py 3 KB
  • zeromem/render.py 9 KB
  • zeromem/graph/__init__.py 1 KB
  • zeromem/graph/build.py 13 KB
  • zeromem/graph/entities.py 10 KB
  • zeromem/index/__init__.py 1 KB
  • zeromem/index/dense.py 8 KB
  • zeromem/index/lexical.py 7 KB
  • zeromem/index/store.py 38 KB
  • zeromem/index/tokenize.py 4 KB
  • zeromem/retrieve/__init__.py 1 KB
  • zeromem/retrieve/calibrate.py 9 KB
  • zeromem/retrieve/closure.py 10 KB
  • zeromem/retrieve/escalate.py 6 KB
  • zeromem/retrieve/fusion.py 3 KB
  • zeromem/retrieve/graph_view.py 12 KB
  • zeromem/retrieve/hier_view.py 9 KB
  • zeromem/retrieve/pipeline.py 12 KB
  • zeromem/retrieve/profile.py 13 KB
  • zeromem/retrieve/route.py 5 KB
  • zeromem/retrieve/support.py 8 KB
  • zeromem/substrate/__init__.py 1 KB
  • zeromem/substrate/hierarchy.py 6 KB
  • zeromem/substrate/ingest_files.py 3 KB
  • zeromem/substrate/ingest_transcripts.py 13 KB
  • zeromem/substrate/redact.py 2 KB
  • zeromem/substrate/units.py 3 KB

Wersje

W bazie nie ma innych skilli o nazwie zeromem.

Migawka bazy z 13.11.2026 · wersja paczki daa64004b7b3 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100search
    Przeszukuje historię rozmów z Claude Code, żeby znaleźć, gdzie wcześniej omawiano dany temat lub pracowano nad nim.
  • 100mem-search
    Przeszukuje trwałą bazę pamięci claude-mem z różnych sesji w trzech krokach (wyszukiwanie, oś czasu, wybrane obserwacje), by sprawdzić, czy problem już rozwiązano.
  • 100brainstorm-coach
    Prowadzi sesje burzy mózgów na dowolny temat: najpierw rozbieżne pomysły, potem wybór priorytetów i kolejnych kroków w dokumencie sesji.
  • 100token-audit
    Audytuje lokalne zużycie tokenów i koszty Claude Code według modelu, projektu i sesji oraz buduje panel HTML.
  • 95search-sessions
    Przeszukuje historię sesji Claude Code i OpenClaw oraz notatki w vaultach Obsidian, także po UUID sesji.
  • 100clog
    Przeszukuje historię czatów Claude Code przez CLI clog: znajduje dawne sesje, przypomina rozmowy, pokazuje gałąź lub repozytorium sesji, liczy sesje według tematu i wyciąga tekst wiadomości.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.