Skip to content

Documentation

Configuration

.syrus.yml, per-user settings, per-repo settings.

Configuration

Syrus is configured in three layers:

LayerLives inControls
DeploymentEnvironment variables and Rails credentialsDatabase access, encryption keys, worker storage, queue sizing
UserThe credentials/settings UIGitHub token, agent credentials, preferred provider, failover policy, max agent turns
RepositoryRepository settings plus optional .syrus.yml in the target repoTrigger label, polling, default branch, provider override, prepare commands

For deployment-specific placement, see Deployment. For a practical staged path from root-only repositories to project-aware monorepos, see Monorepo Adoption.

Coworker environment policy

Administrators manage runtime-image build quotas, vulnerability and prohibited-package gates, supported ABI windows, automatic rollback and severe-revocation behavior, worker cache limits, and the optional executable /scratch profile from Admin → Environment Policy. The page shows safe OCI registry status but never returns registry credentials, which remain deployment-managed secrets.

Build-network destinations and required internal mirrors remain default-deny rules. Use Manage build-network rules on the environment-policy page to add, edit, disable, or delete allowed destinations and mark internal mirrors as required. Runtime images, build and scanner evidence (including SBOMs), pull events, and audit history use the shared Admin → Retention Settings controls.

.syrus.yml

.syrus.yml is read from the root of the target repository during the workflow and by local CLI checkout commands. It configures deterministic setup commands before the agent runs, preview commands, optional review rounds, grader commands, and optional local hooks after an operator checks out a Syrus branch.

Small repositories can keep a single root file. Monorepos can add nested .syrus.yml files and explicit targets deliberately; use Monorepo Adoption for examples across app, CLI, desktop, iOS, shared API/client code, and mixed-product layouts.

Each .syrus.yml file is limited to 1 MiB. YAML aliases and anchors are not supported, so repeat shared values explicitly. Quote dates, timestamps, and symbol-like values when you intend them to be strings.

prepare:
  - bundle install
  - npm ci

adversarial_review:
  rounds: 1
  criteria:
    - Check for missing tests and stale docs.

review_notes:
  criteria:
    - Surface shared services and final-diff resolution paths.
  low_signal:
    - Skip ordinary fixture churn unless it changes a test harness.

visual_review:
  enabled: true
  rounds: 1
  when_files_changed:
    - "app/frontend/**/*"
    - "app/views/**/*"

preview:
  setup:
    - bundle install
    - npm ci
  start: bin/rails server -p $PORT -b 0.0.0.0 -e development
  seed: bin/rails db:prepare db:seed
  health_check: /up

grade:
  - type: rspec
    failures: allow_inherited
    tags:
      ci:
        include: [ci_only]

merge_train:
  failure_rungs: [multisect]

hooks:
  post_checkout:
    - bundle exec rails db:migrate

Schema:

KeyTypeMeaning
prepareArray of stringsShell commands to run in order before agent work starts
prepare[]Explicitly run no preparation commands
preparefalseOpt out of preparation entirely
gradeArray or mappingRequired grader commands; each step has name, run, and optional phases, junit_output, failures, required, technically_overridable, timeout_minutes (up to 150), when_files_changed, and resources
grade step resourcesMappingWhat a grader can productively use: cpu (core count or all), cpu_min, and memory
merge_train.failure_policyArray of stringsOrdered merge-train failure ladder; supports restart, keep_assembly, and keep_fixes
merge_train.failure_rungsArray of stringsRepository-local merge-train failure rungs; currently supports the visible prepare/evaluate/collect multisect rung
project.capabilities / target capabilitiesMappingExecution worker constraint; only os is permitted
adversarial_review.roundsIntegerNumber of adversarial review rounds to run before grading; omit or set 0 to disable
adversarial_review.requiredBooleanFail the workflow when adversarial review cannot execute instead of recording a skipped warning
security_review.roundsIntegerNumber of security review rounds to run after adversarial review; omit to use the instance default or set 0 to disable for this repository
security_review.requiredBooleanFail the workflow when security review cannot execute instead of recording a skipped warning
security_review.criteriaArray of stringsRepository-specific security concerns the reviewer must examine
review_notes.criteriaArray of stringsHigh-signal interests for the Review Notes pass
review_notes.low_signalArray of stringsLow-signal guidance for the Review Notes pass
visual_review.enabledBooleanEnable or disable browser-based visual review for this repository
visual_review.roundsIntegerNumber of visual review rounds to allow before grading
visual_review.requiredBooleanFail the workflow when visual review cannot execute instead of recording a skipped warning
visual_review.when_files_changedArray of globsOnly run visual review when matching files changed
visual_review.targets[].environmentMappingOptional static and runtime-generated environment for a CLI/TUI target
previewMappingCommands and metadata used by the preview action and visual review
hooks.post_checkoutArray of stringsShell commands the CLI runs after syrus checkout succeeds

Project and target capabilities are normalized when Syrus plans primary execution placement before launching a Job's workflow. Jobs store the planned project or target label when known, the capability requirements, and whether the placement was inferred, explicitly requested, or defaulted. Each Workflow snapshots that plan when it is created, so later .syrus.yml edits do not move work that is already in flight. Jobs without a stored plan use the ordinary Linux/default execution class. Direct Job API calls and chat proposal cards can set an explicit planned execution requirement, and the chat proposal tools require one. Capabilities are declared, never guessed from the request text: a Job created without them runs on the repository's .syrus.yml project capabilities when it declares any, and the ordinary Linux default otherwise. During GitHub issue ingestion, the classifier may store an advisory named profile recommendation, but it cannot write that recommendation into active placement. Non-Linux recommendations remain in triage until an operator either confirms the suggested capabilities or chooses Linux. The macOS desktop profile does not imply Xcode or an iOS simulator; those capabilities belong only to the distinct iOS/Xcode profile. Dashboard bulk acceptance skips Jobs that require this individual placement decision. os is the only supported dimension and accepts linux or macos. Non-OS keys are rejected; architecture, Ruby, Node, Chromium, Xcode, toolchains, and simulators belong in preparation or executable commands.

