Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

docs: note that the measured prompt cache lives an hour on a Claude subscription

leepokaie883d21f8312
diff --git a/docs/design/bot-memory.md b/docs/design/bot-memory.md
index 87d57143..be0cfcca 100644
--- a/docs/design/bot-memory.md
+++ b/docs/design/bot-memory.md
@@ -786,6 +786,9 @@ for the owner's decision.
The owner's Cursor, oh-my-pi and custom bots aren't measured: the script reads only those two logs. Once the host
from this branch runs, its `turn usage` lines cover every harness whose adapter reports cached tokens.
+- **The owner's cache lives an hour.** Their Claude bots run on a Claude subscription, so every cache write was
+ a 1-hour entry (100% of `usage.cache_creation`). On extra-usage credits or an API key it is five minutes, and
+ the cold calls would start five minutes after the last one. Codex keeps OpenAI's own cache life, not measured.
- **In a conversation** is the share of input read from cache, leaving out each conversation's first call and
calls more than an hour after the previous one. Per call it is 97.2%, and the median conversation 99.2%.
- **Every call** adds those back. Many conversations are only 1–3 calls, so per conversation it averages 61.4%.
diff --git a/tools/memory-eval/cache.py b/tools/memory-eval/cache.py
index 0527b2d6..18268586 100755
--- a/tools/memory-eval/cache.py
+++ b/tools/memory-eval/cache.py
@@ -17,7 +17,9 @@ from collections import Counter
from datetime import datetime
from statistics import mean, median
-LIFE = 3600 # longest a cache entry lives: Claude Code writes 1-hour entries
+# Claude on a subscription writes 1-hour entries; extra usage or an API key gets 5 minutes. The "1-hour writes"
+# line shows which one an account got.
+LIFE = 3600
PARTS = sys.argv[1:] or ['-codync-bots-', '-codync-dev-bots-']