state-hub/scripts
tegwick 70c8e3cd51 feat(mcp): add get_domain_summary() for low-token domain session orientation
get_state_summary() returns ~10k tokens — too expensive for routine domain
repo sessions that only need their own workstreams and decisions.

New get_domain_summary(domain_slug):
- 5 targeted API calls: topics (filter), workstreams (topic+status), decisions
  (topic+pending), progress (topic, limit 5), repos (domain, slug+SBOM only)
- Returns: topic, active workstreams, blocking decisions, 5 recent events,
  repo SBOM status — all scoped to one domain
- Estimated ~80-90% token reduction vs get_state_summary()

get_state_summary() preserved unchanged for cross-domain / custodian sessions.
Updated its docstring to note the large response and point to get_domain_summary.

Template updated: Step 1 now calls get_domain_summary("{DOMAIN}") instead of
get_state_summary() + get_next_steps(). TOOLS.md updated with usage guidance.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 22:05:31 +01:00
..
ingest_sbom.py feat(sbom): add Terraform .terraform.lock.hcl parser; ingest railiance repos 2026-03-01 18:07:56 +01:00
patch_mcp_cwd.py Implement registration UX wishlist W1–W6 (260224) 2026-02-24 22:22:53 +01:00
project_claude_md.template feat(mcp): add get_domain_summary() for low-token domain session orientation 2026-03-01 22:05:31 +01:00
pull_image.py Add state-hub v0.1 — local-first state service for the Custodian 2026-02-24 17:47:49 +01:00
register_project.sh feat(state-hub): v0.3 registration workflow + ingest-sbom + CLAUDE.md template update 2026-02-28 17:28:49 +01:00
seed.py feat(state-hub): implement v0.5 — dynamic domains & multi-repo 2026-02-28 15:20:15 +01:00
validate_repo_adr.py feat(custodian): add ADR-001 compliance validator 2026-02-28 12:00:09 +01:00