From 759de74882d47df57b28f6e86e85a6bf014e5df5 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Sun, 3 Aug 2025 21:26:31 +0900 Subject: [PATCH 1/5] feat(config): add default tokenCountTree threshold to repomix.config.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added tokenCountTree setting with 50000 token threshold to the default configuration. This enables users to see the token count tree structure for files with significant token counts by default. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- repomix.config.json | 1 + 1 file changed, 1 insertion(+) diff --git a/repomix.config.json b/repomix.config.json index b3fefb466..1b3cd499e 100644 --- a/repomix.config.json +++ b/repomix.config.json @@ -19,6 +19,7 @@ "showLineNumbers": false, "includeEmptyDirectories": true, "truncateBase64": true, + "tokenCountTree": 50000, "git": { "sortByChanges": true, "sortByChangesMaxCommits": 100, From c1e9939dba3407c4516d567eeece6990b07fe16f Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Sun, 3 Aug 2025 22:01:16 +0900 Subject: [PATCH 2/5] docs(website): add token count optimization documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added comprehensive token count optimization section to English website documentation: - Added Token Count Optimization section to usage guide explaining --token-count-tree option - Updated command-line-options page to match README.md structure with proper groupings - Reorganized CLI options into CLI Input/Output Options and Repomix Output Options - Enhanced token count encoding documentation with tiktoken references This brings the website documentation in sync with the token count features added in commit c30b05a. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../src/en/guide/command-line-options.md | 55 +++++++++++-------- website/client/src/en/guide/usage.md | 34 ++++++++++++ 2 files changed, 67 insertions(+), 22 deletions(-) diff --git a/website/client/src/en/guide/command-line-options.md b/website/client/src/en/guide/command-line-options.md index 91c60b553..576d1fde8 100644 --- a/website/client/src/en/guide/command-line-options.md +++ b/website/client/src/en/guide/command-line-options.md @@ -3,30 +3,36 @@ ## Basic Options - `-v, --version`: Show tool version -## Output Options -- `-o, --output `: Output file name (default: `repomix-output.txt`) +## CLI Input/Output Options +- `--verbose`: Enable verbose logging +- `--quiet`: Disable all output to stdout - `--stdout`: Output to stdout instead of writing to a file (cannot be used with `--output` option) -- `--style `: Output style (`plain`, `xml`, `markdown`) (default: `xml`) -- `--parsable-style`: Enable parsable output based on the chosen style schema (default: `false`) -- `--compress`: Perform intelligent code extraction, focusing on essential function and class signatures while removing implementation details. For more details and examples, see [Code Compression Guide](code-compress). -- `--output-show-line-numbers`: Add line numbers (default: `false`) -- `--copy`: Copy to clipboard (default: `false`) -- `--no-file-summary`: Disable file summary (default: `true`) -- `--no-directory-structure`: Disable directory structure (default: `true`) -- `--no-files`: Disable files content output (metadata-only mode) (default: `true`) -- `--remove-comments`: Remove comments (default: `false`) -- `--remove-empty-lines`: Remove empty lines (default: `false`) -- `--truncate-base64`: Truncate base64 encoded data strings (default: `false`) +- `--stdin`: Read file paths from stdin instead of discovering files automatically +- `--copy`: Additionally copy generated output to system clipboard +- `--token-count-tree [threshold]`: Display file tree with token count summaries (optional: minimum token count threshold). Useful for identifying large files and optimizing token usage for AI context limits +- `--top-files-len `: Number of top files to display in the summary + +## Repomix Output Options +- `-o, --output `: Specify the output file name +- `--style