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
$ 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
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.
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.