v1.3.0

yamadashy/repomixv1.3.0Aug 11, 2025by yamadashy

AI Summary

This release introduces token count analysis tools and MCP server enhancements to help analyze and optimize codebase processing.

Key Highlights

  • Token count tree view (`--token-count-tree`) for hierarchical file analysis
  • MCP server `attach_packed_output` tool for analyzing previously generated files
  • Token count threshold filtering capabilities

New Features

  • Token count summarization and tree view
  • MCP server packed output attachment tool

Full Release Notes

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).