Sift turns a project directory into a single, LLM-friendly
context document. It walks the tree, honors .gitignore, and renders the
selected files in plain, Markdown, JSON, or XML — with token budgeting,
secret redaction, signature-only compression, and Git-relevance ranking so the
most important context fits in a model's window.
- Installation — install on macOS, Linux, Windows, or FreeBSD, or build from source
- Usage — commands, output destinations, filtering, and examples
- Interactive picker — the dual-pane TUI: navigation, per-file modes, smart selection, themes, and task prompts
- Configuration and profiles —
.sift.tomlkey reference, profiles, targets, precedence, and relevance tuning - Output formats and prompts — the four styles, signature mode, task directives, and clipboard output
- Incremental deltas — feed an LLM only what changed since the last dump
- Dependency expansion — auto-include imports of the selected files as signature-compressed context
- Following imports —
sift follow: render a file plus its import-graph neighbors, transitively - MCP server — expose sift to coding agents over stdio
- Browser picker —
sift serve: the embedded web UI and its protocol and threat model
| Command | What it does |
|---|---|
sift |
Open the interactive picker (bare invocation) |
sift dump [path] |
Render the whole eligible tree to codebase.md |
sift pick [path] |
Select files interactively, then render |
sift select [path] |
Auto-select useful files and render them |
sift diff [ref] |
Render only files changed relative to a Git ref |
sift history |
Show, locate or clear recorded dump history |
sift stats [path] |
Show token distribution by directory, language, role, and file |
sift init [path] |
Generate a validated starting .sift.toml |
sift delta [path] |
Render only changes since the last recorded dump |
sift follow <file> |
Render a file plus its import-graph neighbors |
sift watch [path] |
Re-render the document whenever files change |
sift serve |
Serve the browser picker on 127.0.0.1:7777 |
sift mcp [path] |
Start an MCP server over stdio for coding agents |
sift check [path] |
Validate .sift.toml (and sift config to inspect it) |
sift skill <status|install|show|uninstall> |
Manage bundled agent skills |
sift desktop |
Launch the desktop app wrapper |
Every command accepts --help; sift --help lists the shared flags.
New to Sift? Start with Usage and run
sift dump . --output -to see a context document for the current directory.