100,002 matches · automatic workers
Find the files.Skip the work.
Branchcut compiles globs, exclusions, ignore rules, filters, and limits into one traversal plan. It opens the directories that can contribute, streams native paths, and shows you the work it avoided.
irm https://raw.githubusercontent.com/codex-mohan/branchcut/master/scripts/install.ps1 | iexRuns the repository PowerShell installer, then verifies the installed executable. Review script
Fast where the work is hard.
Branchcut avoids directories that cannot answer. The retained fixture compares 100,000 files through each tool's official CLI or public API, with startup, traversal, filtering, and output included.
1,250 matches · four workers
37,501 matches · automatic workers
10 matches · four workers
Broad files
All 100,002 non-hidden files under the generated tree.
Open bench · Windows 11 / NTFS · 9 samples
branchcut --cwd $FIXTURE --glob '**/*' --threads 0100,002 unique paths matched the generator manifest before and after timing.
Fixed-prefix Rust
Only packages/p00/src/**/*.rs can contribute.
Open bench · Windows 11 / NTFS · 9 samples
branchcut --cwd $FIXTURE --glob 'packages/p00/src/**/*.rs' --threads 41,250 unique paths matched the generated result set.
Rust + exclusions
Rust and TOML selection with generated trees excluded.
Open bench · Windows 11 / NTFS · 9 samples
branchcut --glob '**/*.{rs,toml}' --exclude '**/target/**' --exclude '**/node_modules/**' --threads 037,501 unique paths matched. Unmeasured combinations were omitted; this is a file-selection benchmark.
First 10 Rust files
Early termination becomes part of traversal.
Open bench · Windows 11 / NTFS · 9 samples
branchcut --glob '**/*.rs' --limit 10 --threads 4Exactly ten unique paths from the complete valid set.
Memory across the field.
Separate runs return the same 100,002 matching paths on the 100,000-file fixture as newline-delimited output through every tool, using default invocations.
Median of three observed OS peak working-set samples, polled every 1 ms. Observed process working set; late peaks can be missed. Parent capture memory is excluded. Raw record.
One query. Every workflow.
Start with a filename, compose a precise query, stream paths into another program, or embed the same compiled engine in Rust.
Find a filename without learning glob syntax.
Plain text searches filename containment. Use explicit glob syntax only when structure and wildcards matter.
branchcut --cwd . config --exclude '**/target/**' --exclude '**/node_modules/**'website/eslint.config.mjs✓src/cli/config.rs✓website/next.config.mjs✓website/postcss.config.mjs✓website/tsconfig.json✓website/tsconfig.tsbuildinfo✓Positive patterns form a union; filters compose with AND.
The query changes what the walker opens and when it stops.
Explicit exclusions and opt-in Git-compatible ignore rules.
See the compiled plan and the filesystem work performed.
Useful, with the boundary drawn.
Branchcut is a filesystem query engine. It compiles globs, exclusions, ignores, filters, and limits into one traversal plan. Opt-in content search adds context, encoding detection, and structured results for the files that plan selects. The optionalbranchcut-regex executable adds filename, path, and line-oriented content regex. Supported behavior and remaining limits are documented with the feature inventory.
Point Branchcut at the tree.
Start with one filename or compile the whole query.