Sych, the little owl

Deterministic code review.
Evidence, not vibes.

A Rust core pins the Git snapshot from objects alone, turns policy rules into obligations, collects semantic and CI facts, and holds model calls inside fixed budgets. Every finding cites exact code; every gap stays UNKNOWN instead of silence.

Advisory by design: Sych never approves or merges pull requests; model prose is non-deterministic

SnapshotGit objectsPlannerobligationsFactsLSP · AST · SQLModelsmicro-USD capReducerverdictsych-ci.jsontested_oid == head
obligation TEST-01 · SUPPORTEDcoverage: complete
evidence: outcomes.json bound to sha1:3eda81c9… · spend: $0.014 / $0.250
Toggle the CI manifest to see how the deterministic reducer reacts.

Paste one prompt into your coding agent

Drop one of the four prompts below into Claude Code, Codex, or Cursor, or install the verified release binary straight from the shell.

Install Sych from the main branch of https://github.com/bondiano/sych and run a free review.

1. Install the CLI with Rust 1.94 or newer:
   cargo install --git https://github.com/bondiano/sych --branch main --locked sych-app
2. In the repository, run `sych review`. If I already have a Sych configuration, add
   `--models fake` to guarantee a free run. If HEAD has no commits beyond the default branch
   and has a parent, add `--diff-base HEAD~1` to review the last commit. The first run downloads
   pinned language servers and linters into ~/.cache/sych/tools.
3. Show the verdict, UNKNOWN/NOT_ASSESSED obligations and coverage gaps. Do not change any source files.

Or install the prebuilt CLI binary directly

curl -fsSL https://bondiano.github.io/sych/install.sh | sh

Obligations, not vibes

Policy is read strictly from target_tip, never from the untrusted pull request head. The reducer marks an obligation SUPPORTED only when complete evidence of an acceptable kind backs every criterion.

Unbounded chat review

Reads a truncated diff, skips missing test runs silently, and writes "Looks good to me" when a timeout, quota cap, or missing context prevented a real check.

Sych deterministic reducer

Plans explicit obligations from .sych/rules.yaml, verifies model claims against pinned files in a separate pass, and keeps any unverified obligation UNKNOWN with its exact reason.

Verified finding anchored to exact lines

VIOLATED [EFFECT-01] crates/sych-storage/src/outbox.rs:142-156: event written outside transaction

Unverified check reported openly, never hidden

UNKNOWN [MIG-RECOVERY] DEPLOYMENT_INPUT_MISSING: recovery not declared in .sych/deploy.yaml

Facts before models

Deterministic extractors and check: rule matchers settle what static analysis, SQL parsers, and CI artifacts already know before spending a cent on a model.

Pinned language servers

rust-analyzer, TypeScript, Go, and Python LSPs are downloaded by exact SHA-256 into ~/.cache/sych/tools, isolated from the network under bwrap where available, and never taken from PATH.

Syntax and contract linters

syn, oxc, and tree-sitter extract call sites and moves, paired with pinned ruff, oxlint, actionlint, zizmor, squawk, vacuum, oasdiff, and easement.

Database & ORM schema linter

sych schema checks PostgreSQL, MySQL, and SQLite migrations plus ORM models for unindexed foreign keys, lock hazards, and drift, standalone or inside a review.

Bounded models & cost ledger

Every model attempt gets a micro-USD upper bound before the HTTP call and an idempotent ledger entry after it across run, daily, weekly, and monthly caps.

Explore semantic backends and pinned tools

Rollouts and schema changes checked against reality

.sych/deploy.yaml states how your environment actually rolls out, with a source for every claim. Sych derives the reachable transition matrix and binds MIG-* obligations to both base and head readers.

.sych/deploy.yamlold_app_expanded_schemaBase readers & writers stay compatiblerecovery_after_new_writesRollback or repair handles new rows

.sych/deploy.yaml

  • old_app_expanded_schema Base readers & writers stay compatible
  • recovery_after_new_writes Rollback or repair handles new rows
Read the deployment model and DB schema guides

Six checks of a project's structure

Pinned SCIP indexers build a symbol-level dependency graph for Rust, Go, TypeScript, and Python without executing repository build scripts.

Sych compares HEAD against DIFF_BASE, reports only architectural regressions introduced or worsened by the change, and enforces memory and runtime ceilings per indexer.

How architecture review works
  • Layering violations across declared module tiersARCH-LAYER
  • New or widened dependency cyclesARCH-CYCLE
  • God modules exceeding fan-out or symbol ceilingsARCH-GOD
  • Unintended hub coupling across subsystemsARCH-HUB
  • Internal types leaking through public boundariesARCH-LEAK
  • Dead cross-module exports introduced by the diffARCH-DEAD

One binary: local CLI, offline HTML report, GitHub App

Run sych review on local commits, --staged, --worktree, or OWNER/REPO#N without installing a GitHub App. Export Markdown, JSON, SARIF 2.1.0, a handoff@2 agent fix brief, or a single-file offline HTML report.

In server mode (sych serve), Sych verifies webhooks, schedules fenced jobs on SQLite or PostgreSQL, tracks finding lineage and /sych dismiss across force-pushes, and reviews its own pull requests on bondiano/sych.

Self-host the GitHub App server

Local review, remote PR review, and agent handoff

$ sych review --staged

$ sych review bondiano/sych#274 --format html --out-dir ./report

$ sych handoff --min-severity medium

End of the line. Change here for the docs

Each line below matches a section of the documentation sidebar, from first install to storage and ADRs.