For iOS repositories, model the app as a project with capabilities.os: macos, then put xcodebuild details in the target or grader command: explicit workspace or project, scheme, simulator destination, isolated DerivedData, result bundle and optional JUnit paths, plus no-signing settings for simulator tests. With the iOS plugin enabled, common patterns can use typed graders instead of hand-written shell:

prepare:
  - swift package resolve

grade:
  - type: xcodebuild
    workspace: apps/ios/MobileApp.xcworkspace
    scheme: MobileApp
    destination: "platform=iOS Simulator,name=iPhone 16,OS=latest"
    derived_data_path: .syrus/DerivedData/ios
    result_bundle_path: build/syrus/ios/MobileApp.xcresult
    junit_output: build/syrus/junit/ios-tests.xml
    timeout_minutes: 45

  - type: swiftpm
    package_path: apps/ios/Packages/Shared
    build_path: .syrus/DerivedData/swiftpm-shared
    timeout_minutes: 20

macOS workers provide XcodeGen alongside Xcode, so a project that generates its .xcodeproj from a project.yml can run xcodegen generate in prepare without installing anything itself.

When proposing an iOS-only Job or mixed iOS/backend Job whose implementation needs Xcode feedback, set primary planned execution to {"capabilities":{"os":["macos"]}}; Xcode, architecture, and simulator requirements belong in repository preparation and executable commands; backend graders can still declare capabilities.os: linux and run on Linux workers later.

Because nothing is inferred from a Job's wording, mentioning a platform in a title or description does not move the work — including saying that a platform is out of scope. Ask for macos only when the work genuinely needs a Mac, such as an Xcode build or an iOS simulator; a Job planned for a host no worker advertises cannot start at all.

Workers advertise their available host capabilities separately from repository requirements. Each worker heartbeat includes normalized capabilities plus diagnostics about host architecture and optional probes for Docker, Xcode, and iOS simulator runtimes. Java/JDK and Gradle behavior stays with the JVM plugins and repository wrappers. Set SYRUS_WORKER_CAPABILITIES on a worker to make its placement class explicit:

SYRUS_WORKER_CAPABILITIES=os:macos,arch:arm64,toolchain:xcode,runtime:ios_simulator

Use comma or space separated dimension:value pairs if needed, but only os:linux and os:macos are admitted for OS placement. Unknown dimensions and unsupported OS values are ignored for worker advertisements. Linux k3s and Docker Compose workers normally get os:linux and host architecture without configuration.

After implementation, Syrus compares the actual changed files against the target graph as a safety net. If the diff affects a more constrained target than the implementation workflow was planned for, Syrus records an implementation_capability_escalation workflow warning instead of silently moving the mutable workspace across platforms. Treat that warning as a prompt to retry or continue through an explicit checkpoint or handoff on a capable worker, split the work by platform, or confirm that target-specific graders fully validate the change.

prepare

prepare commands run from the workspace root under bash -c, so quoting, pipes, and && work. Each command has a 10 minute timeout. The environment is scrubbed to a small safe allowlist so the Syrus worker's own Bundler, Rails, or production environment settings do not leak into the target repo's install.

When an explicit .syrus.yml prepare command fails, Syrus fails the workflow before starting the agent and records the command, workspace directory, exit status or timeout state, and a compact tail of command output on the workflow page. You asked for the command, so a failure is loud.

A failed command runs once more before it counts. If it fails again, Syrus decides from that command's own exit status and output whether retrying the step can help. Network and registry trouble (connection resets, DNS or TLS failures, registry 5xx responses, fetch timeouts) and a command that ran out of time are retried within the usual retry budget.

When the worker itself is missing something — a system library or header a native extension links against, or a tool the command calls — the change is not at fault. Syrus marks that worker as unable to run the repository's setup and reruns the step on another worker; the Job does not fail and no repair agent is asked to "fix" code that is fine. If no live worker has what is needed, the step waits with the worker_environment_check_failed reason naming the missing library or tool.

A native extension whose own source will not compile, a lockfile that does not resolve, a script the repository references but does not contain, or any failure with no sign of a network or worker problem is not retried: it fails the same way every time until the repository changes, so Syrus reports it, naming the package when the output does, instead of spending retries on it.

If .syrus.yml is missing, Syrus auto-detects one setup command from the first matching file:

SignalCommand
Gemfilebundle install
yarn.lockyarn install --frozen-lockfile
pnpm-lock.yamlpnpm install --frozen-lockfile
package-lock.jsonnpm ci
package.jsonnpm install

Only the first match is used. A Rails app with both Gemfile and package-lock.json, for example, gets bundle install unless it provides an explicit .syrus.yml.

