Skip to content

overview getting started

bondiano edited this page Nov 12, 2026 · 1 revision

Getting started

Build the workspace with the pinned Rust toolchain, initialize local storage, then run a fake review to check the harness without paying for model calls. The commands below come from README.md, rust-toolchain.toml, justfile and docs/LOCAL_REVIEW.md.

Prerequisites

  • Rust through rustup. rust-toolchain.toml selects Rust 1.94.1 with rustfmt and Clippy; the workspace minimum in Cargo.toml is 1.94.
  • just and cargo-machete 0.9.2 for the full Rust checks.
  • Node compatible with web/package.json, ^22.18.0 || >=24.12.0, and pnpm 12.16.1 for the dashboard checks.
cargo install cargo-machete --version 0.9.2 --locked
cargo build --workspace --locked
cargo run --locked -p sych-app --bin sych -- --help

Release installation alternatives are in docs/INSTALL.md. The installed executable is named sych; the Cargo package is sych-app, as declared in crates/sych-app/Cargo.toml.

First review

Run these from the repository you want to review, with the built sych executable on PATH:

sych db migrate
sych review --repo . --base origin/main --models fake --format markdown

Use the repository's target branch instead of origin/main where needed. If head and target have no changes, use an earlier commit such as --base HEAD~1. Add .sych-data/ to that repository's ignore rules; it is the default local store described in docs/STORAGE.md.

--models fake makes no model calls. It checks the pipeline, not review quality; obligations may remain UNKNOWN/NOT_ASSESSED. Semantic analysis is on by default and can download pinned tools on first use. --semantic off skips that tool collection when testing only the non-semantic path, as defined in crates/sych-app/src/args.rs.

Save the printed run ID to inspect the result later:

sych show --run RUN_ID --format markdown
sych explain --run RUN_ID --obligation RULE_ID --format markdown

For real models, configure a provider profile using Models and Configuration. Do not put secret values in configuration fields intended for environment variable names.

Checks

just check

The current justfile runs Rust formatting, unused-dependency detection, Clippy, the custom style checker, workspace tests and the full dashboard check. PostgreSQL contracts need a disposable database and a separate just test-postgres invocation. See Testing before using that recipe.

Browser projects

cd web
pnpm install --frozen-lockfile
pnpm dev

The dashboard needs a server API; its proxy and deployment base are defined in web/vite.config.ts. See Dashboard for authentication and routes.

The documentation site uses npm instead of pnpm:

cd site
npm ci
npm run dev

Its scripts first synchronize the guides from docs/, as declared in site/package.json. See Docs site.

Clone this wiki locally