Начало работы
Установка
Sych поставляется как один бинарный файл sych. Локально он проверяет коммиты между базовой веткой и HEAD (а также
пулреквест, ветку или сравнение на GitHub через sych review OWNER/REPO#N или sych review https://github.com/... без
GitHub App) и ничего никуда не публикует. В серверном режиме он работает как GitHub App и оставляет комментарии к
пулреквестам. Быстрее всего настроить его через один из промптов ниже: вставьте выбранный промпт в вашего агента
разработки (Claude Code, Codex, Cursor…) в репозитории, который нужно проверить. В каждом промпте собраны все нужные
шаги. Если предпочитаете выполнить команды сами, перейдите к разделу Ручная установка.
Промпты
Заголовок раздела «Промпты»1. Попробовать бесплатно
Заголовок раздела «1. Попробовать бесплатно»Бесплатно: без вызовов моделей и без ключей.
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-app2. 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.2. Ревью с реальной моделью
Заголовок раздела «2. Ревью с реальной моделью»Этот вариант делает платные вызовы через OpenRouter в пределах бюджетов из sych.yaml.
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 inhttps://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 markdown5. Summarize the findings, the UNKNOWN obligations and the coverage. Do not edit code yet.3. Ревью перед каждым пушем
Заголовок раздела «3. Ревью перед каждым пушем»Add a Sych review step to this repository's agent instructions: AGENTS.md, or CLAUDE.md if therepository 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 thissection, 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.4. Свой сервер GitHub App
Заголовок раздела «4. Свой сервер GitHub App»Help me self-host the Sych 0.3.0 GitHub App for my repositories, followinghttps://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.Плагин для Claude Code
Заголовок раздела «Плагин для Claude Code»/plugin marketplace add bondiano/sych/plugin install sych@sychПлагин требует установленного CLI sych в PATH и сам ничего не устанавливает.
/sych:review [--base REF] [--config PATH --models PROFILE]проверяет закоммиченные изменения ветки относительно удалённой ветки по умолчанию. Без указания профиля используется--models fake; перед первым платным вызовом плагин запрашивает подтверждение. Затем он выводит рекомендацию, покрытие, замечания, обязательства в статусеUNKNOWNи непроверенные пути.- Исправления передаются через
sych handoffс вашего согласия. - Навык
sych-reviewвыполняет те же шаги перед пушем.
Ручная установка
Заголовок раздела «Ручная установка»Установите проверенный бинарник для Linux (x86_64 и aarch64, glibc 2.35+) или macOS на Apple silicon
скриптом установки либо через Homebrew:
curl -fsSL https://bondiano.github.io/sych/install.sh | shbrew install bondiano/tap/sychЛибо скачайте и проверьте архив релиза вручную:
version=0.3.0case "$(uname -s)-$(uname -m)" in Linux-x86_64) target=x86_64-unknown-linux-gnu ;; Linux-aarch64) target=aarch64-unknown-linux-gnu ;; Darwin-arm64) target=aarch64-apple-darwin ;; *) echo "no prebuilt binary for this platform: build from source" >&2 ;;esacbase="https://github.com/bondiano/sych/releases/download/v$version"curl -fsSL -O "$base/sych-$version-$target.tar.gz" -O "$base/sych-$version-$target.tar.gz.sha256"shasum -a 256 -c "sych-$version-$target.tar.gz.sha256"tar -xzf "sych-$version-$target.tar.gz"mkdir -p ~/.local/bin && install -m 0755 "sych-$version-$target/sych" ~/.local/bin/sychsych --versionИз исходников (нужен Rust 1.94 или новее):
cargo install --git https://github.com/bondiano/sych --branch main --locked sych-appСерверный образ: ghcr.io/bondiano/sych:0.3.0.
Во время работы Sych требует git (2.40 или новее для разметки сгенерированных файлов через .gitattributes). Языковые
серверы и линтеры скачиваются по закреплённым версиям в ~/.cache/sych/tools и никогда не берутся из PATH; для
семантических фактов по Rust также нужен системный cargo. Флаг --semantic off отключает все эти инструменты.
Запустите в репозитории:
sych reviewВывод, форматы и коды возврата описаны в разделе Локальное ревью. Настройка sych.yaml и политика
репозитория в .sych/ разобраны в разделе Конфигурация, провайдеры, профили и бюджеты описаны в разделе
Модели.

