v1.3.0.md•1.93 kB
This release introduces token count analysis tools and MCP server enhancements, making it easier to analyze and optimize your codebase processing.
## What's New 🚀
### Token Count Summarization (#747)
Added the powerful `--token-count-tree` option that displays token usage in a hierarchical tree view! This feature helps identify which files and directories consume the most tokens, making it easier to optimize your Repomix output.
```bash
repomix --token-count-tree
```
Displays a tree structure showing token usage:
```
🔢 Token Count Tree:
────────────────────
├── tsconfig.json (177 tokens)
├── typos.toml (80 tokens)
├── vitest.config.ts (89 tokens)
├── .agents/ (2874 tokens)
│ └── rules/ (2874 tokens)
│ ├── base.md (1988 tokens)
│ ├── browser-extension.md (453 tokens)
│ └── website.md (433 tokens)
```
You can also set a minimum threshold to only show files above a certain token count:
```bash
repomix --token-count-tree 1000
```
Special thanks to @gudber for this incredibly useful feature!
### MCP Server: Attach Packed Output Tool (#756)
Added the `attach_packed_output` tool to the MCP server, enabling AI assistants to import and analyze previously generated Repomix XML files.
This tool accepts either a directory containing `repomix-output.xml` or a direct path to an XML file, providing the same structured analysis capabilities as freshly packed repositories without the need to reprocess the codebase.
For detailed MCP documentation, see:
https://github.com/yamadashy/repomix?tab=readme-ov-file#available-mcp-tools
Special thanks to @petrarca for this valuable MCP enhancement!
## How to Update
```bash
npm update -g repomix
```
---
As always, if you have any issues or suggestions, please let us know on GitHub issues or our [Discord community](https://discord.gg/wNYzTwZFku).