Files
claude-howto/openspec/changes/archive/2025-12-24-add-context-usage-hook-example/tasks.md
2025-12-24 23:22:58 +01:00

498 B

Tasks: Add Context Usage Reporting Hook Example

1. Documentation Update

  • 1.1 Add new example section "Context Usage Reporter" to 06-hooks/README.md
  • 1.2 Write Python hook script that reads transcript and estimates tokens
  • 1.3 Add configuration example for UserPromptSubmit hook
  • 1.4 Document how transcript_path provides access to conversation history
  • 1.5 Explain token estimation approach and limitations
  • 1.6 Show sample output format for the one-line report