npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-swarm

v7.206.0

Published

Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review

Readme

OpenCode Swarm

An OpenCode plugin that runs coding tasks through an architect-led team of agents and marks a task done only after review and tests pass.

npm version License: MIT CI

Website · Docs · Getting Started · Configuration · Architecture

OpenCode Swarm is a plugin for OpenCode. A single coding session becomes a team: an architect agent plans the work and delegates each task to specialized agents. One agent writes the code, a different agent reviews it, and a test engineer writes and runs tests. Static analysis (SAST), secret scanning, and dependency audit run as per-task tool steps. A task counts as done only when its required gates pass.

Install

bunx opencode-swarm install

The npm alternative:

npm install -g opencode-swarm && opencode-swarm install

Requirements: Bun 1.3.13 or newer, or Node.js 22.13 or newer. Supported hosts are OpenCode 1.x (1.18.29 or newer recommended) and OpenCode 2.x; see Host support.

The installer registers the plugin in the OpenCode config, disables OpenCode's native explore and general agents, and creates the global plugin config at ~/.config/opencode/opencode-swarm.json if it is missing. A project-level .opencode/opencode-swarm.json is optional: create it only to override the global config for one project.

Fresh installs select the Swarm architect automatically (auto_select_architect: true); otherwise select it in the OpenCode agent or mode picker. If another agent is active, the Swarm gates, reviewers, and test agents are bypassed. The architect coordinates the other agents, so you never switch between them yourself.

To check the install and run a first task:

  1. Open opencode in your project and confirm a Swarm architect is selected.
  2. Run /swarm agents to list the registered agents, and /swarm diagnose for a health check.
  3. Describe a task, for example "Build me a JWT auth helper with tests."
  4. Follow progress with /swarm status.
  5. Inspect the recorded test and review results with /swarm evidence.

Getting Started walks through a first run in about 15 minutes, including troubleshooting.

Example workflow

You say:

Build me a JWT auth system.

Swarm then:

  1. Asks clarifying questions if the request is ambiguous.
  2. Scans the codebase to see what already exists.
  3. Consults the SME agent when domain knowledge is needed, and caches the guidance in .swarm/context.md.
  4. Writes a phased implementation plan.
  5. Sends the plan through the critic before any code is written.
  6. Runs each task through the QA pipeline. Tasks whose declared scopes are disjoint can run concurrently in isolated worktrees; otherwise tasks run one at a time:
    • The coder writes the code.
    • Automated checks run.
    • The reviewer checks correctness.
    • The test engineer writes and runs tests.
    • The architect runs a regression sweep.
    • Failures loop back to the coder with structured feedback.
  7. After each phase, updates docs and writes a retrospective.

With Epic Mode on, each phase runs as waves of conflict-free tasks; see Execution modes.

All project state lives in .swarm/. If .swarm/ already exists, the architect resumes from it instead of repeating discovery.

Features

