Documentation
Plugins
How Syrus plugins extend UI, tools, prompts, graders, previews, and integrations.
Plugins
Prebuilt frontend bundles
An externally installed plugin may ship its UI as a prebuilt ESM bundle and stylesheet. Syrus serves and loads those files for enabled plugins at startup, so installing UI contributions requires a restart but no rebuild of the core frontend. If one bundle fails, Syrus logs and skips it while the application continues loading.
Every plugin UI contribution is isolated by an error boundary. A render error or rejected lazy import shows a compact plugin-named reload action and is sent through Syrus's browser error reporting without taking down the surrounding UI. External manifests may also declare frontend.i18n JSON files under app/frontend/i18n/locales/{en,de,la}/; Syrus loads the active language from content-hashed URLs and falls back to English if that locale cannot be loaded.
Plugin bundles share the host's React, React DOM, TanStack Query, i18next, and react-i18next runtimes through the documented @syrus/plugin-sdk build contract. Their own CSS must be complete; core does not compile utility classes from an external plugin's source.
Plugins are installed extension bundles. Installing a plugin makes its code available after restart; enabling a plugin makes its surfaces visible and its behavior active. In general, the plugin enable switch is the feature flag for that plugin.
External plugins can declare a requires_syrus Ruby version requirement, such as >= 0.1.16. Syrus withholds a plugin whose requirement is not met and shows the required and running releases in plugin health. If the running release is unknown, Syrus loads the plugin and records that the compatibility check was skipped. Plugin authors should declare the oldest Syrus release they have actually tested. Before publishing, run bin/plugin-host-surface scan PATH (or add --json for tooling). Registered Syrus::Host APIs are supported; literal dynamic core names produce warnings, while direct non-public core references make the command fail. The report derives the minimum Syrus release required by the host APIs in use. Computed dynamic constant names cannot be detected. The tested release may be newer, but must not be older than that derived floor.
Every plugin manifest must explicitly declare default_enabled, disableable, and experimental as booleans, plus requires_syrus. Use requires_syrus nil only when compatibility is intentionally unbounded. This is a breaking authoring contract: manifests that omit any of these four fields are rejected instead of receiving implicit defaults.
Validate and test a plugin
Plugin Ruby may use only public Syrus::Host::* APIs, the plugin DSL and documented interface modules, its own code, Rails, and the Ruby standard library. Every other Syrus core constant is internal and may change without notice. Validation rejects non-public direct references and reports literal string references; if the host surface lacks a capability, request a public facade instead of reaching around it.
Create a project with syrus plugin new NAME. The command writes ./NAME by default; use --path DIR to choose another empty directory. The generated project includes a gemspec and manifest, a callback-provider example, English, German, and Latin locales, host-contract specs, a README, and a GitHub Actions workflow that runs syrus plugin test.
Add --frontend for an admin-page source example and prebuilt bundle, --model for a namespaced model and migration, or --cli for a server-backed CLI command. requires_syrus defaults to the connected instance release and falls back to the CLI release; override it with --syrus-version X.Y.Z. Names must be lower-case Ruby-compatible snake case and cannot collide with a plugin known to the instance or bundled into the CLI. Existing non-empty directories are never overwritten.
Run syrus plugin validate [DIR] to check the manifest, Ruby dependencies, release compatibility, host API usage, prebuilt frontend hash, and English, German, and Latin locale parity. Run syrus plugin test [DIR] for the same validation followed by the plugin's own RSpec suite. Both commands default to the current directory and run against the connected instance's release when it is available, otherwise the CLI release. Use --syrus-version X.Y.Z to select a release explicitly and --json for the stable summary object.
The CLI pulls the matching ghcr.io/tkadauke/syrus-plugin-test companion image and mounts only the plugin directory; no instance credentials enter the container. Syrus contributors can use --checkout PATH to execute the same runner from a local Syrus checkout without Docker.
Run syrus plugin pack [DIR] to produce a distributable package after the same validation. The .syrus-plugin.tar.gz archive uses sorted tar entries, fixed timestamps, normalized permissions, and deterministic gzip metadata, so packing unchanged input twice produces the same digest. Its root contains a generated package.json capability manifest and CHECKSUMS.sha256; the source tree and prebuilt frontend assets live under plugin/. Syrus rejects packages with changed or undeclared files, unsafe paths or links, excessive file sizes or counts, third-party Ruby gems, or non-public host API use. Package consumers and registry automation can enforce those checks with bin/plugin-package-validate [--json] ARCHIVE; invalid packages return a nonzero exit status.
Generate a publisher key with syrus plugin keygen, keep the private key offline, and never commit or upload it. Sign the package digest with syrus plugin sign PACKAGE --key KEY, then verify the detached signature with syrus plugin verify PACKAGE --signature PACKAGE.sig --trust-store TRUST.json. Registry trust stores bind each publisher prefix to a fingerprint labeled official, verified, or community and can revoke a publisher key or one release; explicitly local packages may instead be unsigned local. A revoked installed release is fleet-quarantined for removal. Installation checks the key that actually signed the package: it must own the plugin's name prefix (the part before the first underscore). A signed local upload is held to its signer's prefix when the signer has one.
Signing proves that the holder of a publisher key signed those exact package bytes. It does not sandbox a plugin, review its source, or authorize its tools and capabilities; normal Syrus permissions still apply after install.
syrus plugin publish DIR --key KEY --repository OWNER/REPO validates, packs, signs, and uploads a GitHub release, then prints its registry entry. Add --index-repository OWNER/INDEX --submit only to explicitly consent to opening the index pull request from your fork and adding the release to index.json. Authentication comes from GITHUB_TOKEN; the command does not print or persist it. The description and license default to gemspec metadata; --description, --license, and --category provide explicit registry values when needed.
Develop with live reload
Run syrus plugin dev [DIR] for a fast editing loop against a real, release-matched Syrus image. The command starts a throwaway SQLite instance, mounts and enables the plugin, and prints its URL, health, and the seeded sign-in (demo@syrus.local / password). Use --syrus-version X.Y.Z to choose another release.
Frontend source edits run the plugin frontend builder inside the container, so Node does not need to be installed on the host. Reload the browser to fetch the new content-hashed bundle. Ruby, manifest, and locale edits restart Syrus and print the new plugin health; syntax and load errors are shown without ending the watch loop. Rapid edits are debounced.
Press Ctrl-C for a clean shutdown. Data is discarded by default; --keep-data retains the stopped container and its named Docker volume and prints both names. The development host runs one plugin, uses SQLite, and has no real agent credentials. You may configure an existing agent provider through the normal settings UI, but its credentials are stored only in that throwaway volume. Docker is required.
Hand-install an external plugin
External plugins are trusted, in-process code. Review the source before installing it: the plugin receives the same database, filesystem, network, and credential access as Syrus. A dropped-in plugin directory may depend on Rails but cannot bring additional Ruby gems; its browser dependencies must be bundled into its prebuilt frontend output.
Set SYRUS_PLUGIN_PATH to a shared root whose immediate children are complete plugin directories. Mount the same contents read-only in every container that boots Rails, including web, workers, setup/migration, and preview processes. Stage a complete plugin directory outside the live root, stop Syrus, atomically place or replace the directory, run the normal deployment migrations, and restart every Syrus container. Syrus discovers the plugin's db/migrate directory automatically, and migrations run even while the plugin is disabled.
After restart, inspect Admin → Plugins before enabling the plugin. The page shows dependency problems, compatibility, and retained load failures. An incompatible or failed plugin contributes no routes or providers and does not stop healthy plugins or core from loading.
Syrus also isolates ordinary failures from plugin providers at runtime. The admin page shows recent failures and open circuits. After repeated failures in a sliding window, a process-local circuit declines calls until its cool-down expires; one successful trial closes it, while another failure reopens it. Circuit histories can differ between web and worker processes because they are kept in memory.
Plugin-owned routes use the same production-isolation policy. An unhandled route exception returns a structured error that names the plugin, records the latest error under Admin → Plugins, and does not prevent a healthy sibling plugin from serving requests. The health view also shows each plugin's request count and latest route-error time. Each process retains at most 100 distinct recent failure signatures per plugin, bounding both runtime memory and the Admin health payload. Development and test keep raising these exceptions through Syrus's normal error handling so plugin defects stay visible.
The runtime breaker defaults to five failures within 60 seconds and a 30-second cool-down. Set SYRUS_PLUGIN_CIRCUIT_FAILURE_THRESHOLD, SYRUS_PLUGIN_CIRCUIT_WINDOW_SECONDS, and SYRUS_PLUGIN_CIRCUIT_COOLDOWN_SECONDS on every Syrus process to tune those values. Provider timeouts remain opt-in per operation. This in-process boundary contains ordinary bugs, not malicious code, native-code hangs, memory growth, monkey patches, or process termination.
To uninstall, disable the plugin and resolve any usage blockers, stop every container, move its directory out of the shared root, and restart all containers. Keep its data for rollback; destructive purge is a separate, explicit operation.
Multi-process installations can also publish external plugin releases as a signed desired set in the configured attachment storage. Archives are addressed by SHA-256, and each manifest revision names the exact release, size, process roles, and quarantine state. Pre-boot consumers verify the detached Ed25519 signature and every artifact digest before activating a set. Operators distribute only the public verification key; Syrus keeps the signing key encrypted with its other application credentials.
Set SYRUS_PLUGIN_SYNC_ENABLED=1 on each Rails process and provide SYRUS_PLUGIN_MANIFEST_PUBLIC_KEY. The pre-boot sync reads from the configured S3-compatible attachment bucket using S3_BUCKET, S3_ENDPOINT, S3_REGION, S3_ACCESS_KEY_ID, and S3_SECRET_ACCESS_KEY. Single-node installations can instead set SYRUS_PLUGIN_SYNC_STORAGE_PATH to the local attachment-storage root. Synced sets live under $SYRUS_DATA_ROOT/plugin-sync; activation changes the current symlink atomically, and the previous set remains available as last-good.
Sync failures do not block boot by default. An unreachable store, invalid signature, malformed manifest, unsafe archive, or artifact size/digest mismatch prints one error and retains the active set. Set SYRUS_PLUGIN_SYNC_STRICT=1 when a process should fail instead. SYRUS_PLUGIN_SYNC_RETENTION controls the number of additional inactive sets retained beyond current and last-good (default 2). The entrypoint exports SYRUS_PLUGIN_SET_DIGEST and SYRUS_PLUGIN_SET_REVISION to Rails and its sidecars. Fleet-quarantined or revoked entries are omitted from the activated set. A hand-placed plugin root still takes precedence over a same-named synced plugin and the collision is reported by plugin health.
Plugin authors may limit loading with roles %w[web worker preview sidecar]; the default is every role. After changing desired plugins, Apply changes drains web, worker, and preview processes and lets the container restart policy rerun pre-boot sync. The status identifies processes still pending or stuck. Setup and web apply plugin migrations normally, while workers stop at boot if any migration remains pending.
Installing packaged plugins
Administrators can upload a .syrus-plugin.tar.gz package on Admin → Plugins or run syrus plugin install PATH. Syrus validates the package, checks its publisher signature and revocation status, stores the content by digest, and shows the declared routes, credential types, CLI commands, extension points, process roles, and requested public host APIs. This first step is staging only. The desired plugin set changes only after an explicit confirmation (--yes provides that confirmation in scripts).
The manifest is disclosure, not an in-process sandbox: installing a plugin does not grant its tools authority, and normal permission decisions still apply. Updates show additions and removals relative to the active release. Removal is staged and confirmed through the same flow. Older stored releases remain selectable, so installing a prior version provides rollback. After a confirmation, use Apply changes to synchronize the active set and restart the affected processes.
syrus plugin list prints each external plugin's version, source, trust label, and health. syrus plugin remove NAME requires confirmation. The admin API can also export and import syrus-plugins.lock.yml; it records name, version, digest, and source while the database remains canonical. Registry-sourced entries also record the registry name so imports preserve provenance when catalogs collide.
syrus plugin install NAME[@VERSION] uses a matching stored release when one is available, or resolves it across the enabled registry catalogs and downloads its HTTPS artifact and detached signature. Without a version, Syrus selects the highest indexed semantic version. Registry downloads use the same validation, signature verification, staging, and confirmation flow as uploaded archives.
Syrus enables its canonical plugin registry and the Admin → Plugins browser by default; administrators can disable it and configure additional registries. The CLI can still use SYRUS_PLUGIN_REGISTRY_URL to let syrus plugin search [TERM] query an HTTPS mirror or HTTPS Git URL directly. Catalog results identify their source, canonical collisions are preferred for bare installs, and ambiguous non-canonical collisions require an explicit source. Each registry has isolated trust and revocation data, and only the canonical registry can grant the official label. The legacy SYRUS_PLUGIN_REGISTRY_URL setting remains available to the instance as a read-only source. Results include trust labels, exclude revoked releases, and are filtered for the running or connected Syrus version. Network and malformed-index errors are reported without taking down plugin administration. Use syrus plugin install NAME[@VERSION] --registry REGISTRY to select an ambiguous source by registry name or ID.
Administrators can manage connected sources with syrus plugin registry list|add|remove|enable|disable. Adding a source requires confirmation (or --yes) and repeats the registry trust disclosure. Search accepts --registry NAME. syrus plugin publish --submit targets the canonical registry's GitHub repository by default; --registry NAME selects another configured GitHub registry, while --index-repository OWNER/REPO remains the explicit override.
Reading fleet convergence
Admin → Plugins compares the desired revision with every process heartbeat, but only while at least one enabled, externally synced (non-bundled) plugin is installed. Bundled plugins ship with the Syrus image and are not part of the desired set; on an installation that runs only bundled plugins there is nothing to converge, so heartbeat, revision, and digest differences are ignored and no convergence alarm is raised. Bundled plugin inventory and load health stay visible regardless. Converged means the process reports the role-specific desired digest. Pending restart means an applied revision has not started there yet; restart that process. Behind means it is running an older set without a current restart request; verify sync configuration and restart it. Ahead means the process is running a revision newer than this control plane; verify that it points at the correct database and manifest store. Unreachable means its heartbeat is stale; restore or replace the process before trusting its plugin state.
Each row lists the running version and local load state for every desired plugin, including role skips, load failures, missing plugins, and fleet quarantine. Rows that remain divergent longer than SYRUS_PLUGIN_DIVERGENCE_THRESHOLD_SECONDS (five minutes by default) are highlighted and produce the standard system alarm with a link back to Plugins.
Recovering from a broken plugin
Set SYRUS_SAFE_MODE=third_party to withhold external plugins, recent to withhold external plugins changed since the last good boot, or all to boot without plugins. Syrus core requires no plugin to boot. Safe-mode and quarantine reasons appear in Admin → Plugins and in the global admin warning.
Syrus records boot attempts outside the database. After three incomplete boots within ten minutes, it quarantines changed external plugins on the next start; a process that remains up for 60 seconds promotes its plugin set to last-good. Fleet quarantine from desired state takes effect on restart as well.
If the UI works, correct the plugin and choose Re-enable after restart one plugin at a time. If Rails does not boot, use bin/plugin-recovery list, bin/plugin-recovery quarantine NAME, and bin/plugin-recovery clear NAME. Restart after changes. Clear fleet quarantine in desired state, and remove SYRUS_SAFE_MODE only after the recovered process remains healthy.
What Plugins Can Add
Plugins can contribute:
- sidebar and admin navigation entries,
- repository tabs,
- React components bundled into the app,
- MCP tools for chat and workflow agents,
- server-backed CLI commands discovered by the
syrusCLI, - prompt context injectors,
- typed artifact renderers,
- preview providers,
- prepare detectors,
- grader augmentors,
- CI log parsers,
- dependency-audit commands,
- affected-test analyzers,
- execution backends for constrained process runs,
- source integrations such as GitHub or Linear,
- speech-to-text backends for chat dictation,
- batched badges and plugin-defined filters for chat search results.
The bundled Rails plugin's migration artifacts are execution-backed: it loads the workflow base schema into a disposable database, applies newly added migrations in order, and shows normalized before/after catalogs. Data-only migrations and artifact generation failures are labeled explicitly; environments without disposable-database support receive a clearly marked cumulative schema-dump comparison. The sandbox redirects every named application database to a distinct sandbox and supports both Ruby and SQL schema dumps.
Plugins can also declare stable credential type names for a credential-management plugin to discover. These declarations are intentionally metadata-only: a name such as k8s_cluster.kubeconfig, plus optional safe label and description text. Credential storage, encryption, payload parsing, authorization, broker materialization, redaction, and credential-use callbacks remain outside this hook.
Enabled plugins may publish non-interactive commands in the server command catalog. The CLI discovers nested paths such as syrus docs list, validates their declared positional arguments and flags, and asks Syrus to execute the plugin's Ruby handler as the authenticated API user. Commands return table, text, or JSON output; disabled or unhealthy plugins contribute no commands.
The core app should keep behavior that is required for Syrus to function. Plugins should be things that can reasonably be disabled, replaced, or distributed separately.
The optional Container Execution backend can use a repository's standard .devcontainer/devcontainer.json or .devcontainer.json as its seed image. With devcontainer support enabled, it pulls an image declaration or builds a build declaration for container-backed graders; Dockerfile builds require the Runtime Image Service and a configured OCI registry. They are published once, deduplicated across the fleet by repository revision and devcontainer fingerprint, and run by immutable digest rather than a worker-local tag. .syrus.yml prepare and grader configuration continues to run on top of that image. Repositories without a devcontainer and local execution keep their existing behavior.
Bundled Plugin Directory
The public plugin directory at /plugins is generated from the bundled plugin manifests, so it is the most complete browsable list. This snapshot calls out the launch-relevant groups:
| Group | Bundled plugins |
|---|---|
| Agent providers | Claude Agent, Codex Agent, Antigravity Agent, Muse Agent |
| Work inputs and planning | Walkthrough Videos, Scheduled Tasks, GitHub Source, Linear Source, Design Docs, Operator Briefing |
| Repository intelligence | Agent Insights, Agent Memory, Cognition Memory, Git History, Search, Test Insights, Throughput, Metrics Dashboard, Spending Insights, Attention Report |
| Language and platform support | Browser (Playwright), Django, Go, iOS, Java, JavaScript, Kotlin, Python, Rails, Ruby |
| Runtime and infrastructure | Git Mirror, GitHub Host, Kubernetes Cluster Viewer, Plugin Runtime, Tailscale, Terminal, Runtime Terminal, Worker Timeline, Build Cache, Local Backups, S3 Backup Destination |
Cognition Memory is an optional alternative memory-store provider. It uses the current user's brokered Cognition connected account to retrieve matched, human-approved Cognition skills for workflow prompts and chats. With a write-capable key, an explicit “remember this” request can also write through Cognition after the user confirms Syrus's invocation prompt. Existing and read-only credentials are not silently widened: reconnect with a write-capable key and disable read-only mode to enable writes. Each user connects and rotates their own key, then chooses Cognition or Agent Memory in Connected Accounts; the page reports account health and the operations each provider supports. Authentication or service failures degrade to no injected context. Only Cognition's confirmed saved outcome is reported as persisted; drafts, pending confirmations, and rejections remain unsaved. The plugin does not import Cognition material as Agent Memory, approve drafts, or claim unsupported backup, import, deletion, purge, or protected-review capabilities.
Achievements is a removable plugin that records neutral, plugin-owned milestones from domain events. Instance-wide milestones unlock once per installation; per-user accomplishments are credited only to the operator who started the work, never to automated work or incidental interaction. Each user acknowledges reveals separately and can replay one reveal or reset their own acknowledgments; an admin can reset everyone's acknowledgments after an explicit confirmation. Resets never delete unlocks or change their timestamps. Enabling the plugin does not backfill history: only events after enablement are evaluated, and any future backfill will be a separate explicit operation.
The plugin adds an Achievements page to the sidebar that shows instance milestones and your personal accomplishments separately, including locked ones (hidden achievements show only a placeholder), when each was earned, and a link to the Job or Epic that triggered it when you can open it. From there you can acknowledge or replay a reveal. A milestone tied to a Job is revealed the first time you open that Job and is acknowledged only once the reveal has actually been shown. Reveals respect reduced-motion settings, work with a keyboard and screen reader, and never play sound. The artwork is a neutral placeholder.
When the Syrus Dev plugin is also enabled, an admin-only Achievements Workbench appears under Admin. It lists every registered achievement definition, hidden ones included, and can be filtered by scope, category, rarity, trigger, hidden status, and implementation status. It previews synthetic fixtures (locked, unlocked, acknowledged, and reset) with the same badge, collection card, and reveal components the rest of the product uses, and can replay animation phases, play a stack of reveals, and switch between phone, tablet, and desktop widths and between system, reduced, and full motion. Sound testing is offered once reveals have sound. Discuss with an agent starts a chat with a screenshot (optionally annotated), a link back to the exact view, and the selected definition, state, viewport, and motion settings. Disabling either plugin removes the page; normal achievements keep working.
Local Backups can create sealed recovery bundles for installations that use an authoritative SQLite database and Disk Active Storage. It takes a consistent online database snapshot, streams and verifies every referenced blob, and atomically seals the completed bundle beneath SYRUS_BACKUP_ROOT. Missing or corrupt blobs and insufficient capacity fail without replacing earlier valid bundles. Capacity admission keeps the larger of an absolute free-space reserve (SYRUS_BACKUP_MIN_FREE_BYTES, default 1 GiB) or a percentage reserve (SYRUS_BACKUP_MIN_FREE_PERCENT, default 10%), in addition to construction space sized conservatively for roughly two complete bundles. Scheduling, retention, download, and restore are separate stages.
S3 Backup Destination is separately packaged and disabled by default. It streams completed Local Backups bundles through the public artifact-source contract into an S3-compatible bucket, verifies the remote bytes with SHA-256, and records destination-specific state without invalidating the local recovery point when replication fails. Operators can require a verified copy before local retention deletes an artifact.
Worker Timeline uses the shared composable filter bar and Smart Folders. Saved timeline expressions can combine supported fields with nested AND, OR, and NOT groups across workflow spans, pending workflows, and idle worker lanes.
The Kubernetes Cluster Viewer reports kubeconfig credential expiry in its admin cluster list. Operators rotate pasted tokens or client certificates by editing the existing connection and pasting a replacement kubeconfig, which keeps cluster identity and access settings intact. OIDC auth-provider kubeconfigs with refresh credentials renew automatically shortly before expiry; failures appear as a degraded credential state without exposing secret material. | Collaboration and UI | Agent Activity, Review Workspace, Review Notes, Credential Store, Discord, Mockups, Team Directory, Theming Tools, Whiteboard | | Data and admin tools | Admin MySQL, MySQL DB Browser, Alertmanager Investigations, Syrus Dev, Whisper speech-to-text |
The Design Docs plugin gives chat agents a grouped archive tool for multi-document cleanup. A single request can preview up to 100 DOC-N targets, report documents that are already archived, and present one operator confirmation with per-document results; the existing single-document archive tool remains available for one-off requests.
Design Doc suggestions reserve their selected range while they are pending. Another suggestion may start or end at the same boundary, but cannot overlap that active range until the existing suggestion is accepted or rejected. When reviewing an unrelated suggestion, Syrus repairs damaged or colliding pending anchors by marking those suggestions stale instead of blocking the review.
Whiteboard's high-level arrow tool creates connectors anchored to the visible edges of rectangles, stickies, ellipses, and diamonds. Optional arrow labels render as bound text and move with the connector, while raw scene updates remain available for advanced Excalidraw geometry.
Metrics Dashboard records the same bounded metrics exposed to Prometheus. Its feature-usage and admission-decision counters combine increments from every web and worker process into monotonic shared totals. If that cross-process snapshot is unavailable or stale, those charts omit new readings and show an operator warning instead of presenting the recorder process's local zero as complete. Raw one-minute samples are retained for seven days—the longest window the dashboard plots—and a daily recurring task prunes older rows.
MySQL DB Browser connections inherit access from their Credential Store scope: user, repository, team, or instance. New connections default to the creating user, while existing instance-scoped connections remain shared until an admin narrows them. Legacy embedded passwords are admin-only until migrated by re-entering the password in the connection editor.
Admin MySQL and Browser publish scoped agent-permission boundaries. Admin database observation is distinct from exact-invocation query interruption. Browser observation, loopback navigation, interaction, JavaScript evaluation, upload, and session close are separate capabilities; evaluation and upload ask per invocation. Loopback-only navigation, exact upload paths, admin and repository checks, and Coding Mode input leases remain hard safety ceilings.
Credential Store SSH tools publish unified permission metadata evaluated from arguments before credential resolution. Interactive chat requests can be allowed once, for that chat, or permanently until revoked. Every grant is scoped to a destination, which may be one exact address or a deliberately broader prefix of it — every user on a host, every host reachable with one credential — while the command is bound by a stable fingerprint. Read-only diagnostics and risky commands are classified separately and never share authority. Existing credential scope, destination and host-key checks, redaction, auditing, and short secret-material leases remain non-overridable ceilings. Runtime CLI wrappers continue to require authenticated Syrus invocation context and explicit authorization for operator-host or risky execution.
Provider copy on the homepage and FAQ should use the adapter display names from plugins/*/lib/*.rb and AgentProviders::*#display_name, not hand-rolled model names. As of this release, the provider adapters are Claude Code, Codex, Antigravity, and Muse Code.
Installed vs Enabled
Installed means the plugin's code, migrations, translations, and frontend assets are present. Enabled means Syrus uses the plugin at runtime. This lets operators install a plugin during deployment but turn it on only for the repositories or users that need it.
Some plugins may be non-disableable because they provide core surfaces for a given distribution. Most should be disableable.
Some bundled plugins are marked experimental. They remain visible in Admin -> Plugins and are still part of the installed Syrus build, but a self-hosted instance must enable beta mode before enabling them. When an experimental plugin is disabled and beta mode is off, the Admin Plugins page shows an Experimental badge and an Enable beta mode action. The same server-side guard applies to API calls and dependency cascades, so a stable plugin cannot be enabled if that action would also turn on an experimental dependency. Beta mode does not enable any plugin by itself; it only allows admins to explicitly turn on beta or experimental capabilities.
A disabled plugin is not loaded. Its code stays resolvable, so enabling it takes effect immediately without a restart, but Syrus does not pay to load features nobody can reach. Migrations are the exception and always run at deploy time regardless of enabled state, so enabling a plugin finds its tables ready.
Disabling a plugin stops it doing work; it does not throw away the data it already wrote. That data is still cleaned up when its owner is -- deleting a repository still takes its plugin rows with it, whether the plugin is on or off.
Suggested Plugins
Syrus can tell you a plugin is worth turning on before you go looking for it. A plugin can declare what its own signal looks like, and Admin -> Plugins shows the ones this instance appears to want, with the evidence behind each: how many of your repositories are Python, which repositories have a resolvable Django settings module, whether you are running more than one worker host, or whether you are on MySQL. Plugins you have already enabled are never suggested, and a suggestion with no evidence behind it is not shown at all.
The repository side of this is observed while Syrus already has a clone in hand, during a normal run, so a repository Syrus has never worked on produces no suggestion.
Plugin Data
Plugins can own database tables. When they do, table names and model namespaces should make ownership obvious, such as linear_tickets for Linear::Ticket. Plugin migrations should avoid surprising global changes and should follow the same no-foreign-key policy as the rest of Syrus.
MCP Tools
Workflow and chat agents see tools through toolsets. A plugin should expose a toolset as the registration point, but individual tools should stay small and separately testable. Good tools have narrow inputs, clear side effects, and structured results.
Every new agent-callable tool definition must include an explicit capability descriptor. Versioned capability and operation identifiers, aliases retained after renames, side effects, eligible-role defaults, autonomy limits, and resource scope form its stable authorization contract. CI rejects missing or conflicting definitions and identifies the provider, surface, and tool that needs correction. A plugin may keep its older bundled definitions on a frozen, manifest-owned compatibility baseline while they are migrated; core does not carry plugin provider names or inventories, and that baseline cannot grow. Typed resource scopes are provider-defined through a shared schema contract. Providers apply the caller's normal resource visibility during lookup; hidden and unknown identifiers receive the same result. Syrus canonicalizes and validates normalized scopes and treats any lookup or normalization failure as a closed authorization outcome. Resource schemas may additionally return user-scoped authoring choices so the Permissions Hub can offer visible resources by safe label instead of asking for database identifiers. Those choices are presentation only; lookup and validation still enforce visibility when authority is saved or used.
Plugin authors can expose reusable permission metadata through a permission_provider. The provider registers typed resource scopes and complete capability operations, including effects, classifiers, redactors, stable fingerprints, eligible-role recommendations, requestability defaults, autonomy ceilings, and supported authority durations. Tool definitions reuse the registered immutable descriptor instead of copying policy. Conflicting operation or resource-type registrations fail closed, and a disabled plugin's permission metadata is absent from the active catalog. Registration describes what may be requested; it does not grant authority when a plugin is installed or enabled.
Permission providers declare deterministic scope migrations when a new operation version changes the normalized resource shape. Upgrade validation rejects silent key removal, reuse of a retired identifier, and broader effects, roles, defaults, autonomy, duration, or risk under an existing identity. A renamed key must remain an alias; an intentionally removed key stays reserved through an explicit retirement declaration.
MySQL DB Browser uses this contract to scope connection, database, table, query, schema, and administrative access independently. Its SQL classifier distinguishes reads, data writes, schema changes, and administrative effects; uncertain statements receive the maximum critical-risk classification. Query authority is limited to one invocation, fingerprints normalize harmless SQL whitespace, and authorization displays redact the SQL text. Its read-only and query-operator presets remain inert until an operator confirms them.
Kubernetes Cluster Viewer separates ordinary observation, secret metadata, workload operations, node administration, and raw kubectl authority. Rules can target a cluster, namespace, resource kind, or individual object. Observation may be bounded to a Job and secret metadata to a chat session; mutations and raw commands require exact-invocation authority. Existing per-cluster agentic and write toggles remain ceilings and never grant these capabilities by themselves.
Permission-provider authors can run Permissions::ProviderTestKit in their RSpec suite. A small adapter supplies real provider probes for normalization, redaction, hidden and unknown resources, uncertain classification, provider or resource ceilings, descriptor upgrades, and plugin installation. The shared suite reports the capability operation or resource scope that violates the contract and verifies that installing or enabling the plugin creates no rules or leases. Probes must exercise the plugin's real lookup and lifecycle paths, not return a hand-built answer.
Providers can also register named permission presets made from complete rule templates. A preset may render several role-, operation-, resource-, and constraint-specific drafts. Syrus shows every rendered rule for operator confirmation and creates the rules only after that confirmation. Role defaults and presets are recommendations only: installing, enabling, configuring, or migrating a plugin never applies them automatically.
Tool usage is logged so operators can see which tools are active, failing, or worth consolidating.
UI Contributions
Admin and repository pages are discovered from plugin declarations. Disabling a plugin hides those pages, but the compiled JavaScript can remain part of the app bundle. This keeps runtime enable/disable simple while still allowing plugin pages to use normal React components.
Dependencies
Plugins may depend on other plugins. If a dependency is disabled, Syrus should warn or cascade-disable dependent plugins rather than exposing a broken UI surface.
Authoring Guidelines
Plugins that create Jobs with output intended for only some members of a shared repository can register a job_visibility_restriction. The provider names one Job origin and returns the origin IDs visible to the current user. Syrus combines that restriction with normal repository access everywhere Jobs are listed, searched, counted, or opened. Unrestricted origins behave exactly as before, while instance admins retain their existing global access.
User-facing plugin code must use Job.visible_to(user) too, including plugin pages, APIs, search sources, and MCP tools. Direct Job.where(origin: ...) queries are reserved for the owning plugin's background lifecycle work. Full provider signatures and an example are in the in-app Plugins documentation.
Keep plugin boundaries crisp:
- put plugin-specific tests with the plugin,
- namespace plugin models,
- prefix plugin-owned tables,
- use extension points instead of monkey-patching core behavior,
- make runtime disablement leave the rest of Syrus usable,
- keep the core test suite free of plugin specifics, so removing a plugin
entirely leaves a passing suite rather than a red one.
Review features can contribute a generic review gate instead of changing core workflow builders. A gate chooses the stable post-agent slot, declares before/after ordering, enablement and loop budget, its repair relationship, step/prompt/tool providers, verdict evidence, failure policy, and optional panel support. Syrus validates the graph, preserves contribution metadata with the Workflow, and stops scheduling later plugin-owned review iterations if the plugin is disabled.
Syrus checks the last two by actually removing a plugin: bin/plugin-boundary-audit <plugin> copies the checkout, deletes that plugin plus everything that depends on it, and runs a command of your choosing — a boot check by default, or the full test suite — against what is left.
Connected account providers
Service plugins can contribute an account connection through the hosted connected_accounts:provider extension point. The provider declaration owns its stable key and display name, callback route, read-only support, capability list, and scope catalog. Each scope declares its provider key, human label, risk (low, medium, high, or critical), and the Syrus capabilities it enables.
provides "connected_accounts:provider" => [
{
provider: "ExampleService::AccountProvider",
key: "example",
display_name: "Example Service",
capabilities: %w[authorization exchange_code refresh revoke identity validate events],
callback_route: "/connected_accounts/callback/example",
supports_read_only: true,
scopes: [
{
key: "records.read",
label: "Read records",
risk: "low",
syrus_capabilities: [ "records.read@v1" ]
}
]
}
]
Every provider capability is a class method taking one context object. The required methods and their result contracts are:
| Capability | Context fields | Result |
|---|---|---|
authorization | redirect_uri, opaque state, requested_scopes, read_only | authorize_url |
exchange_code | callback code, original redirect_uri | Token hash with access_token, plus refresh_token and expires_in when supplied |
refresh | current tokens hash | Replacement token hash with access_token |
revoke | current tokens hash | Boolean revoked |
identity | access_token | Human-readable external identity label |
validate | access_token | Boolean healthy and a safe, non-secret message |
events (optional, provisional) | request headers, raw request body | Verified event_id, event_type, and normalized data |
authorization, exchange_code, refresh, revoke, identity, and validate are required. API-key and password providers use the same contract with a trivial authorization implementation. Declare authorization_kind: "token" to expose the administrator-only token-entry UI. The broker validates the submitted token before storing it, never returns it to the UI, and creates an instance-owned account restricted to as_service. A token provider pins its API origin in the manifest (configuration: { api_origins: [ "https://api.example.com/v1/" ] }), which becomes the credential's target constraint, and its identity result becomes the account's default label. Providers extend ConnectedAccounts::SystemServiceProvider for the binding plumbing, and read the token inside system_invoke only through the block-scoped access.with_token. A provider may also declare exact system_service_identities and implement register_system_access(identity, binding), or core may register the identity and implementation. The broker injects an opaque binding into the registered service; only that binding can open a block-scoped lease, and each use is audited. The broker calls the service's fixed system_invoke(context) implementation and never yields credential access to caller-supplied code. An identity string alone grants nothing. The system path cannot use user-owned accounts or act as a general plugin credential bypass. Installed in-process plugin code remains trusted and is not a sandbox boundary. Providers that declare events must verify authenticity and fail closed before normalizing a push. Token-bearing exchange_code and refresh results are returned only to the Connected Accounts broker. Providers must not log token material or include it in exceptions, user-visible output, or other external results.
Syrus rejects malformed declarations and providers with missing or invalid method signatures at load time, with the reason visible in plugin health. Provider authors can require connected_accounts/provider_test_kit and run the shared "a connected accounts provider" RSpec examples. The bundled fake provider is the reference implementation used by development and tests.
Service plugins register concept-level capabilities such as mail.read@v1, not provider endpoint names, and keep acting identity explicit in the connected_account resource scope. Split authority at least into read/search, draft or private creation, actions that affect other people, delete, and administration. Send/share/invite and similar outward operations default to asking for exact-invocation authority. Service-specific mailboxes, calendars, drives, channels, or comparable selectors belong in the scope's typed sub_resources object rather than in the capability name.
The bundled, experimental Mail and Personal Calendar concept plugins provide the read-only reference pattern. They are disabled by default. Mail adapters implement keyed, provisional search and read_message capabilities; personal-calendar adapters implement keyed, provisional list_events and get_event capabilities. The personal-calendar name deliberately distinguishes account calendars from Syrus's operations Calendar plugin.
The bundled, experimental google_workspace adapter depends on Connected Accounts, Mail, and Personal Calendar. It supplies authorization-code OAuth with PKCE, offline refresh, identity and health checks, revocation, read-only Gmail search/message reading, and Google Calendar list_events and get_event operations. Gmail and Calendar permissions are separate opt-in scopes; a Calendar-only connection has no Gmail access, and reauthorization can add a scope without disconnecting. Gmail bodies are converted to bounded plain text, while attachments are listed by name, type, and size without being downloaded. Instances supply their own Google OAuth client credentials; endpoint and scope settings remain pinned. Gmail read access is a restricted scope. Operators should check Google's current verification and restricted-scope policies rather than rely on policy details embedded in Syrus documentation.
Both concept plugins select a connected account explicitly, request only their read scope through the account broker, and require an authorized invocation. Adapters receive short-lived access rather than stored token material. The concept layer labels returned data external_untrusted, removes markup, writes oversized bodies and fetched attachment content to workspace files, and keeps metadata-only attachment listings in context without downloading them. Adapter tests can use the bundled fake adapters without network access; their plugin docs describe the context and result shapes.
Data removal is a separate, explicit operation after uninstall. Operators can preview it with bin/rails 'plugin:data[name]' and confirm it with bin/rails 'plugin:purge[name]'. Purge removes declared plugin tables, plugin-owned rows and fields stored on shared tables, and contributed external resources; disabling or uninstalling alone retains all of them. Credential Store contributes cleanup for credentials in the purged plugin's type namespace and their access-audit rows, even after that plugin's code has been removed.
Bundled plugins can also declare config/plugin_ownership.yml, covering their configuration keys, workflow vocabulary, routes, data, tools, frontend contributions, documentation, and domain terms. A checked-in compatibility quarantine records existing core vocabulary as per-file baseline counts. Boundary checks report new files, increases, and decreases as nonblocking shadow-mode trends; developers do not update counts merely to make CI pass. String counts are inventory rather than proof of architectural ownership, so the subtraction command reports them separately from physical removability. Enforcement is disabled by default and requires a later explicit operator decision.
Capability families
Families group related optional contributions into a documented contract. A plugin names one or more provider classes and declares the stable capabilities each class implements; experimental capabilities use the explicit provisional list. Syrus can show these declarations without loading plugin code, never invokes an undeclared capability, and excludes disabled plugins.
Every capability specifies its stability tier, input context, absent behavior, and composition rule (collect, broadcast, first_claim, or keyed). Providers implementing a keyed capability also declare their selector with key:, keeping provider selection manifest-only and lazy. Operators can inspect declarations on the plugin's Admin detail page or with syrus plugin capabilities without loading provider classes. Enabled providers are checked when plugin health is first resolved after boot. Non-conforming family declarations are withheld without disabling unrelated features, while disabled plugins stay unloaded. Both surfaces show the precise conformance failure.
Core calls family capabilities through one dispatcher and passes an immutable context object. Providers accept that object as one positional argument and read only the fields they need. The initial contexts cover repository, workspace, grader, and Job calls. Context fields are additive, so a provider keeps working when a later Syrus release supplies more context.
The dispatcher applies the declared composition and absent behavior, records timing, and contains provider crashes, timeouts, and open circuits as neutral declines or empty contributions. Missing keyed providers and deliberate provider validation failures remain typed, caller-visible errors rather than being reported as plugin crashes.
Execution Backend Contract
Execution backends use the stable, versioned Execution::Backend contract. Version 1.0 requires implementations to preserve read/write mount modes, enforce the requested network profile, translate memory, CPU, and I/O limits, make the persistent MCP daemon reachable through the advertised socket, and reject malformed requests consistently. When a provider declines a request, Syrus tries the next provider and ultimately falls back to local execution.
Syrus ships Execution::BackendTestKit, a transport-neutral RSpec conformance suite. An in-tree or closed-source backend supplies a small adapter that runs the real backend and reports a normalized observation of its transport. This lets the same assertions cover local processes, containers, and private execution systems without exposing backend internals. The operator guide contains the adapter API and invocation example.
Background jobs
Subclass PluginJob and declare plugin :your_plugin for plugin-owned background work. Jobs use plugin_your_plugin by default, including jobs from external plugins, and share a default concurrency cap of two. Pass concurrency: 5 to raise that cap, or use queue_as when a job genuinely requires a specialized worker queue. The cap uses a renewable 15-minute lease, so long-running jobs remain limited while abandoned slots recover. Plugins with an unusual recovery window can pass concurrency_duration: 30.minutes.
Ordinary failures retry five times with polynomial backoff. After the final attempt, Syrus discards the job and records the error in plugin health. Queue depth, failed executions, and discarded-job counts are visible on the admin Queue and Plugins pages.