Skip to content

Conversation

@mouchar
Copy link

@mouchar mouchar commented Nov 18, 2025

Summary

  • replace the deprecated Claude Sonnet 3.7 integration with Sonnet 4.5 and surface tokenizer stats/output tweaks from the retry work
  • add resilient Claude API retry handling, better console output, and README guidance
  • expose the tokenizer as a CLI option (defaulting to p50k_base) and pass it through to repomix so Anthropic-compatible limits are used end‑to‑end
  • tighten CLI parsing by validating numeric chunk sizes, fixing chunk iteration, and removing stale defaults/env vars
  • refresh tooling (anthropic SDK 0.69.0, rimraf 6.1.0, ESLint parser upgrade, audit fix) plus whitespace cleanup

Details

  • feat: use claude sonnet 4.5 model – updates the default Anthropic model, retiring Sonnet 3.7 which is now deprecated.
  • feat: implement retry logic for Claude API calls – introduces a reusable retry helper for rate‑limit errors, prints input token counts in responses, improves console formatting, and syncs the README.
  • feat: expose tokenizer as command line option – adds a --tokenizer flag, switches the default to p50k_base, and ensures the chosen tokenizer flows into repomix.
  • fix: argument parsing and chunk iteration – sets a default provider, validates chunk size inputs, removes the unused CHUNK_SIZE env var and redundant defaults, and corrects chunk iteration logic.
  • chore: update dependencies – bumps @anthropic-ai/sdk to 0.69.0, rimraf to 6.1.0, and freshens other dependencies for compatibility.
  • chore: upgrade eslint parser, run audit fix – keeps linting/tooling current and resolves npm audit issues.
  • style: clean up whitespace – normalizes blank lines/formatting across touched files.

Closes #1

* set provider default option
* validate numeric chunk size option
* drop unsed CHUNK_SIZE env variable
* remove useless default argument values
* fix chunk teration logic
* Removed unnecessary blank lines for improved readability
* Ensured consistent formatting across files
* Upgraded @anthropic-ai/sdk to version 0.69.0
* Updated rimraf to version 6.1.0
* Various other dependency updates and removals for improved compatibility and performance
* Use p50k_base instead of cl100k_base, because 50k is closer to 65k
which is supposedly used by Anthropic.
* pass tokenizer also to repomix
* Added a new function to handle retries on rate limit errors when calling the Claude API.
* Updated the output to display the number of input tokens used in the response.
* Minor adjustments to console log formatting for improved readability.
* Update README
The old model claude sonnet 3.7 is already deprecated by Anthropic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rate Limit

1 participant