Swarm assigns planning, implementation, review, testing, and documentation to separate agent roles and gates each step. Agents change the codebase in parallel only when their declared file scopes are disjoint, and each parallel agent works in its own git worktree.

  • Agent team: an architect plus specialized agents, listed under Agents.
  • Gated pipeline: each task is reviewed and tested before it counts as done, and phase completion has its own gates (Quality gates).
  • Whole-diff review: /swarm review runs a bounded whole-diff review in a fresh read-only session and records structured findings as evidence. Configured with auto_review; see configuration.
  • Execution modes: Balanced, Turbo, Lean Turbo, Full-Auto, and opt-in Epic Mode (Execution modes).
  • Resumable sessions: plans, evidence, and context are saved in .swarm/, so a project can be resumed later (What Swarm stores).
  • Security checks: SAST, secret scanning, and dependency audit per task, plus shell write detection and scope enforcement (Shell write detection).
  • Knowledge and memory: lessons are kept per project and can be promoted across projects (knowledge, memory).
  • General Council: advisory agents (council_generalist, council_skeptic, council_domain_expert) that discuss a question, optionally on different models and with web search through Tavily, Brave Search, SpecStream, or the keyless Keenable provider (council docs). Web search calls external APIs only when you enable it and supply a key, except the keyless Keenable provider.
  • Deep dive: a read-only codebase audit with parallel explorers (/swarm deep-dive).
  • Skills: generated skills (skills), external skill curation (configuration), and governed optimizers for skills and the harness (skill optimizer, harness optimizer).
  • Forges: GitHub and GitLab pull request review, feedback, and CI monitoring through gh and glab (/swarm pr-review, GitLab CLI).
  • PR monitor: opt-in background polling of subscribed pull requests (configuration).
  • GitHub Action: the swarm-implement.yml workflow runs the gated implementation pipeline for an issue labeled swarm:implement, or from workflow_dispatch with an issue reference (CI docs).
  • Free models: OpenCode Zen models such as opencode/big-pickle need no API key.
  • Configurable: set any agent's model, disable agents, and tune guardrails (Configuration).
  • Languages: 13 language profiles with tree-sitter parse validation (Supported languages).

Execution modes

Swarm has two independent mode systems.

Session modes are switched per session with slash commands:

| Mode | What it does | When to use | |------|--------------|-------------| | Balanced (default) | Runs every gate. | Everyday development. | | Turbo | Skips the phase-level phase_complete gates and the todo gate; per-task QA still runs (details). | Fast iteration on non-critical code. | | Lean Turbo | Runs non-conflicting tasks as parallel lanes, configured under turbo.lean.*. | Phases with many independent tasks. | | Full-Auto | Applies a deterministic permission policy and sends risky actions to critic_oversight. | Unattended runs. | | Epic (opt-in) | Runs one plan as an epic, issuing each phase as parallel waves of tasks with disjoint scopes. | Large plans with many independent tasks. |

Switch with /swarm turbo [on|off], /swarm turbo lean on (with turbo.strategy: "lean" in config, a bare /swarm turbo on also starts Lean), /swarm full-auto [on|off], or /swarm epic start|close. /swarm auto-proceed [on|off] controls whether the architect asks "Ready for Phase N+1?" at phase boundaries. It is off by default, can be set as a plan default through execution_profile.auto_proceed, and is independent of Full-Auto.

Full-Auto allows safe operations without asking: read-only tools, in-scope writes, and safe shell commands. It routes ambiguous or high-risk actions (writes to plugin, build, or guardrail paths; network access; dependency changes; plan or phase mutations; subagent delegation) through the read-only critic_oversight agent first. Denials return to the agent as structured signals, repeated denials pause the run, and phase completion requires an APPROVED oversight record. See Full-Auto for the config keys, fail-closed behavior, and recovery from a paused run.

Epic Mode needs epic.mode.enabled: true. It binds to the current plan, and a human opens it with /swarm epic start; an agent cannot start one. While an epic is open, epic_next_wave issues each phase as waves of conflict-free tasks, and the same per-task QA pipeline runs inside every wave. When a phase is done, epic_phase_review runs a reviewer and a critic over the whole phase before phase_complete. In a git project each coder works in an isolated worktree on an epic branch, and /swarm epic close squash-lands the work as staged changes. See Epic Mode, and src/epic/README.md for maintainers.

Turbo and Lean Turbo do not combine with an open epic: /swarm epic start refuses while Turbo is on or a Lean run is active, and /swarm turbo refuses to enable either while an epic is open. Turbo and Lean Turbo can be combined with Full-Auto. See Combining modes.

Project mode is persistent and set with the execution_mode config key:

| Value | Effect | |-------|--------| | strict | Adds the slop-detector and incremental-verify hooks, and selects the strict planning ceremony as the default. | | balanced (default) | Standard hooks. | | fast | Skips the compaction service, for short sessions under context pressure. |

