Skip to content

Workflows

The Workflows panel (devManager.workflowsView) runs repeatable pipelines without leaving the editor: lint/test/deploy scripts, Claude-powered review steps, visual regression baselines, and coverage thresholds.

Requirements

  • Open a SnakeFlow project (workspace folder with devManager.project.* configured).
  • For AI steps: set devManager.workflows.anthropicApiKey (or use the environment your Claude CLI expects) and pick a model via SnakeFlow: Select AI Model.
  • For browser / Lighthouse / visual steps: dev servers and URLs configured in workflow definitions or project settings.

Activity Bar → SnakeFlow → Workflows. Title-bar actions (when available):

  • New Custom Workflow — define steps in settings (devManager.workflows.custom).
  • Test Branch Changes — run checks against the current branch diff.
  • Stop / Show Workflow Logs while a run is active.

Custom workflows

Store definitions in workspace settings:

"devManager.workflows.custom": [
{
"id": "smoke",
"label": "Smoke test",
"steps": [
{ "type": "command", "command": "npm run lint" },
{ "type": "command", "command": "npm test -- --run" }
]
}
]

Run from the tree (Run Custom Workflow) or Command Palette. See All settings — Workflows for timeouts, coverage minimums, visual tolerance, test accounts, and viewport flags.

Built-in workflow types

AreaWhat it does
AI reviewSends branch context to Claude with cost/watchdog limits (maxCostUsd, watchdogSeconds).
Visual regressionCaptures screenshots per viewport; compare against corpus (Open Regression Corpus / Prune Regression Corpus).
Coverage gateFails the run when coverage is below devManager.workflows.minCoverage.
Deploy CISnakeFlow: Deploy CI Workflow (GitHub Actions) — scaffold or update workflow files.

Headless CLI

The packaged snakeflow-workflow-run binary (see extension bin/) can execute workflows from CI or a terminal when the VS Code UI is not available.