From f03b0d11604d2dd517128b8a8024a31085ba38d4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 1 Oct 2026 13:43:18 +0200 Subject: [PATCH] Tool-calling map: TTL probe confirmed; autocompact backstop not set Co-Authored-By: Claude Opus 5.5 --- references/tool-calling-cut.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/references/tool-calling-cut.md b/references/tool-calling-cut.md index 19b2dcb..c4a8e52 100644 --- a/references/tool-calling-cut.md +++ b/references/tool-calling-cut.md @@ -431,3 +431,10 @@ Verbatim: "Q1 A, Q2 yes, Q3 agreed, Q4 B, Q5 yes, but see Epiphany's approach wh - Q3 = C: rotate at about 300k or at a phase boundary, with a handoff and the operator's `/clear`. A lower `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` is the backstop. - Q4 = B: the shared scripts stay in the skill repo on GitHub (`tools/`, `tools/INDEX.md`), contributed by branch and pull request. - Q5 = yes: slim the global CLAUDE.md along Epiphany's per-role philosophy. A separate Imagination pass maps it. + +## 9. Probe results (2026-10-01, Haiku 4.5, `claude -p`, a 7-minute idle gap) +- **`CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL=1h`: CONFIRMED, though undocumented.** + - With it, the post-gap call read 112,158 cached tokens and created 401, all `ephemeral_1h`. + - Without it, the call read 29,331 and created 83,366, all `ephemeral_5m`; the context had expired and was rewritten. + - The official docs list only `CLAUDE_CODE_PROMPT_CACHE_TTL`, for the main conversation. +- **`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`** is documented as a percentage of the auto-compact window. It can only lower the threshold and it applies to subagents too. A value sized for the root would compact subagents early, so the Q3 backstop is not set; rotation carries Q3.