See docs/modes.md for the full mode reference.

Commands

Common commands:

/swarm help [command]      List commands, or show help for one command
/swarm status              Current phase and task
/swarm show-plan [N]       Full plan, or one phase
/swarm agents              Registered agents and their models
/swarm diagnose            Health check
/swarm evidence [task]     Test and review results
/swarm review              Whole-diff review of the working tree or a range
/swarm epic status         Open epic, current wave, landing state (Epic Mode)
/swarm reset --confirm     Clear Swarm state

Nine subcommands share names with Claude Code built-in slash commands, such as /plan, /reset, and /status. In a host that also loads Claude Code commands, the bare form runs a different command, which can be destructive, so always type /swarm <command>. /swarm help marks these nine with a warning. See Claude Code command conflicts. The full reference is docs/commands.md, generated from src/commands/registry.ts.

Agents

The architect delegates to the agents below. /swarm agents lists the ones registered in your session. The designer, the design-doc author, and the council agents are registered only when ui_review.enabled, design_docs.enabled, or council.general.enabled is set. The roster comes from ALL_AGENT_NAMES in src/config/agent-names.ts.

| Agent | Role | |-------|------| | architect | Plans the work, delegates tasks, and enforces the gates. | | explorer | Scans the codebase and reports facts. | | coder | Implements one task. | | reviewer | Checks a change for correctness and vulnerabilities. Also reviews a whole phase under Epic Mode. | | test_engineer | Writes and runs tests, including adversarial tests. | | critic | Reviews the plan before implementation. Also challenges a whole phase under Epic Mode. | | critic_finding_validator | Confirms or disproves candidate review findings in a fresh context. | | critic_oversight | Acts as the quality gate in Full-Auto mode. | | critic_sounding_board | Pushes back on the architect's reasoning before escalation. | | critic_drift_verifier | Checks that each task in a completed phase was implemented as specified. | | critic_hallucination_verifier | Checks that referenced APIs exist. | | critic_architecture_supervisor | Reviews a phase's compressed summaries for system-level inconsistencies. | | sme | Gives domain-specific technical guidance. | | researcher | Gathers and cites information from the web, GitHub, documentation, and code search. Read-only. | | docs | Updates documentation to match the implementation. | | docs_design | Generates and maintains language-agnostic design documents. | | designer | Writes UI design specifications. | | curator_init | Consolidates prior session knowledge into a briefing at session start. | | curator_phase | Consolidates a completed phase into a digest. | | curator_postmortem | Writes a project post-mortem from .swarm/ evidence. | | curator_consolidation | Distills clusters of episodic memory into durable facts. | | council_generalist | Gives a broad, synthesizing view in the General Council. | | council_skeptic | Stress-tests assumptions in the General Council. | | council_domain_expert | Gives a technically deep, domain-specific view in the General Council. | | skill_improver | Reviews knowledge, skills, the spec, and the architect prompt, and proposes improvements. | | spec_writer | Produces or revises .swarm/spec.md. |

LLM providers

Swarm works with any provider that OpenCode supports. Model IDs change over time, so check your provider's current list. The IDs in this README are examples.

OpenCode Zen needs no API key. A minimal free setup:

{
  "agents": {
    "reviewer": { "model": "opencode/big-pickle" },
    "explorer": { "model": "opencode/big-pickle" }
  }
}

Provider formats:

| Provider | Format | Example | |----------|--------|---------| | OpenCode Zen | opencode/<model> | opencode/big-pickle | | Anthropic | anthropic/<model> | anthropic/claude-sonnet-4-20250514 | | Google | google/<model> | google/gemini-2.5-flash | | Z.ai | zai-coding-plan/<model> | zai-coding-plan/<model> | | MiniMax | minimax-coding-plan/<model> | minimax-coding-plan/<model> | | Kimi | kimi-for-coding/<model> | kimi-for-coding/<model> |

