SuperAPIAI Directory

stepswitch

github.com · AI coding

Stepswitch is an open-source coding agent orchestrator that supports local and remote models. It breaks tasks down into multiple steps (such as planning, reading, editing, testing, and reviewing) and routes each step to the most suitable model. All changes must pass the project tests and be checked by a reviewer from another model family. It provides the command-line tool ssw, supporting features such as installation, running, dashboard, model serving, agents, auditing, and proving. It emphasizes reproducibility: every claim in the README has a runnable test (ssw prove). It is suitable for scenarios such as running coding agents on your own models, optimizing token usage, and verifying changes.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Stepswitch is an open-source orchestrator for running coding agents on local and remote models. It is designed to break coding tasks down into multiple steps and select the most suitable model for each step, while ensuring that changes pass tests and review.

Key capabilities:

  • Step-based routing: tasks are split into steps such as planning, navigation, reading, editing, running, classification, review, and summarization, and each step is assigned to the worker (model + toolchain) with the highest expected value based on cost, latency, and what the router has learned from previous tasks. Failed gates escalate the task to a higher tier.
  • Verification: changes are made in a separate git worktree and must pass gates such as formatting, lint, type checking, affected tests, and the full test suite. When a reviewer from another model family is available, cross-review is performed.
  • Compatibility layer: requests go through a unified internal representation, supporting API formats such as chat-completions, responses, messages, and generate-content, as well as engine-native formats. Models that do not support native tool calling use a fallback tool protocol.
  • Accounting and egress: every model call records tokens, time, and cost; all network connections go through a unified egress layer, supporting auditing and offline mode (only local endpoints are allowed).
  • Reproducibility: every public claim in the README has an automated test that can be run and verified via ssw prove.

Usage:

  • Installation: install via the installer included with each release. macOS/Linux use an install script, and Windows uses a PowerShell script. The installer downloads uv (if missing) and verifies its checksum, then installs Stepswitch via uv tool install. If uv is already available, you can run uv tool install stepswitch directly.
  • Running in a git repository: ssw run runs in a separate git worktree, uses the project's .venv or the configured interpreter to run tests, and leaves changes on the branch stepswitch/<task>; --apply applies the changes to the worktree. ssw dash opens the dashboard.
  • Model configuration: Stepswitch communicates with model servers over HTTP. ssw models serve starts a local engine; self-hosted servers and hosted endpoints are configured in .stepswitch/local.toml (ignored by git), project policy in stepswitch.toml (committed). examples/ provides common configuration examples. ssw doctor checks settings, ssw probe tests the model's ability to handle tool calls.
  • External toolchain: external toolchains can run on the same model via ssw proxy.

Use cases:

  • Run coding agents on your own models (local or remote), optimizing token usage and cost.
  • Software development workflows requiring strict validation of changes (tests, review).
  • Research and benchmarking, such as SWE-bench Verified Mini and mini benchmark suites.
  • Projects requiring reproducibility and transparency.

Limitations:

  • Requires a git repository and a model server (local or remote).
  • Full benchmark runs may take days (single workstation).
  • Some features (such as first release on package indexes, CI cross-platform testing, more adapters) are still in progress.
  • Specific performance data is based on specific models and configurations and may vary by environment.

Stepswitch is licensed under the MIT License.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools