the-custodian/state-hub/scripts
tegwick f794d8c47f feat(token-events): auto-capture real token counts via PostToolUse hook
- Add PATCH /token-events/{id} endpoint to correct heuristic events
- Add `note` filter to GET /token-events/ list
- Add TokenEventPatch schema
- Add task_token_hook.py: PostToolUse hook that reads the Claude Code
  session transcript, computes per-task token delta, and replaces the
  heuristic token event with real measured counts (note="measured")
- Register hook in ~/.claude/settings.json on mcp__state-hub__update_task_status
  Covers both interactive sessions and ralph-workplan loops

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 22:38:45 +02:00
..
project_rules
capture_sbom_tools.py
check_doi.py
cleanup_stale_tasks.py
consistency_check.py
gitea_inventory.py
ingest_capabilities.py
ingest_sbom.py
ingest_tpsc.py
install_hooks.sh
patch_mcp_cwd.py
project_claude_md.template
pull_image.py
register_project.sh
seed.py
task_token_hook.py feat(token-events): auto-capture real token counts via PostToolUse hook 2026-04-01 22:38:45 +02:00
validate_repo_adr.py