The architect's model is chosen in the OpenCode UI. For the other roles, using a different model for the reviewer than for the coder helps, because the two models have different blind spots.

Model fallback

Set fallback_models to switch to another model when a request fails with a transient error, including provider quota exhaustion such as a 429 quota exceeded limit:

{
  "agents": {
    "coder": {
      "model": "anthropic/claude-sonnet-4-20250514",
      "fallback_models": ["google/gemini-2.5-flash"]
    }
  }
}

Fallback applies to dispatched subagents and to interactive primary sessions. For a primary session, the next message after a fallback-eligible failure uses the fallback model, and that model stays in use until the session ends, 30 minutes pass without a message, or the configured model chain changes. Each fallback is announced by a MODEL FALLBACK: advisory. See Model preflight and fallback for the full behavior.

Upgrading

OpenCode caches plugins and does not fetch a newer version from npm when it restarts. To upgrade, refresh the cache and restart OpenCode:

bunx opencode-swarm update     # cache-only refresh
bunx opencode-swarm install    # full reinstall, re-asserts config

/swarm diagnose shows the running version and the latest version on npm. To turn off the background staleness check, set version_check: false in opencode-swarm.json. The cache locations that are cleared are listed in Upgrading and the plugin cache.

Advanced topics

Process remediation (PRM)

PRM monitors agent trajectories and injects guidance before loops form. It detects five patterns: repetition loop, ping-pong between agents, expansion drift, being stuck on a failing test, and context thrashing. Escalation has three levels: an advisory, an alert to the architect, and a hard stop. Thresholds, the escalation ladder, and the hard-stop state machine are in configuration.

What Swarm stores in .swarm/

  • plan-ledger.jsonl and plan.json: the plan. The ledger is the durable record; plan.json is derived from it. See plan durability.
  • context.md: technical decisions and cached SME guidance.
  • evidence/: review and test results per task.
  • telemetry.jsonl: session observability events. Writing them does not block execution.
  • curator-summary.json: phase-level summaries and drift reports.
  • memory/: the memory database. See memory.
  • epic/ and epic-prior/: Epic Mode state. epic-prior/ holds the learned project prior and past reports, and survives /swarm finalize.

Guardrails

Every agent runs under a circuit breaker. The base limits per agent window are 200 tool calls, 30 minutes, 10 repeats of the same tool, and 5 consecutive errors (guardrails.*). Built-in per-role profiles override them:

| Role | Tool calls | Minutes | Consecutive errors | |------|-----------:|--------:|-------------------:| | architect | unlimited | unlimited | 8 | | coder, test_engineer | 400 | 45 | 8 | | reviewer | 200 | 30 | 8 | | explorer | 150 | 20 | 8 | | designer | 150 | 20 | 5 | | critic, sme, docs | 200 | 30 | 5 |

Override any value per role under guardrails.profiles.<role>. A top-level guardrails value does not change a field for a role whose built-in profile sets it. See Guardrails core limits and per-agent override fields.

File authority

Each role can write only to specific paths. The defaults, from src/hooks/guardrails/file-authority.ts:

  • architect: anywhere except .swarm/plan.md, .swarm/plan.json, generated and config zones, and linter and formatter configs.
  • coder: anywhere except .swarm/ and the generated and config zones.
  • reviewer: .swarm/evidence/ and .swarm/outputs/ only.
  • test_engineer: test directories and test-file naming conventions at any depth, and .swarm/evidence/.
  • docs, docs_design, designer: docs/, Markdown and RST files, and .swarm/outputs/.
  • critic: .swarm/evidence/.
  • critic_oversight, critic_finding_validator, curator_init, curator_phase, curator_postmortem, curator_consolidation, skill_improver, and spec_writer: no direct writes. They change state only through dedicated tools.
  • Read-only: explorer, sme, researcher, critic_sounding_board, critic_drift_verifier, critic_hallucination_verifier, critic_architecture_supervisor, and the council_* agents.

