498 B
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