# slang-workflows [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/shofer-dev/claude-code-slang-orchestrator  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/slang-workflows

## Description
Provable, declarative multi-agent workflows for Claude Code (typed .slang, non-LLM executor).

## Tools
Capabilities this server exposes over MCP:

- **list_workflows** — Discover `.slang` files (name, title, params, agent count).
- **get_slang_grammar** — Concise grammar cheatsheet + example, so an LLM can **generate** a workflow to run inline.
- **validate_workflow** — Parse + static analysis (deadlocks, unknown refs, orphan outputs) without running. Accepts a `name`/`path` **or** inline `source`.
- **run_workflow** — Run a workflow by `name`/`path` **or** inline `source` (rejects parse/static-analysis errors first). Synchronous by default; `background:true` returns a `workflow_id` immediately to poll live.
- **get_workflow_state** — Serialized `FlowState` (per-agent status, round, budget) by `workflow_id` — live during a `background` run.
- **get_topology** — Run topology as a Mermaid **flowchart** (status-colored snapshot) by `workflow_id`.
- **get_trace** — Execution **trace** as a Mermaid **sequenceDiagram** + raw event log (who staked/routed to whom, commits, escalations, terminal) by `workflow_id`.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What slang-workflows does

The slang-workflows MCP server brings declarative multi-agent orchestration to Claude Code. Workflows are written in typed `.slang` files, or supplied as inline source, and interpreted by a fixed state machine rather than coordinated by the top-level language model.

A workflow can define agents, stakes, output contracts, routing, convergence conditions, round budgets, timeouts, and human escalation. The executor dispatches work to Claude Agent SDK sessions, checks returned results against their declared contracts, retries invalid results, and routes accepted outputs through a mailbox. One long-lived session is used for each agent across rounds.

This structure fits repeatable engineering processes such as design approval followed by implementation and review, parallel read-only bug investigation, or a reviewer that can inspect and execute tests without editing files.

## How it works

The top-level Claude Code session starts a workflow and observes its progress; it does not decide how agents coordinate. The executor parses the workflow, performs static checks, and refuses to run workflows with parse or analysis errors. During execution, it dispatches each stake, receives a typed result, validates the result, routes messages, and continues until the declared convergence condition or round limit is reached.

Agent permissions can be constrained with path-based write scopes and denied tools. These restrictions are enforced through the Agent SDK tool-permission mechanism, rather than being instructions in an agent prompt. A workflow may also use `escalate @Human` to surface a decision in the normal Claude Code conversation.

The slang-workflows MCP server exposes run state while background execution is active. Completed and active runs can be represented as Mermaid diagrams: topology shows the workflow structure and status, while the trace records events such as routing, commits, escalations, and terminal state.

## Tools and capabilities

The MCP tool set includes:

- `list_workflows` finds `.slang` files and reports their names, titles, parameters, and agent counts.
- `get_slang_grammar` returns a concise language reference and example for generating workflow source.
- `validate_workflow` parses and statically analyzes a named, path-based, or inline workflow without running it. Checks include deadlocks, unknown references, and orphaned outputs.
- `run_workflow` executes a workflow by name, path, or inline source after validation. It runs synchronously by default; `background: true` returns a workflow ID for later inspection.
- `get_workflow_state` returns serialized `FlowState`, including per-agent status, current round, and budget information.
- `get_topology` returns a status-colored Mermaid flowchart for a workflow run.
- `get_trace` returns a Mermaid sequence diagram and raw event log for the run.

The executor supports typed structural and semantic output contracts, retries for invalid results, mailbox routing, session resume, multi-agent flows, convergence conditions, round budgets, and per-stake timeouts.

## Limitations and notes

The slang-workflows MCP server is designed for Claude Code and relies on Claude Agent SDK sessions for declared agents. It does not replace the agents themselves; it controls dispatch, permissions, validation, routing, and run state around them.

Workflows must be authored as `.slang` files or supplied as valid inline source. Static validation can identify several structural problems before execution, but the material does not describe every grammar rule or provide installation instructions. A background run returns an identifier immediately, so callers must use the state, topology, or trace tools to inspect progress.

Compared with Claude Code's native dynamic workflows, slang uses a typed declarative artifact and a fixed executor rather than an LLM-authored JavaScript orchestration script. That makes the workflow analyzable and reusable, but requires defining the collaboration structure in advance.

_Full upstream README: https://allmcps.com/mcp/slang-workflows/readme_