Override with authority.rules. See file authority defaults.

Shell write detection

Agents can write files through shell commands as well as through the write tools, so Swarm analyzes a shell command before it runs. It finds the file writes the command would perform (redirects, in-place editors, downloads, archive extraction, and similar) in POSIX shells, PowerShell, and cmd.exe, and applies the same scope and file-authority checks it applies to direct writes. It also denies commands that open interactive sessions and blocks destructive commands. The analysis is static: it reads the command text and is not an operating-system sandbox. A coder's declared scope is stored in .swarm/swarm.db, so separate processes resolve the same scope. Scope enforcement also covers array path arguments (files[], paths[], targetFiles[]). See Shell write detection for what is detected, what is blocked, and how scope expiry works.

Quality gates

These tools check each task locally. No Docker is required.

| Tool | Description | |------|-------------| | syntax_check | Tree-sitter parse validation across the configured languages. | | placeholder_scan | Finds TODOs, FIXMEs, stubs, and placeholder text. | | sast_scan | Offline static security analysis; uses Semgrep as well when it is on PATH. | | sbom_generate | Generates a CycloneDX dependency inventory. | | build_check | Runs the project's native build and typecheck commands. | | quality_budget | Enforces complexity, duplication, and test-ratio limits. | | pre_check_batch | Runs lint, secret scan, SAST, and the quality budget in parallel. | | mutation_test | Opt-in mutation-testing gate that measures the test kill rate. | | phase_complete | Commits a phase only when every applicable gate still passes. | | epic_phase_review | Epic Mode: requires an approved phase reviewer and phase critic before phase_complete. |

The full tool contracts are in architecture. Enable or tune a gate under gates.*; see installation.

Context management

Context budget

The context budget guard compares the tokens in the whole conversation with the model's context window. It is on by default.

  • At 70% of the window (warn_threshold), the architect gets an advisory to offload a summary to .swarm/context.md.
  • At 90% (critical_threshold), the architect gets a critical alert that recommends /swarm handoff. With enforce: true (the default), the guard also masks completed tool outputs and prunes lower-priority messages toward prune_target. A tool output is eligible for masking when it is older than recent_window turns or longer than tool_output_mask_threshold characters, outside the turns that preserve_last_n_turns protects.
  • Masking and pruning change only the outgoing request. Stored history, .swarm/ artifacts, and tool results on disk are not rewritten, and execution is never blocked.
  • The window comes from a model_limits entry if you set one, otherwise from the context window the OpenCode host reports for your live model, then a static table, and 128000 as the last resort. Set a model_limits entry only to impose a smaller budget.
  • Disable it with context_budget.enabled: false. Architects can call the context_status tool to read the current headroom.

Config keys, the scoring sub-configuration, and examples are in configuration.

Plan cursor

The plan_cursor block replaces the full plan in the injected context with a compact cursor.

{
  "plan_cursor": {
    "enabled": true,
    "max_tokens": 1500,
    "lookahead_tasks": 2
  }
}
  • enabled: default true.
  • max_tokens: default 1500, range 500 to 4000.
  • lookahead_tasks: default 2, range 0 to 5. Set 0 to show only the current task.

See Plan cursor.

Tool output truncation

Large tool outputs are truncated to a head and a short tail. To change the limits, add a tool_output block:

{
  "tool_output": {
    "truncation_enabled": true,
    "max_lines": 150,
    "per_tool": {
      "diff": 200,
      "symbols": 100
    }
  }
}
  • Truncation runs only when a tool_output block is present in your config.
  • truncation_enabled: default true.
  • max_lines: default 150, range 10 to 500.
  • per_tool: per-tool line limits. They apply only to tools that are being truncated.
  • truncation_tools: the tools to truncate. The default set is diff, symbols, bash, shell, test_runner, lint, pre_check_batch, complexity_hotspots, pkg_audit, sbom_generate, and schema_drift.

