Skip to content

Getting Started

This guide targets the v0.5.x release line.

  • Rust toolchain
  • Node.js for docs tooling and Pyright
  • Python if you want to run the benchmark harness

Install the published CLI:

Terminal window
cargo install sephera

If you do not want to install Rust locally, download a prebuilt archive from GitHub Releases.

Binary releases are a good fit when you want a fast local install on a supported desktop target and do not need Cargo on the machine itself. cargo install sephera remains the default path when you already use the Rust toolchain.

The user-facing examples in this documentation assume sephera is installed and available on your PATH.

Run a quick LOC scan:

Terminal window
sephera loc --path .

Run the same scan against a remote repository:

Terminal window
sephera loc --url https://github.com/Reim-developer/Sephera

Build a context pack:

Terminal window
sephera context --path . --focus crates/sephera_core --budget 32k

Analyze the codebase dependency graph:

Terminal window
sephera graph --path . --format markdown
sephera graph --path . --focus crates/sephera_core --output deps.md

Build a review-oriented context pack from Git changes:

Terminal window
sephera context --path . --diff HEAD~1 --budget 32k

--diff is a Git-only feature. Built-in modes are working-tree, staged, and unstaged. Any other value is treated as a base ref compared against HEAD through merge-base semantics.

In URL mode, context --diff keeps the base-ref behavior but intentionally rejects working-tree, staged, and unstaged because the remote checkout is a clean temp clone.

List configured profiles when the repository has a .sephera.toml file:

Terminal window
sephera context --path . --list-profiles

Analyze a GitHub tree URL directly:

Terminal window
sephera graph --url https://github.com/Reim-developer/Sephera/tree/master/crates/sephera_core --format markdown

If you are working directly from the repository, you can run the CLI with Cargo:

Terminal window
cargo run -p sephera -- context --path . --focus crates/sephera_core --budget 32k
Terminal window
cargo fmt --all --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace
npm run pyright

Install docs dependencies:

Terminal window
npm --prefix docs install

Run the docs site locally:

Terminal window
npm run docs:dev

Build the static docs site:

Terminal window
npm run docs:build

Run the default benchmark suite:

Terminal window
python benchmarks/run.py

For methodology, dataset policy, and caveats, see Benchmarks.