Compile declarative YAML workflows into agent-ready instructions. Define once, run anywhere — MCP servers, system prompts, or direct execution.
npm install -g b2agent
Define complex business processes in simple YAML. b2agent handles compilation, validation, and execution.
Define workflows with triggers, steps, conditions, and error handling — no code required.
Compile workflows into MCP tool servers, ready for Claude Code, Claude Desktop, and more.
Anthropic, OpenAI, DeepSeek, Ollama, LM Studio — switch providers per step.
Declarative security policies, secrets management, PII handling, and full audit logging.
Add approval gates and human review steps anywhere in your workflow.
Test workflows with mock or real LLMs before deploying to production.
Define your business process as a YAML workflow. b2agent validates, compiles, and serves it as an MCP tool server or system prompt.
b2agent validate
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"
Cloud or local — use any provider per step. Mix and match across your workflow.
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.
Get started in under a minute. MIT licensed, open source.