From 97b77109971496c4439c57daf09bd1e9d46823d8 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Thu, 19 Feb 2026 14:53:09 -0600 Subject: [PATCH] store: Hourly embedding refresh timer with --if-changed flag --- ...ding-refresh-timer-with-if-changed-flag-7a3913.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 graph/configurations/hourly-embedding-refresh-timer-with-if-changed-flag-7a3913.md diff --git a/graph/configurations/hourly-embedding-refresh-timer-with-if-changed-flag-7a3913.md b/graph/configurations/hourly-embedding-refresh-timer-with-if-changed-flag-7a3913.md new file mode 100644 index 00000000000..cf55f13a2c5 --- /dev/null +++ b/graph/configurations/hourly-embedding-refresh-timer-with-if-changed-flag-7a3913.md @@ -0,0 +1,12 @@ +--- +id: 7a391397-2276-42bf-bca6-e1bb468029cd +type: configuration +title: "Hourly embedding refresh timer with --if-changed flag" +tags: [cognitive-memory, systemd, automation, embedding, configuration] +importance: 0.7 +confidence: 0.8 +created: "2026-02-19T20:53:09.280113+00:00" +updated: "2026-02-19T20:53:09.280113+00:00" +--- + +Created systemd user timer `cognitive-memory-embed.timer` that runs hourly. Uses `claude-memory embed --if-changed` which compares memory IDs in _index.json vs _embeddings.json — skips in ~0.1s when nothing changed, full re-embed (~27s) only when memories were added or deleted. Removed embed from daily timer (cognitive-memory-daily.service) since hourly covers it. Daily timer now only runs decay, core, and symlinks. Both services need `export PATH="/home/cal/.local/bin:$PATH"` because systemd doesn't load user shell profile and `uv` lives in ~/.local/bin. Files: ~/.config/systemd/user/cognitive-memory-embed.{service,timer}.