Documentation map
Installation, tutorials, command reference, and contributor guides.
Start with installation or use the table to find a guide.
Choose by what you have
| You have | Start with | You will learn |
|---|---|---|
| Branchcut installed and want a first result | Your first query | Literal search, globs, exclusions, plans, and statistics |
| A monorepo and repeated file-selection work | Plan a monorepo search | Prefix narrowing, pruning, limits, and saved profiles |
| Shell scripts, tools, or a coding agent | Automate a workflow | JSON Lines, NUL output, native paths, commands, and exit behavior |
| A Rust application that needs file selection | Use Branchcut from Rust | Query compilation, streaming visitors, cancellation, and parallelism |
| A command in mind and need the exact flag | CLI reference | Complete option meanings and interactions |
| A source tree that is behaving unexpectedly | Query planning | --explain, --why, and real work counters |
Learn the model
query input
|
v
compile patterns + exclusions + policy + filters + termination
|
v
narrow the root and prune impossible subtrees
|
v
stream native paths, diagnostics, and commands- Mental model explains the compiler-as-filesystem-machine idea.
- Query compiler covers parsing and shared pattern state.
- Traversal and pruning explains how plans change filesystem work.
- Library and modules maps the Rust source boundaries.
- Path semantics covers native paths and platform differences.
Use the command
| Job | Guide |
|---|---|
| Find one filename without glob syntax | Simple search |
| Combine size, time, depth, and case filters | Everyday search |
| Compose patterns and exclusions | Globs and exclusions |
Understand hidden paths and .gitignore policy | Ignore and hidden paths |
| Stream, count, sort, serialize, or execute commands | Output and command execution |
| Save a query for repeated project use | Saved project queries |
| Inspect why a path matched or was excluded | Query planning |
Look up a fact
| Need | Reference |
|---|---|
| Every CLI option and allowed combination | CLI reference |
| Copy-ready common commands | Cheat sheet |
| Supported wildcard grammar | Glob syntax |
| Exit codes, strict mode, and broken pipes | Exit behavior |
| Implemented surface, alternatives, and gaps | Feature status |
| Compatibility boundaries | Compatibility |
| Product terminology | Glossary |
Inspect the evidence
- Benchmark guide explains datasets, metrics, and limits.
- Current CLI comparison shows default timings, tuned runs, and working-set memory for all six tools.
- Correctness explains result equivalence and regression strategy.
- Search performance investigation records profiling and losing results.
- Rust-level optimization pass records measured implementation changes.
- Standard-library ledger maps the zero-crate core to normal dependencies.
Work on Branchcut
- Read Verification before changing behavior.
- Read Benchmarking before making a performance claim.
- Read Documentation before adding a page or changing compatibility language.
- Check the Roadmap for features in development.
- Use the FAQ for recurring scope and integration questions.