Commit Graph

3 Commits

Author SHA1 Message Date
Luong NGUYEN
513171332e fix: correct token calculation in context-usage hook example
The hook was converting total_chars to string before calculating tokens,
resulting in ~0 tokens reported. Fixed to calculate directly from char count.

- Remove unused estimate_tokens() function
- Calculate tokens as total_chars // 4 directly
- Archive fix-context-usage-hook change
2025-12-24 23:54:35 +01:00
Luong NGUYEN
d291519452 chore: Archive add-context-usage-hook-example change 2025-12-24 23:22:58 +01:00
Luong NGUYEN
e144e42b20 chore: Archive update-hooks-lesson change
Move completed change to archive and create hooks-documentation spec.
2025-12-24 15:48:15 +01:00