Обычное чат-ревью модели
Смотрит на обрезанный diff, молча пропускает отсутствующие прогоны тестов и пишет «Проблем не найдено», даже если контекста не хватило или вышел лимит квоты.

Ядро на Rust читает только объекты Git, переводит правила в проверяемые обязательства, собирает семантические факты и отчеты CI и держит модели в фиксированных бюджетах. Каждое замечание ссылается на код, а пробелы остаются UNKNOWN.
Совещательный режим: Sych сам не одобряет и не вливает PR; ответы моделей недетерминированы
outcomes.json bound to sha1:3eda81c9… · spend: $0.014 / $0.250Вставьте один из четырех промптов в Claude Code, Codex или Cursor либо установите проверенный бинарник одной командой в терминале.
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/ru/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/ru/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/ru/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.Прямая установка бинарника из релиза
curl -fsSL https://bondiano.github.io/sych/install.sh | sh
Политика всегда читается из target_tip, а не из проверяемой ветки PR. Редьюсер ставит статус SUPPORTED только при полном наборе допустимых свидетельств.
Смотрит на обрезанный diff, молча пропускает отсутствующие прогоны тестов и пишет «Проблем не найдено», даже если контекста не хватило или вышел лимит квоты.
Строит список обязательств из .sych/rules.yaml, перепроверяет гипотезы моделей отдельным верификатором по коду и оставляет непроверенные пункты в статусе UNKNOWN с кодом причины.
Подтвержденное замечание с привязкой к строкам
VIOLATED [EFFECT-01] crates/sych-storage/src/outbox.rs:142-156: event written outside transaction
Непроверенное обязательство не маскируется под успех
UNKNOWN [MIG-RECOVERY] DEPLOYMENT_INPUT_MISSING: recovery not declared in .sych/deploy.yaml
Детерминированные анализаторы и предикаты check: проверяют все, что видно из AST, схем SQL и артефактов CI, до первого платного обращения к модели.
rust-analyzer, LSP для TypeScript, Go и Python скачиваются по точному SHA-256 в ~/.cache/sych/tools, изолируются от сети через bwrap и никогда не берутся из PATH.
syn, oxc и tree-sitter извлекают вызовы и переносы кода, а рядом работают закрепленные ruff, oxlint, actionlint, zizmor, squawk, vacuum, oasdiff и easement.
sych schema проверяет миграции PostgreSQL, MySQL и SQLite вместе с моделями ORM на внешние ключи без индекса, блокировки и расхождения схемы.
Перед каждым запросом к модели вычисляется верхняя граница цены в микро-долларах, а после вызова запись попадает в книгу учета с лимитами на запуск, день, неделю и месяц.
Файл .sych/deploy.yaml описывает реальный порядок выкладки окружения с указанием источника каждого факта. Sych строит матрицу переходных состояний и сверяет MIG-* со старым и новым кодом.
.sych/deploy.yaml
Закрепленные индексаторы SCIP строят граф зависимостей на уровне символов для Rust, Go, TypeScript и Python без запуска сборочных скриптов репозитория.
Sych сравнивает HEAD с DIFF_BASE, сообщает только о новых или ухудшившихся структурных нарушениях и жестко ограничивает память и время работы каждого индексатора.
ARCH-LAYERARCH-CYCLEARCH-GODARCH-HUBARCH-LEAKARCH-DEADЗапускайте sych review на локальных коммитах, --staged, --worktree или OWNER/REPO#N без установки GitHub App. Доступны Markdown, JSON, SARIF 2.1.0, пакет исправлений handoff@2 и автономный HTML-отчет в одном файле.
В серверном режиме (sych serve) Sych проверяет подписи вебхуков, ведет очередь задач с lease-защитой в SQLite или PostgreSQL, отслеживает историю замечаний и /sych dismiss между пушами и ревьюит собственные PR в bondiano/sych.
Локальное ревью, удаленный PR и передача исправлений агенту
$ sych review --staged
$ sych review bondiano/sych#274 --format html --out-dir ./report
$ sych handoff --min-severity medium
Каждая линия ниже ведет в свой раздел документации: от быстрой установки до схемы хранилища и ADR.