Repository navigation
overview 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.
- Rust through rustup.
rust-toolchain.tomlselects Rust 1.94.1 with rustfmt and Clippy; the workspace minimum inCargo.tomlis 1.94. -
justandcargo-machete0.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 -- --helpRelease 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.
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 markdownUse 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 markdownFor real models, configure a provider profile using Models and Configuration. Do not put secret values in configuration fields intended for environment variable names.
just checkThe 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.
cd web
pnpm install --frozen-lockfile
pnpm devThe 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 devIts scripts first synchronize the guides from docs/, as declared in site/package.json. See Docs site.