A truncated output keeps the head lines and the last 10 lines, with a footer that points to /swarm retrieve <id> for the full content. See Tool output truncation.

Summarization

To change when outputs are summarized, set summaries.threshold_bytes:

{
  "summaries": {
    "threshold_bytes": 16384
  }
}
  • threshold_bytes: outputs larger than this many bytes are summarized. Default 16384, range 1024 to 1048576.
  • exempt_tools: tools whose output is never summarized. The built-in set includes retrieve_summary, retrieve_lane_output, task, read, and the lane tools, and it always applies.

retrieve_summary and /swarm retrieve support offset and limit for paginated retrieval. See Summaries.

Skills

  • Skill propagation: delegations log which skills were used, and the architect gets scored skill recommendations. .opencode/skill-routing.yaml maps agent types to specific skills. Configured under skillPropagation; see configuration.
  • Skill lifecycle: seven skill_* tools generate, apply, inspect, regenerate, retire, and improve skills. They are opt-in through skills.enabled. See skills.
  • Skill optimizer: /swarm skill-opt is a manually activated optimizer that takes one allowlisted SKILL.md through draft, smoke test, validation, manual approval, and activation or rollback. It is off by default (skill_opt.enabled). See skill optimizer.
  • Harness optimizer: /swarm harness-opt runs one governed optimization round at a time in a disposable worktree. It is off by default (harness_opt.enabled). See harness optimizer.
  • External skill curation: an opt-in pipeline that discovers external skill candidates, scans them in three validation gates, quarantines them, and promotes them only after human approval. It makes no network calls until external_skills.curation_enabled is true. See configuration.

File locking

update_task_status and phase_complete each take an exclusive lock on plan.json before writing. When another writer holds the lock, the call returns success: false, nothing is written, and the caller retries. A lock is broken only when its owner process is known to be dead; a live holder keeps it. See Plan file locking for the mechanism, return reasons such as PHASE_COMMIT_LOCKED, and recovery.

Automation

Default mode: manual. The mode is set with automation.mode.

  • manual: no background automation. Every action goes through an explicit slash command.
  • hybrid and auto: background automation enabled. The two values behave the same today: no code path distinguishes them, so either one turns on the capability flags below.

The capability flags take effect only outside manual mode. Their defaults:

  • plan_sync: true. Syncs plan.json to plan.md in the background with fs.watch, debounced writes (500ms), and a 2-second polling fallback.
  • phase_preflight: false. Opt-in phase preflight checks before agent execution.
  • config_doctor_on_startup: false. Validates the configuration on startup.
  • config_doctor_autofix: false. Opt-in automatic fixes for the config doctor.
  • evidence_auto_summaries: true. Generates summaries for evidence bundles.
  • decision_drift_detection: true. Detects drift between planned and actual decisions.

Mode detection

The architect derives its mode (DISCOVER, PLAN, EXECUTE, PHASE-WRAP, or UNKNOWN) from the current plan state. The detected mode only controls prompt injection. See Mode detection.

Configuration

Config file locations are ~/.config/opencode/opencode-swarm.json (global) and .opencode/opencode-swarm.json (project). The project file merges over the global one. Add "$schema": "https://unpkg.com/opencode-swarm/opencode-swarm.schema.json" as the first key for editor validation and autocomplete. The full reference is docs/configuration.md.

Disabling agents

To remove an agent from the roster, set disabled: true:

{
  "agents": {
    "sme": { "disabled": true },
    "designer": { "disabled": true },
    "test_engineer": { "disabled": true }
  }
}

Full configuration example

The model IDs below are examples; use IDs from your own providers.

