This release adds Watch Mode for continuous re-packing, GitHub shorthand auto-detection so you can run repomix owner/repo without --remote, and a --token-budget guard for CI and agent workflows, along with several ignore-handling fixes.
What's New 🚀
Watch Mode (-w, --watch) (#1643, #1647, #1429)
Repomix can now watch your codebase and automatically re-pack on every change. New, changed, and deleted files are detected, rapid bursts are debounced (300 ms), and a timestamp is printed after each rebuild. Press Ctrl+C to stop. Watch mode honors your usual ignore rules (.gitignore, .repomixignore, default patterns, --ignore) and skips ignored directories to stay efficient on large projects. It is local-only, so it cannot be combined with --remote, --stdout, --stdin, --split-output, --skill-generate, or --copy. See the new Watch Mode guide.
Special thanks to @PAMulligan for designing and implementing the entire watch mode feature! 🎉
GitHub Shorthand Auto-Detection (#1628, #1120)
You can now run repomix owner/repo directly, without the --remote flag. When the argument matches the owner/repo shorthand and no local path of that name exists, Repomix probes GitHub (a lightweight HEAD-only check) and packs the remote repository if it is reachable. A matching local path always wins; prefix with ./ to force local handling.
Special thanks to @serhiizghama for this contribution! 🎉
--token-budget <number> Guard (#1621, #1616)
A new --token-budget option exits with a non-zero code when the packed output exceeds N tokens. The output is still generated; only the exit code signals the overflow, making it a useful guard in CI pipelines and agent workflows to keep output within a target model's context window.
Improvements ⚡
- Fixed
.gitignorehandling edge cases: ignored.gitignorerules stay active, trailing-slash ignore-control patterns no longer leak the file, and descendants of a directory literally named.gitignoreare excluded (#1622, #624). - Fixed duplicate relative paths when packing multiple roots (#1618).
- Updated root dependencies, including major bumps to v15 (#1641).
Special thanks to @Samsen879 for the ignore-handling and multi-root fixes! 🎉
How to Update
npm update -g repomixAs always, if you have any issues or suggestions, please let us know on GitHub issues or our Discord community.