v0.1.0 — Now available

Turn business logic into
agent instructions

Compile declarative YAML workflows into agent-ready instructions. Define once, run anywhere — MCP servers, system prompts, or direct execution.

npm install -g b2agent

Everything you need for AI workflows

Define complex business processes in simple YAML. b2agent handles compilation, validation, and execution.

📝

Declarative YAML

Define workflows with triggers, steps, conditions, and error handling — no code required.

🔌

MCP Server Output

Compile workflows into MCP tool servers, ready for Claude Code, Claude Desktop, and more.

🤖

Multi-Provider LLM

Anthropic, OpenAI, DeepSeek, Ollama, LM Studio — switch providers per step.

🛡️

Built-in Security

Declarative security policies, secrets management, PII handling, and full audit logging.

👤

Human-in-the-Loop

Add approval gates and human review steps anywhere in your workflow.

🧪

Simulate & Validate

Test workflows with mock or real LLMs before deploying to production.

From YAML to agents in seconds

Define your business process as a YAML workflow. b2agent validates, compiles, and serves it as an MCP tool server or system prompt.

  • 1 Define your workflow in YAML
  • 2 Validate with b2agent validate
  • 3 Compile to MCP or prompt target
  • 4 Serve or integrate with your agent
email-triage.yaml
name: email-triage
version: "1.0"

triggers:
  - type: webhook
    path: /incoming-email

steps:
  - id: classify
    action: llm
    prompt: "Classify this email"
    output_schema:
      category: string
      priority: string

  - id: route
    action: route
    conditions:
      - when: "priority == 'urgent'"
        goto: escalate

  - id: escalate
    action: human
    prompt: "Review urgent email"

Works with your favorite LLMs

Cloud or local — use any provider per step. Mix and match across your workflow.

☁️ Anthropic
☁️ OpenAI
☁️ DeepSeek
☁️ Qwen
☁️ Moonshot
🖥️ Ollama
🖥️ LM Studio
🖥️ vLLM

Powerful command-line interface

Everything you need to build, test, and deploy workflows from your terminal.

$ b2agent init

Scaffold a new project with interactive templates — basic, approval-flow, or classification.

$ b2agent validate process.yaml

Parse and validate your YAML workflow against the full schema with detailed error reporting.

$ b2agent compile process.yaml

Compile to MCP tool servers or system prompt markdown — ready for any agent.

$ b2agent sim process.yaml

Simulate execution with mock or real LLM providers. Test before you deploy.

Ready to automate your workflows?

Get started in under a minute. MIT licensed, open source.