{
  "agents": {
    "coder": { "model": "anthropic/claude-sonnet-4-20250514", "fallback_models": ["google/gemini-2.5-flash"] },
    "explorer": { "model": "google/gemini-2.5-flash" },
    "reviewer": { "model": "google/gemini-2.5-flash", "fallback_models": ["opencode/big-pickle"] }
  },
  "guardrails": {
    "profiles": {
      "coder": { "max_tool_calls": 500 }
    }
  },
  "authority": {
    "enabled": true,
    "rules": {
      "coder": {
        "allowedPrefix": ["src/", "lib/"],
        "blockedPrefix": [".swarm/"],
        "blockedZones": ["generated"]
      }
    }
  },
  "review_passes": {
    "always_security_review": false,
    "security_globs": ["**/*auth*", "**/*crypto*", "**/*session*"]
  },
  "epic": {
    "mode": { "enabled": false },
    "cochange": { "enabled": false }
  }
}

The knowledge, automation, and other blocks are documented in configuration.

Supported languages

Language profiles, by tier:

| Tier | Languages | |------|-----------| | 1 | TypeScript, JavaScript, Python, Go, Rust | | 2 | Java, Kotlin, C#, C/C++, Swift | | 3 | Dart, Ruby, PHP (see the Laravel guide) |

Tree-sitter parse validation uses 19 bundled grammars (src/lang/grammars/): these 13 languages plus TSX, CSS, Bash, PowerShell, INI, and Regex. External tools for a language, such as linters, test runners, and auditors, are optional. When one is not installed, that step is skipped with a warning instead of failing. To add a language, see Adding a language.

Testing

Run the unit suite with:

bun run test:unit:ci

Do not run a bare bun test for the full suite. TESTING.md and contributing.md describe the per-suite commands, timeouts, and CI layout. Epic Mode's planner regression harness is bun scripts/epic-bench.ts.

Design principles

  1. The critic approves the plan before any code is written.
  2. A coder gets one task and its context.
  3. Gate results and rejections are recorded as evidence. After five coder revisions (guardrails.max_coder_revisions), the architect is advised to escalate or change approach.

The reasoning behind these decisions is in Design rationale.

Documentation

Contributors

Thank you to everyone who has contributed to OpenCode Swarm. Below is a selection of code contributors. The full list is in docs/credits.md.

  • @stockh0lm: background coder settlement and scope-binding fixes (#3921, #3968, #4032), Stage B route and gate-receipt wedges (#3919, #4014), and async subagent lifecycle repairs (#3922).
  • @thehaven: scope-binding admission-map age cap (#3890), OpenCode 2 host fixes including lane sessions and Full-Auto support (#3559, #3447), and sandbox and guardrail fixes (#3465, #3368).
  • @acd17sk: epic mode v2 with plan-bound epics and gate-enforced waves (#3066), turbo check fixes and Stage B rule docs (#3638, #3633), and plugin runtime hardening (#3146).
  • @CrystalMethod: first-class Java backend with symbols routing (#2914) and Maven and Gradle test-runner target fixes (#3021, #3073).
  • @celsopitta: Linux sandbox read-only workspace mount and nested bwrap refusal (#3059), and /dev/null redirect handling in guardrails (#3058).
  • @deuriib: configurable per-agent file write authority rules (#378) and glob pattern support for file authority (#437).
  • @mattv8: restored the native apply_patch tool name (#1511) and linked advisory lane sessions to their parent (#1567).
  • @KGKallasmaa: Keenable as an optional council web search provider (#3753).
  • @MonolithBeta: task-gate evidence keyed by plan identity (#3468).
  • @XGGMasterX: own-key lookups for web-fetch entities, lean-turbo scopes and concurrency presets (#3433).
  • @IvanWeissVanDerPol: fixed the knowledge_recall boolean enum that broke Gemini API providers (#2354).

Issue reporters: @suse-coder, @thehaven, @CrystalMethod, @dalemarchand, @TommyC81, @woss, @skerit, @lordvandal76, @Moeinich, @andrewjfiore.

License

MIT. See LICENSE.