Skip to content
30

bpmn-cli

Your agent edits the model, not the XML.

A CLI and Claude Code plugin for BPMN 2.0. It keeps your drawing and checks Camunda 7 and 8 deploy rules.

> /plugin marketplace add Miragon/bpmn-cli
> /plugin install bpmn-cli@miragon-bpmn

Needs Node 24+0.x: pin the version, a minor can break a command.

Get started
order.bpmn
The order process after the command: Check invoice, then Approve invoice, then Done

$ bpmn add order.bpmn userTask "Approve invoice" --after userTask_checkInvoice

created userTask: userTask_approveInvoice

note: inserted between userTask_checkInvoice and endEvent_done

written: order.bpmn

Why

BPMN XML is long and full of layout details, so agents are slow at it and break it easily. A short command does the same, and the CLI refuses any broken change.

How it works

Your agent works on the model like on code: it reads it as text, changes it by id, looks at the drawing and checks it. It repeats the loop until the check is clean.

  1. 01

    Read

    bpmn show

    Prints the model as text.

  2. 02

    Change

    bpmn add · set · apply

    Writes XML and drawing together.

  3. 03

    Look

    bpmn render

    Draws the picture the agent sees.

  4. 04→ 01

    Check

    bpmn validate

    Flags what the engine would refuse.