Add claude-opus-4-7; multi-model token counter#269
Conversation
- Add claude-opus-4-7 to model lists in llm-lib.html and omit-needless-words.html - Rewrite claude-token-counter.html to compare token counts across multiple models via checkboxes (opus-4-7, opus-4-6, opus-4-5, sonnet-4-6, haiku-4-5). Defaults to opus-4-7 checked. Results shown as a table with an Nx multiplier indicator relative to the lowest token count. https://claude.ai/code/session_01XKgSSPmvN3d5wDwFvgKgsn
|
Claude finished @simonw's task —— View job Code Review Complete ✅Todo List:
Review SummaryThis PR successfully adds Claude Opus 4.7 model support and implements a well-designed multi-model token counter comparison feature. The code quality is excellent overall with only minor suggestions for improvement. ✅ StrengthsExcellent Multi-Model Implementation
Code Quality
Security Best Practices
🔍 Minor Issues & SuggestionsPerformance Considerations
Code Quality Improvements
Minor Bug Prevention
User Experience Enhancements
🔒 Security Assessment
📋 Model Addition VerificationAll model additions are correctly implemented:
🎯 Test Coverage ConsiderationsWhile no automated tests are present (typical for HTML tools), consider testing:
📝 Recommendations
⚡ Performance & Scalability
🎉 Overall AssessmentThis is a high-quality PR that successfully implements the requested features with excellent code practices. The multi-model token counter is well-designed, user-friendly, and maintainable. The code follows established patterns and includes appropriate error handling and security measures. Recommendation: ✅ Approve |
|
Wrote about this here: https://simonwillison.net/2026/Apr/20/claude-token-counts/ |

models via checkboxes (opus-4-7, opus-4-6, opus-4-5, sonnet-4-6, haiku-4-5).
Defaults to opus-4-7 checked. Results shown as a table with an Nx multiplier
indicator relative to the lowest token count.
https://claude.ai/code/session_01XKgSSPmvN3d5wDwFvgKgsn