Auto-detected commands are a guess, so they fail *soft*: if the inferred command exits non-zero (a stale lockfile, a package manager that needs build-script approval, a tool the repo doesn't actually use), Syrus logs a non-fatal warning, records the failure on the workflow page, and hands the workspace to the agent anyway. This keeps a wrong guess from wedging onboarding — the very first Job on a repo can still run and add a .syrus.yml or fix the lockfile. Add an explicit prepare: list whenever you want setup to be authoritative (and to fail loudly when it breaks).

adversarial_review

adversarial_review.rounds is optional and applies to Initial and feedback workflows. When it is greater than zero, Syrus runs independent review rounds before the normal grade loop. A reviewer verdict of needs_work feeds another implement/respond iteration; an approved verdict exits the loop early. rounds: N requests at most N opinions and still gives the Nth needs_work verdict one final repair. If that repair changes the commit, Syrus marks the old evidence stale, records a pending warning that the final commit was not re-reviewed, and continues rather than failing the workflow.

adversarial_review.criteria adds repository- or project-specific focus areas to the reviewer prompt. Root .syrus.yml criteria apply repo-wide. In monorepos, nested .syrus.yml files can declare their own criteria, and Syrus adds those project criteria only when the diff under review touches that project directory. Identical criteria are shown once.

adversarial_review.required defaults to false: if the independent reviewer cannot execute, Syrus marks the review step skipped, raises a warning, and continues. Set required: true to fail the workflow instead. A reviewer that does execute and returns needs_work still follows the normal repair loop.

The workflow chain is created before the workspace clone exists, so Syrus reads this setting from .syrus.yml on the repository's default branch. If the file or setting is absent, adversarial review is disabled.

review_notes

When the Review Notes plugin is enabled, review_notes.criteria and review_notes.low_signal tune which changed ranges the reviewer should flag. The setting changes selection, not the submission contract: the agent should still submit an empty notes array when nothing deserves attention.

Root .syrus.yml Review Notes policy applies repo-wide. In monorepos, nested .syrus.yml files can declare their own policy; Syrus merges the root policy with every affected nested project touched by the final diff review version and de-duplicates identical entries.

visual_review

visual_review controls the browser-based reviewer. When enabled, Syrus starts a repository preview, lets a read-only reviewer inspect the changed UI, captures screenshots, and records a structured verdict. skipped is a successful outcome for changes that are not visually testable.

Use when_files_changed to keep visual review focused on UI paths:

visual_review:
  enabled: true
  rounds: 1
  required: false
  when_files_changed:
    - "app/frontend/**/*"
    - "app/views/**/*"

required defaults to false: if visual review cannot execute because the preview cannot be prepared, Syrus marks the review step skipped, raises a warning, and continues. Set required: true to fail the workflow instead. Configured terminal runtime targets are stricter: failure to start the terminal on the prepared workspace worker or establish its relay always fails the review step, so missing terminal coverage cannot be reported as a successful skip.

CLI/TUI targets can opt into repository-defined environment values. Literal static values are for non-secret switches. A generated environment command is an argv array (not a shell command), requests registered runtime inputs by name, receives them as JSON on stdin, and emits KEY=value records. Only keys listed in allow_output reach the reviewed program; other ordinary keys are dropped, while unsafe process-control or loader variables always fail the review. Runtime inputs and generated values are kept in memory and are not saved to session metadata or logs.

preview

preview tells Syrus how to boot the repository in development mode for manual preview and visual review. Syrus assigns $PORT dynamically and proxies preview traffic through the Syrus host.

preview:
  setup:
    - bundle install
    - npm ci
  start: bin/rails server -p $PORT -b 0.0.0.0 -e development
  seed: bin/rails db:prepare db:seed
  health_check: /up

In monorepos, nested .syrus.yml files can define their own preview blocks. Syrus scopes those preview commands to the project directory that declared them. On a Job detail page, one affected previewable project starts directly; multiple affected previewable projects show a selector; and changes that do not touch a previewable project show a clear no-preview message. A root-only repository keeps the original root preview behavior.

grade

grade defines checks Syrus runs after agent work. Syrus runs the command exactly as configured. Framework plugins can also define typed graders such as type: rspec or type: minitest; those expand into focused review, landing, and CI variants with framework-aware commands and base-revision retry metadata. Use custom run: commands when a plugin-defined grader cannot express a repository's test command yet.

For an RSpec check that should keep one stable grader identity while still using the Ruby plugin's JUnit/JSON output, failure evidence, metadata, and base-revision retry behavior, set fixed_full_path: true with explicit paths or spec_paths. That runs the configured spec paths in every selected phase instead of generating focused/full/CI sibling graders.

grade:
  - type: rspec
    name: simulation-specs
    fixed_full_path: true
    paths:
      - spec/services/simulation/scenario_runner_spec.rb
    phases: [review, landing, ci]

phases controls where a grader runs:

PhaseUsed for
reviewPre-review checks after implementation or feedback
landingFinal landing checks before merge
ciCI-failure repair and main-branch health checks

If junit_output is present, Syrus ingests test cases for the Tests UI and for failure comparison. failures: allow_inherited lets a grader pass when Syrus can attribute the same test failures to the known base instead of the current Job branch. Binary graders without test-case output still fail strictly unless they are explicitly marked optional.

coverage

coverage enables test coverage tracking, threshold enforcement, and PR comment reporting. Syrus reads coverage artifacts produced by your grader commands and inserts a coverage_analyze step after grading.

coverage:
  sources:
    - artifact: coverage/lcov.info
      format: lcov          # lcov | cobertura | go-cover
  threshold:
    lines: 80               # overall line coverage minimum (%)
    pr_lines: 90            # PR-diff line coverage minimum (%)
  on_miss: warn             # block | warn | schedule
  pr_comment: true          # post a coverage report comment on the PR
  hitmap_ttl_days: 7        # how long to keep the full hit map blob

sources (required) — list of coverage artifact files and their format. LCOV is the recommended general-purpose format (supported by SimpleCov, Jest/nyc, coverage.py, gcov2lcov, and llvm-cov). Cobertura XML is also accepted. With the bundled Go plugin enabled, go-cover reads go test -coverprofile=coverage.out output directly in set, count, or atomic mode, without a converter. Aggregate percentages retain Go's statement weighting, while statement ranges are projected onto source lines for changed-line coverage. Add as many sources as you have test suites; Syrus merges them before analysis.

For Go, the recommended configuration is:

grade:
  - name: go-tests
    run: go test -covermode=atomic -coverprofile=coverage.out ./...
coverage:
  sources:
    - artifact: coverage.out
      format: go-cover

threshold — optional pass/fail gate. lines checks overall line coverage; pr_lines checks coverage on lines changed in the PR diff. A miss triggers on_miss behavior:

on_missEffect
warn (default)Step succeeds; threshold miss is recorded in the artifact
blockStep fails, stopping the workflow before PR creation
scheduleStep succeeds; a new coverage-fix Job is enqueued

pr_comment — when true, Syrus posts (or updates) a coverage report comment on the PR after each workflow run. The comment includes an overall summary table with threshold status badges and a collapsible per-file table for changed files. Syrus upserts the comment — later runs update the existing comment in place rather than creating duplicates. For initial workflows the comment is posted by the pr_open step; for subsequent workflows (pr_comment, chat_feedback) a dedicated coverage_pr_comment step handles it.

hitmap_ttl_days — how long Syrus retains the full line hit map blob (default 7 days). The hit map drives source-browser line highlighting and diff annotations in the UI.

hooks.post_checkout

hooks.post_checkout commands are optional shell strings. They run only in the local operator checkout after syrus checkout JOB-<id> or syrus checkout EPIC-<number> successfully switches branches. The CLI runs each hook in order from the directory that declares it, uses sh -c, streams output to the terminal, and fails fast on the first non-zero exit. Pass --no-hooks to bypass hooks for one checkout:

syrus checkout --no-hooks JOB-<id>
syrus checkout --no-hooks EPIC-<number>

A hook runs without asking only when the same command is already in the same .syrus.yml on the Job's base branch. A Job's branch is written by an agent working from issue text, so a hook the branch itself added or changed could have been steered by whoever wrote the issue. The CLI shows such a hook and asks before running it; without a terminal it skips the hook and says so. Pass --hooks to run new and changed hooks without asking, once you have read them:

syrus checkout --hooks JOB-<id>

Hooks run only for issue, direct, and scheduled (cron) Jobs. The CLI does not run them for external-PR Jobs, for Job kinds it does not recognize, or for plain branch-name checkouts: those branches may be controlled by outside contributors, so their working-tree .syrus.yml is not treated as trusted local automation. A completed Epic checkout also skips hooks when any child Job is not one of those kinds, including when the checked-out branch is a merge train or a trusted descendant of that Job.

When a post-checkout hook fails, the CLI prints the failed command and exit code, then exits non-zero. The checkout itself is not rolled back: fix the local problem and rerun the command manually, or run checkout again with --no-hooks if you only need the branch.

In monorepos, nested .syrus.yml files can declare their own hooks.post_checkout commands. Root hooks always run for the whole repository. Nested project hooks run only when the checked-out Job diff touches files under that project directory; if the CLI cannot compute the diff, it runs all discovered project hooks and logs the fallback.

external_prs.bot_prs

Controls what Syrus does when a review requests changes on an externally filed pull request opened by a bot (Dependabot, Renovate, or any other GitHub App account) whose branch lives in the tracked repository. Bots never act on review feedback, so instead of waiting for the author Syrus:

  1. closes the Job when the same bot has opened a newer PR for the same

dependency (closure reason external_pr_superseded);

  1. treats the PR as stale when it is older than max_age_days, more than

max_commits_behind commits behind its base, or Syrus's own repair of the review failed, and then applies stale_action;

  1. otherwise addresses the requested changes itself with the same

respond, review, grader, and push chain a maintainer comment starts, once per review. The repair clears the Job's approval, as any new commit does.

external_prs:
  bot_prs:
    review_feedback: repair   # repair (default) or wait
    stale_action: refresh     # refresh (default), close, or wait
    max_age_days: 30          # 0 turns the age limit off
    max_commits_behind: 500   # optional; unset or 0 turns it off

stale_action: refresh asks Dependabot to recreate the PR with an @dependabot recreate comment, once per Job; if Dependabot does not answer within a day, or the recreated PR goes stale again, the Job closes as external_pr_stale. Bots that cannot be asked to recreate a PR are closed right away. Closing the Job closes the GitHub PR with a comment. close skips the recreate request; wait keeps today's hold. Human-authored PRs and PRs from forks always wait for their author. While .syrus.yml cannot be read, Syrus keeps waiting rather than guess.

Worked Examples

Syrus's own repo uses .syrus.yml to pin Bundler output into the cloned workspace before installing gems:

prepare:
  - bundle config set --local path vendor/bundle
  - bundle install --jobs 4

A Node repo that needs generated client code before the agent starts:

prepare:
  - npm ci
  - npm run generate

A Rails app that installs dependencies for the agent and runs local post-checkout maintenance for the developer:

prepare:
  - bundle install
  - yarn install --frozen-lockfile

hooks:
  post_checkout:
    - bundle exec rails db:migrate
    - yarn install --frozen-lockfile

A repo with no useful setup step:

prepare: []

Or, equivalently:

prepare: false

Per-User Settings

Each user owns their own profile, credentials, agent preferences, and account preferences.

SettingPurpose
ProfileDisplay name, name fields, company, location, website, GitHub handle, avatar URL, and bio on /profile
RoleUser-facing role, either developer or product_owner; users can set their own role on /profile, and admins can override it from /admin/users
GitHub tokenUsed to list issues, read PRs, push branches, open PRs, edit .github/workflows/*, and post updates for that user's repositories. Create a classic PAT with repo for private-repository use or public_repo for intentionally public-only use; add the optional workflow scope only when agents must edit GitHub Actions workflow files through the PAT. Fine-grained PATs remain supported through repository-specific validation. Configured on /credentials
Agent providerDefault provider for new Jobs, selected from enabled agent-provider plugins such as claude, codex, agy, or muse; configured on /settings/agent, with ordered routing rules available for user defaults, repository overrides, and Job overrides. Each provider may have multiple labeled subscriptions with independent credentials, health, usage, enablement, thresholds, and routing weights; routing can select an account automatically or pin one by its opaque identifier.
Agent provider failoverDisabled-by-default ordered list of alternate agent providers plus eligible causes (usage_exhausted, usage_low, rate_limited, provider_transient, auth_error); configured on /settings/agent
Chat providerOptional provider override for chat turns, selected from enabled chat-provider plugins such as claude, codex, agy, or muse; when blank, chat follows the user's default agent provider
Claude credentialEncrypted long-lived Claude OAuth token from the Claude authorization flow or claude setup-token, passed to Claude Code as CLAUDE_CODE_OAUTH_TOKEN; first-run setup remains on /credentials, while additional subscriptions and per-account reconnect, test, enable, rename, routing, and removal controls are on /settings/agent
Generic scoped credentialEncrypted write-only payload owned by the credential_store plugin, with safe metadata, target constraints, last-used audit metadata, and user/repository/team/instance scope; default type names include ssh_private_key, token, json, env, and file_blob, while plugins can add names such as k8s_cluster.kubeconfig; managed from Credential Store in the sidebar or Admin > Credential Store
Codex credentialEncrypted Codex API key or ChatGPT login auth JSON, depending on auth mode; first-run setup remains on /credentials, while additional subscriptions and per-account controls are on /settings/agent
Antigravity credentialEncrypted Gemini API key shared by Antigravity and Gemini-backed features such as walkthrough-video analysis; configured on /credentials
Muse credentialEncrypted Muse API key, passed to Muse Code on stdin for probes and agent runs; created in the Muse developer dashboard and configured on /credentials
Agent max turnsPer-run cap for Claude Code tool-use turns; 0 means no --max-turns flag; configured on /settings/agent
ThemeLight or dark app chrome, toggled from the account area and persisted per user
Scheduling pausedSkips scheduled task firing for that user; configured on /settings/preferences
Recent chats group sizeNumber of chats shown per repository (and General) group in the chat sidebar before "Show more" appears; 1-50, defaults to 10; configured on /settings/preferences
Desktop notificationsPer-type desktop banner toggles for implemented and failed Jobs; configured on /settings/preferences
Admin API tokenAdmin-only bearer token for /api/v1/admin/* diagnostics, including Jobs, Runs, queue/processes, and chat transcripts; shown once on rotation from /credentials
MemoriesPersistent agent context owned by the user; repository-scoped memories can be published from the Memories settings panel

The Credentials page includes a per-credential Test action after a secret is saved. GitHub PAT tests call GitHub as the user and report the authenticated login plus token scopes. Claude, Codex, Antigravity, and Muse tests run short CLI auth probes through the same credential paths used by Jobs and chats, so expired or mis-shaped agent credentials surface before a downstream run fails. Saving or clearing an agent credential also refreshes that provider's availability immediately and wakes work paused on it; unchanged credentials and unrelated account settings do not probe providers.

Muse keys begin with LLM| and are shown only once at creation, with no later reveal or rotation. If you signed in with a Muse subscription through muse login and no longer have the key, recover it from the CLI's own credential store and paste the whole JSON entry into the Muse field; Syrus keeps only the API key from it and discards any account token stored alongside. The account login itself cannot be used for agent runs, which is why the key is required separately.

For Claude Code, click Authorize with Claude in the credentials form, approve access in the Claude tab, then paste the short code Claude shows back into Syrus. Syrus exchanges that code for a long-lived token and tests it before storing it. You can also generate a token with claude setup-token on a machine with a browser and paste the long-lived token directly into the form. Do not copy the short-lived token from Claude Code's local credential store; Syrus does not run Claude Code's local refresh machinery. See Anthropic's long-lived token documentation.

For Codex ChatGPT login, use Authorize with ChatGPT in Credentials. Syrus opens OpenAI's authorization page, accepts the pasted code, exchanges it for Codex tokens, and stores those tokens encrypted as Codex auth JSON. The manual auth.json textarea remains available for operators who already have a local Codex credential file.

Provider selection resolves from most specific to least specific:

Workflow override -> Job provider -> Repository override -> User default

Agent-provider failover is configured separately from provider selection and applies only when Syrus is about to admit unstarted workflow work. The policy stores an ordered provider list, but Syrus only considers providers the user has actually configured credentials for. Auth errors are represented as a cause for visibility, but they are not enabled in the default automatic failover cause list. Explicit Job provider pins are respected unless the separate override_explicit_pins policy setting is enabled.

When automatic failover selects another provider, dashboard rows, Job detail, and Workflow cards show the original unavailable provider and the selected provider, for example "Claude Code unavailable; running this workflow with Codex." App payloads expose this as provider_failover with mode, automatic, original/selected provider labels, decision time, reason, and an unavailable summary containing state, retry/reset timing, evidence source, and observed time when available. Operator-selected alternate retry providers use mode: operator copy instead of automatic-unavailability copy. Chat provider failover is out of scope: this policy does not rewrite ChatSession#chat_provider or enqueue chat-provider switch jobs.

Syrus provides opt-in soft capacity pacing for busy shared instances through AppSetting.workflow_admission_control_enabled, which is off by default. When enabled, AppSetting.max_concurrent_agent_runs defaults to 3, preventing autonomous agent work from scaling linearly with worker pods. A second limit, AppSetting.max_in_flight_workflows (default 0, unlimited), caps how many Job attempts may be admitted and unfinished at once. It is checked only when an attempt is first admitted, never against work already in flight, and landing and main-branch health work is exempt. Fresh single-host and Docker Compose installs need no capacity tuning unless an admin enables this pacing. Syrus records provider-reported workflow and chat costs for spending insights, but does not enforce a daily dollar ceiling. Use provider-side limits and the per-user max-turns setting when you need spending guardrails.

Per-Repository Settings

Repository settings are stored in Syrus, not in .syrus.yml.

SettingDefaultPurpose
Owner/nameNoneGitHub repository to poll
Default branchmainBase branch for clones, diffs, PRs, and rebases
Trigger labelsyrusLabel that turns an issue into a Job
Polling enabledtrueIf disabled, scheduled pollers skip the repo
Agent provider overrideBlankIf set, new Jobs for the repo use this provider instead of the user's default
PR cost footerfalseAdds or updates a cost footer on PRs when cost data exists
Automatic pull-request CI repairtrueCreates repair Workflows for failing PR checks; manual polls can override this setting
Branch health monitoringfalsePolls and records health independently for every configured delivery-track branch (or the default branch when delivery tracks are not configured)
Automatic main branch repairfalseCreates repair Jobs when monitored main is broken
Block work while main is brokenfalsePauses ordinary work and landing while monitored main is broken
Auto-approve main branch repairsfalseApproves successful repair Jobs without operator review
Review policyselfWho must approve before a Job lands; see Review Policies below
Default issue workflowinitialLabel-triggered issues currently use the built-in Initial template

Repository issue polling is normally incremental, using the last successful poll start time as GitHub's since cursor. Because GitHub applies that cursor to issue updated_at, Syrus also runs a periodic full reconcile per repository. The instance setting repository_full_poll_interval_hours defaults to 24; once a repository's last successful full issue poll is older than that, the next autonomous issue poll omits the cursor and reconciles open trigger-labeled issues without creating duplicate Jobs.

Newly added repositories are enrolled only in explicitly requested work. Automatic pull-request CI repair is enabled by default for compatibility. When disabled, check polling and landing-gate cache updates continue, while automatic ci_failure Workflow dispatch and queued repair starts are held. Main-branch surveillance and repair are opt-in repository settings; enabling them does not change the checks run on Syrus-created pull requests or the validation performed before landing. Existing repositories retain their saved settings when these defaults change.

Review Policies

The review_policy setting on each repository controls how many approvals are required before a Job can enter the landing queue.

PolicyWho must approve
self (default)The job owner must add their approval — reviewing your own AI-generated output before it merges
two_personThe job owner and at least one other user must both approve
final_sayThe job owner must approve, plus one user from the repository's designated final-approvers list. If the owner is already a final approver, the policy collapses to self.

The Inbox smart folder on the dashboard follows this policy too: it surfaces a Job to any user whose approval would actually satisfy the job's review policy, not just the job's owner. Under two_person that means any other user; under final_say that means the owner plus the repository's designated final approvers.

How approvals work

When the repository's review policy is anything other than self, the Approve button records the current user's vote without immediately transitioning the Job. Once the required votes are in, the Job moves to :approved and enters the landing queue.

Approval rules:

  • The job creator (user_id) cannot add a JobApproval unless they are

also the owner (owner_user_id). The owner can always approve — that step is the primary human review of AI-generated output.

  • Any other repository member can add an approval vote.
  • Unapproving a Job clears all recorded votes so the full policy must be

re-satisfied before the Job can land again.

Final approvers

Set a repository's review policy from its settings page (Repository -> Edit -> Automation -> Review policy). Choosing final_say reveals a Final approvers section on the same page where a repo admin can add or remove final approvers by email. A repository may have any number of final approvers; only one needs to approve a given Job. Managing this list requires admin-tier access on the repository (the same tier required to edit repository members), and is also available through the /api/v1/app/repositories/:id/final_approvers endpoints.

Auto-approval bypass

auto_approve_rules on Epics, repositories, and users bypass the review policy entirely — the job transitions directly to :approved without creating JobApproval records. This is intentional: auto-approval means Syrus already validated the work through required graders, and requiring human sign-off on top of that would defeat the purpose.

The default workflow is not a free-form per-repo template yet. In the current implementation, issue ingestion always starts the initial workflow; scheduled tasks, PR feedback, CI failures, rebases, retries, and manual actions choose their own trigger-specific templates.

Feedback Policies

The feedback_policy setting on each repository controls whether PR comments from repository members are acted on automatically or require confirmation. External reviewers always require confirmation before Syrus spends an owner-billed workflow on their comment.

PolicyBehavior
confirm (default)Only the job owner's actionable comments trigger automatic implementation; team member and external actionable comments are recorded but do not queue a workflow until confirmed by the operator
autoActionable comments from the job owner and repository members queue an implementation workflow automatically; external comments are recorded for operator review

Comment attribution

Syrus classifies each new PR comment by commenter:

  • Job owner — the GitHub handle matches the job's owner user. Owner comments always queue automatically regardless of feedback_policy.
  • Team member — the handle matches a repository membership. Member comments respect feedback_policy.
  • External — the handle is not found in memberships and is not the owner. External comments require operator confirmation.

Syrus also passes each comment through an LLM classifier to determine whether it contains actionable feedback (requests a code change, correction, or improvement) or is a discussion remark, question, or acknowledgement. Non-actionable comments are stored in the pr_review_comments audit log but never trigger a workflow.

Which PRs are polled for comments

Syrus polls all PR surfaces associated with a Job:

  • Direct PR — the PR Syrus opened against the shared repository (modes 1 and 2a)
  • Upstream PR — the PR opened against the upstream repository after fork review approval (modes 2b and 3)
  • Fork review PR — the internal PR from the feature branch to the fork's default branch, polled until the upstream PR is created

All three surfaces use the same attribution and classification pipeline.

Pending feedback (confirm policy)

When feedback_policy is confirm, actionable comments from team members and external reviewers appear in a Pending feedback section on the job detail page. The job owner can choose one of three actions for each comment:

  • Apply — use the comment body as-is as the feedback prompt for a new iteration.
  • Ignore — dismiss the comment without taking action; it is recorded in the audit trail.
  • Replace — write a custom feedback prompt; the original comment is marked handled and the operator's text drives the next iteration.

All three actions are recorded via the actioned_by field on the pr_review_comments audit row. The resulting chat_feedback workflow artifacts include a feedback_source field with the original commenter attribution and the action taken (apply or replace), visible in the feedback history panel.

Worker Environment

The web and worker processes share the Rails environment. The worker also needs durable workspace storage because it manages clones and worktrees.

VariableRequiredUsed by
RAILS_MASTER_KEYProduction yes, unless direct Active Record encryption keys are configuredDecrypts Rails credentials and Active Record encrypted attributes
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEYProduction alternativeActive Record Encryption primary key when not using Rails credentials
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEYProduction alternativeActive Record Encryption deterministic key when not using Rails credentials
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALTProduction alternativeActive Record Encryption key derivation salt when not using Rails credentials
SECRET_KEY_BASEProduction yesRails sessions, signed cookies, message verification
DB_HOSTProduction yesMySQL host; defaults to 127.0.0.1
SYRUS_DATABASE_PASSWORDProduction yesMySQL password
DB_POOLNoActive Record pool size per process; production MySQL defaults to 9. Worker pools must be at least JOB_CONCURRENCY + 3
SYRUS_APP_HOSTWeb yesCanonical app hostname for URL generation, mailer links, and Host header authorization
SYRUS_TIME_ZONENoIANA deployment time zone (for example Europe/Berlin). An invalid explicit value stops boot; otherwise a valid process TZ, then Etc/UTC, is used.
SYRUS_ALLOWED_HOSTSNoOptional comma-separated extra hostnames; SYRUS_APP_HOST is always allowed, and a blank value falls back to only SYRUS_APP_HOST
SYRUS_DATA_ROOTWorker recommendedClone cache and per-workflow workspaces; defaults to ~/.syrus
SYRUS_PREPARED_LAYER_CACHE_GBWorker optionalOverrides the instance prepared-workspace cache budget for a worker whose local disk differs from the fleet
SYRUS_WORKER_POOL_NAMEExternal worker optionalOperator-facing pool label recorded in worker capability diagnostics, such as macos-xcode
SYRUS_WORKER_CAPABILITIESWorker optionalComma or space separated capability advertisement for os, arch, toolchain, and runtime
SYRUS_GITHUB_REPOYesGitHub owner/repo slug for this Syrus installation's own repository; used for build revision links
SYRUS_BUG_REPORT_OWNERYesGitHub owner or organization for in-app bug reports; Syrus uses the configured syrus repository under that owner
SYRUS_MAILER_FROMNoFrom address for password reset and invitation email; defaults to Syrus <noreply@$SYRUS_APP_HOST>
SYRUS_ALERT_WEBHOOK_URLNoJSON webhook URL for alarm-severity SystemAlerts; repeated alerts are deduplicated by dismissal key
SYRUS_ALERT_EMAIL_TONoComma-separated email recipients for alarm-severity SystemAlerts
SMTP_ADDRESSNoEnables SMTP delivery for password reset and invitation email when set
SMTP_PORTNoSMTP port; defaults to 587
SMTP_USERNAME / SMTP_PASSWORDNoSMTP credentials, when required by the server
SMTP_AUTHENTICATIONNoSMTP authentication mode; defaults to plain
SMTP_ENABLE_STARTTLS_AUTONoWhether Action Mailer should auto-enable STARTTLS; defaults to true
JOB_CONCURRENCYNoSolid Queue worker thread count for the runs queue; defaults to the pod's CPU budget (80% of its cgroup CPU limit, rounded down, minimum 1)
RAILS_MAX_THREADSNoRails and database pool sizing
RAILS_LOG_LEVELNoProduction log level; defaults to info
PORTWeb onlyRails server port; defaults to 3000
GIT_SHANoDisplayed build revision

SYRUS_DATA_ROOT should point at a persistent volume for worker pods.

Time zones

Set SYRUS_TIME_ZONE to the deployment's intended IANA zone on local/macOS launches, in Compose .env, in every k3s/Kubernetes web and worker container, or in the environment settings of a generic cloud service. Syrus never infers physical location from the host, cluster, IP address, or cloud region. A valid process TZ is accepted only when SYRUS_TIME_ZONE is absent; otherwise Syrus uses Etc/UTC. Persisted instants and MySQL sessions remain UTC regardless of the presentation zone. Signed-in browsers report their IANA zone automatically; automatic user zones can follow travel, while a manual override remains fixed. Calendar labels and chat date groups follow that user zone. Operational schedule and wakeup times show both labeled user and server values when the zones differ, while the stored instant remains UTC. Web pods do not need clone storage. The mounted directory must be writable by the container's rails user (1000:1000); the published Docker images create /home/rails/.syrus with that ownership so a fresh named volume can inherit it on first mount.

Fresh installations cap both the prepared-workspace cache and retained Coding Mode checkouts at 10 GB. The prepared cache is an LRU per worker and still evicts under disk pressure; SYRUS_PREPARED_LAYER_CACHE_GB can override its instance setting for one worker. Coding Mode uses a separate instance-wide LRU budget. Admins can inspect the Coding Mode limit, the prepared-cache instance default, and each worker's latest reported effective cache limit under Admin → Retention & Storage, and change stored values under Admin → Settings. Upgrades do not replace values already stored by an existing installation, and setting a budget to 0 explicitly keeps that budget unlimited.

Secret Management

Per-user credentials use Active Record Encryption:

  • github_token
  • claude_oauth_token
  • codex_api_key
  • codex_auth_json
  • api_token

The experimental Connected Accounts plugin can connect a user-owned hosted account through an OAuth 2 authorization-code flow with PKCE. Administrators configure the generic provider's HTTPS authorization, token, identity, validation, and revocation endpoints, client credentials, offered scopes, and the explicit subset allowed for read-only connections, and allowed API origins under Admin > Connected accounts. Syrus refreshes expiring access tokens and probes account health in the background. Disconnect attempts provider revocation and always revokes the local stored credential; token material is kept out of logs, audit metadata, and agent transcripts. Users connect, inspect, restrict to read-only, reauthorize, and disconnect their own accounts under Settings > Connected accounts. Acting as an account owner is a separate administrator opt-in and defaults off. Coworker access also requires the default-off Coworker connected accounts feature after the listed coworker isolation and permission prerequisites are satisfied.

Administrators also keep instance-level credentials as instance-owned accounts. The Telegram and Discord plugins use this for their bot tokens: connect a "Telegram bot" or "Discord bot" account under Admin > Connected accounts by pasting the token. Syrus checks it with the platform, stores it encrypted, and never shows it again. Instance-owned accounts are visible only to administrators and are used only by those plugins' delivery and polling services, never by agents or users. To rotate a token, paste the new one for the same provider; the Discord Gateway reconnects with it and Telegram's next poll uses it. Disconnecting stops the connector. These bot tokens are not OAuth credentials, so reset them at the platform (Discord developer portal, @BotFather) when they should stop working everywhere. Tokens previously stored in the Telegram or Discord admin settings are carried over automatically after upgrade, verified, and then erased from the old setting; if the copy fails, the old value keeps working until it succeeds. Both platform plugins rely on this experimental plugin, so they require beta mode; the upgrade turns it on for instances that already run Telegram or Discord.

The bundled, experimental Google Workspace provider is disabled by default. Each instance registers its own Google OAuth web client, then saves its client id and encrypted secret under Admin > Connected accounts. Syrus pins the Google endpoints and requests offline access with only the Calendar read-only scope. Check Google's current consent-screen and verification policy before enabling connections. Connected users read events through the provider-neutral Personal Calendar tools and disconnect from Settings > Connected accounts.

Generic plugin-managed credentials live in the bundled credential_store plugin, which stores payloads as encrypted blobs and keeps only safe display metadata outside the encrypted payload. The plugin also exposes brokered MCP tools for controlled credential use, including SSH command execution backed by ssh_private_key leases, temporary key files, target constraints, redaction, and audit rows. Credential type selects compatible typed consumers, so an SSH key is eligible for typed SSH execution without configuring an internal MCP tool name. This does not grant command authority: unified permissions still evaluate the operation and exact invocation, while raw-materialization wrappers remain explicit grants under Allowed credential wrappers. Management and discovery payloads report inferred typed consumers separately from those raw wrapper grants. Credential types owned by another plugin are protected from those raw wrappers, and their wrapper grants cannot be changed in the generic Credential Store UI or API; the owning plugin instead uses its validated typed consumer. Plugin refreshes take a database row lock and produce a distinct refresh audit event; operator-revoked credentials cannot be refreshed. They do not change the human rotation action, which explicitly un-revokes. The SSH editor guides operators through private-key entry, destination allowlists, and explicit host-key enrollment. A discovered key is not proof of server identity: verify its SHA-256 fingerprint through a trusted channel before confirming it. SSH execution requires that confirmed entry, uses a temporary 0600 known-hosts file with strict checking, and never relies on the worker's ambient known-hosts file. Private keys pasted without their final newline are normalized when submitted through the SSH editor and again when runtime key files are created; internal key formatting and passphrases are left unchanged. The encrypted values live in the primary database. The encryption keys can come from Rails credentials via RAILS_MASTER_KEY, or directly from the ACTIVE_RECORD_ENCRYPTION_* environment variables. Any process that reads or writes encrypted credentials needs one complete, stable key source. This is why smoke tests or console sessions that create users fail loudly when encryption keys are missing.

GitHub push tokens are not written into clone remotes. Syrus keeps clone remotes anonymous and constructs a token-bearing push URL only for the individual git push call.

For token rotation, users update their GitHub and agent credentials in the credentials UI by submitting a replacement value. Admin API tokens are rotated separately and displayed only once; admins can also revoke the token from the same credentials page, which immediately removes API access until a new token is generated. For Rails encryption key rotation, follow Rails Active Record Encryption rotation practice: deploy the new scheme while retaining read access to old ciphertext, rewrite encrypted attributes, then remove the old scheme after verification.

Security review

An optional security_review block runs a dedicated security reviewer after adversarial review. Admins set the instance default, from 0 to 10 rounds, in Admin Settings; zero disables the review by default. A repository can override that round count with rounds, require reviewer availability with required: true, and add repository-specific criteria. The repository page shows the configured rounds and criteria alongside the other .syrus.yml review settings. Routing rules can select a provider for the security_review step kind.

Each security review round reads the whole change, from where the Job's branch leaves its target branch (or its stack parent, for a stacked Job) to the reviewed commit, rather than only the latest repair. Code written in earlier adversarial-review rounds is always security-reviewed.

Plugin configuration

Plugins can extend .syrus.yml without adding plugin-specific fields to the core configuration model. Their settings use a versioned namespace:

plugins:
  example.rules:
    version: 1
    config:
      enabled: true

Each plugin validates its own configuration and controls root-to-project overlays. Configuration owned by a disabled or missing plugin is diagnosed and does not activate that plugin's behavior.