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.

install · branchcutready
irm https://raw.githubusercontent.com/codex-mohan/branchcut/master/scripts/install.ps1 | iex

Runs the repository PowerShell installer, then verifies the installed executable. Review script

Rust 2024Windows · Linux · macOSZero core crates

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.

Broad files1.82× faster than zlob
68.02 ms
Branchcut68.02
zlob123.94

100,002 matches · automatic workers

Fixed-prefix Rust1.06× · close to zlob
33.39 ms
Branchcut33.39
zlob35.46

1,250 matches · four workers

Rust + exclusions1.35× faster than ripgrep
58.88 ms
Branchcut58.88
ripgrep79.27

37,501 matches · automatic workers

First 10 Rust2.78× faster than zlob
35.41 ms
Branchcut35.41
zlob98.46

10 matches · four workers

Broad files

All 100,002 non-hidden files under the generated tree.

1.82×vs zlob
↓ Lower is better100,002 matches
Open bench · Windows 11 / NTFS · 9 samples
Commandbranchcut --cwd $FIXTURE --glob '**/*' --threads 0
Correctness

100,002 unique paths matched the generator manifest before and after timing.

Method

Three warmups and nine measured fresh processes per configuration.

Raw record

Fixed-prefix Rust

Only packages/p00/src/**/*.rs can contribute.

1.06×vs zlob · close result
↓ Lower is better1,250 matches
Open bench · Windows 11 / NTFS · 9 samples
Commandbranchcut --cwd $FIXTURE --glob 'packages/p00/src/**/*.rs' --threads 4
Correctness

1,250 unique paths matched the generated result set.

Method

Three warmups and nine measured fresh processes per configuration.

Raw record

Rust + exclusions

Rust and TOML selection with generated trees excluded.

1.35×vs ripgrep
↓ Lower is better37,501 matches
Open bench · Windows 11 / NTFS · 9 samples
Commandbranchcut --glob '**/*.{rs,toml}' --exclude '**/target/**' --exclude '**/node_modules/**' --threads 0
Correctness

37,501 unique paths matched. Unmeasured combinations were omitted; this is a file-selection benchmark.

Method

Three warmups and nine measured fresh processes per configuration.

Raw record

First 10 Rust files

Early termination becomes part of traversal.

2.78×vs zlob
↓ Lower is better10 matches
Open bench · Windows 11 / NTFS · 9 samples
Commandbranchcut --glob '**/*.rs' --limit 10 --threads 4
Correctness

Exactly ten unique paths from the complete valid set.

Method

Three warmups and nine measured fresh processes per configuration.

Raw record

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.

6.38 MiB17.5× smaller working set than fast-glob
Branchcut 0.1.06.38 MiB
zlob 1.7.020.17 MiB
ripgrep 15.1.014.29 MiB
fd 10.4.218.25 MiB
fast-glob 3.3.3111.43 MiB
tinyglobby 0.2.1484.71 MiB

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.

Method: fresh-process wall-clock time · 3 warmups · 9 measured samples · exact path sets verified18 Nov 2026 · Windows / NTFS · fastest tested workers · raw data retained

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.

Literal filename searchASCII smart caseHidden paths excluded by defaultDepth bounds
branchcut · powershell
mohanbranchcut~/workspace/branchcutgit:main ✓
branchcut --cwd . config --exclude '**/target/**' --exclude '**/node_modules/**'
6 matches12.569 ms
MATCHwebsite/eslint.config.mjs✓
MATCHsrc/cli/config.rs✓
MATCHwebsite/next.config.mjs✓
MATCHwebsite/postcss.config.mjs✓
MATCHwebsite/tsconfig.json✓
MATCHwebsite/tsconfig.tsbuildinfo✓
directories opened 239metadata calls 1errors 0
SelectionGlobs, literals, types, extensions

Positive patterns form a union; filters compose with AND.

TraversalPrefixes, pruning, depth, early stop

The query changes what the walker opens and when it stops.

PolicyHidden paths and nested ignores

Explicit exclusions and opt-in Git-compatible ignore rules.

EvidenceExplain, why, and real work counters

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.

Complete feature status
Built forBranchcutUse another tool when
Filename selectionGlobs, literals, type, extension, depth, size, timeYou already have a mature ecosystem-specific glob API
Ignored treesNested, repository and global ignores; explicit override filesYou need every Git config condition or environment override
AutomationNative paths, JSON Lines, NUL output, shell-free commandsYou need a shell interpreter rather than explicit argv
Content or structureFilesystem metadata and path semanticsYou need text search, parsing, indexing, or a service protocol

Point Branchcut at the tree.

Start with one filename or compile the whole query.