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.

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
outcomes.json bound to sha1:3eda81c9… · spend: $0.014 / $0.250Drop 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.Set up Sych 0.3.0 for real model reviews through OpenRouter. The `sych` CLI must be installed;
if `sych --version` does not print `sych 0.3.0`, install it first as described in
https://bondiano.github.io/sych/install/.
1. Create the personal config outside the repository:
mkdir -p ~/.config/sych/config && cd ~/.config/sych
sych config init --personal
curl -fsSL -o config/prices.json https://raw.githubusercontent.com/bondiano/sych/v0.3.0/examples/personal/config/prices.json
`config init` does not write the price catalog, and metered profiles refuse to run without it.
2. The config names its secrets by environment variable. Add these to my shell profile:
export SYCH_DATABASE_URL=sqlite:.sych-data/sych.db # relative to sych.yaml
export SYCH_OPENROUTER_API_KEY=...
Ask me for the OpenRouter key. Never write it into the repository, a commit or a log.
3. Run `sych db migrate --config ~/.config/sych/sych.yaml`, then
`sych doctor --config ~/.config/sych/sych.yaml`. The `cheap_api` profile needs only the
database and OpenRouter variables; the other providers may be reported as unset.
4. Ask me before the first paid call. Then, in the repository:
sych review --config ~/.config/sych/sych.yaml --models cheap_api --base origin/main --format markdown
5. Summarize the findings, the UNKNOWN obligations and the coverage. Do not edit code yet.Add a Sych review step to this repository's agent instructions: AGENTS.md, or CLAUDE.md if the
repository uses that; create AGENTS.md if neither exists. Assume `sych` and
~/.config/sych/sych.yaml are set up as in https://bondiano.github.io/sych/install/. Append this
section, with the repository's default branch as the base:
## Review with Sych before every push
1. Run `sych review --config ~/.config/sych/sych.yaml --models cheap_api --base origin/main --format markdown`.
2. Go through every finding and every UNKNOWN obligation:
- a real problem: fix it and run the review again;
- a false positive: do not bend the code to the reviewer; explain why in the pull request;
- `coverage: partial` or listed gaps: report them, never as "no problems".
3. Put the verdict and the open gaps into the pull request description.
Do not run a review now. Add the section and show me the diff.Help me self-host the Sych 0.3.0 GitHub App for my repositories, following
https://bondiano.github.io/sych/server/ step by step. Use the image ghcr.io/bondiano/sych:0.3.0.
It runs `sych serve --config /etc/sych/sych.yaml` as uid 10001.
1. Walk me through creating a GitHub App with the permissions and webhook events the server page
lists. I click through GitHub myself; you tell me what to set.
2. Write the server sych.yaml from
https://github.com/bondiano/sych/blob/v0.3.0/docs/examples/server/sych.yaml: my app id,
repositories and bot login, and absolute storage paths on a mounted volume. Add the
`openrouter` provider, the `cheap_api` profile and `price_catalog_file` from
https://github.com/bondiano/sych/blob/v0.3.0/examples/personal/sych.yaml, with the price
catalog next to it. Start the container with
`serve --config /etc/sych/sych.yaml --models cheap_api`.
3. Secrets come only from environment variables: SYCH_GITHUB_APP_KEY_FILE (the path of the App's
private key file), SYCH_GITHUB_WEBHOOK_SECRET, SYCH_API_TOKEN_OWNER, SYCH_DATABASE_URL and
SYCH_OPENROUTER_API_KEY. Never put their values into files that get committed.
4. Run `sych config validate --config …` and `sych db migrate --config …` with the same image
before the first start. A non-loopback `http.bind` needs `api_clients` and
`behind_tls_proxy: true`; put the server behind TLS before GitHub can reach the webhook.
5. Install the App on one test repository, open a small pull request and check that the summary
comment arrives.Or install the prebuilt CLI binary directly
curl -fsSL https://bondiano.github.io/sych/install.sh | sh
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.
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.
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
Deterministic extractors and check: rule matchers settle what static analysis, SQL parsers, and CI artifacts already know before spending a cent on a model.
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.
syn, oxc, and tree-sitter extract call sites and moves, paired with pinned ruff, oxlint, actionlint, zizmor, squawk, vacuum, oasdiff, and easement.
sych schema checks PostgreSQL, MySQL, and SQLite migrations plus ORM models for unindexed foreign keys, lock hazards, and drift, standalone or inside a review.
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.
.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.yaml
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.
ARCH-LAYERARCH-CYCLEARCH-GODARCH-HUBARCH-LEAKARCH-DEADRun 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.
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
Each line below matches a section of the documentation sidebar, from first install to storage and ADRs.