From b744a0de2ca093e06c700baaeeae3d04b24f8571 Mon Sep 17 00:00:00 2001 From: tegwick Date: Thu, 5 Mar 2026 09:09:01 +0100 Subject: [PATCH] fix(template): replace get_state_summary with get_domain_summary in domain CLAUDE.md template Avoids ~12.9k token response in domain repo sessions; get_domain_summary returns the same actionable data scoped to the domain at ~10% of the cost. Co-Authored-By: Claude Sonnet 4.6 --- state-hub/scripts/project_claude_md.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/state-hub/scripts/project_claude_md.template b/state-hub/scripts/project_claude_md.template index d91a120..54fe58a 100644 --- a/state-hub/scripts/project_claude_md.template +++ b/state-hub/scripts/project_claude_md.template @@ -76,7 +76,7 @@ Terminology and workflows: `http://localhost:3000/docs/inter-repo-communication` ### First Session Protocol -Triggered when `get_state_summary()` shows **no workstreams** for the `{DOMAIN}` +Triggered when `get_domain_summary("{DOMAIN}")` shows **no workstreams** for the `{DOMAIN}` topic. The project is registered but work has not yet been structured. **Step 1 — Understand the project (read, don't write)** @@ -125,7 +125,7 @@ Work items MUST originate as files in this repo before being registered in the h When another domain's agent identifies work for this repo, it creates a state hub task with `[repo:{REPO_SLUG}]` in the title (an **ecosystem todo**). You will -see it at session start via `get_state_summary()`. When you pick it up, create +see it at session start via `get_domain_summary("{DOMAIN}")`. When you pick it up, create the corresponding workplan file in `workplans/` (ADR-001) and begin work. ---