{"version":"2.1.331","anchor":"workflow-can-run-a-pre-built-run-object-instead-of-a-vm-sc","canonical_anchor":"workflow-can-run-a-pre-built-run-object-instead-of-a-vm-sc","heading":"Workflows can run as built-in code instead of as a script","tier":"internal","area":"Workflows","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/workflow-can-run-a-pre-built-run-object-instead-of-a-vm-sc","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Workflows can run as built-in code instead of as a script\n\nA workflow that supplies its own run function is now called directly; other workflows still run as a script\n\n**What**\n\nWhen a workflow comes with its own run function, Claude Code now calls that function directly and hands it the usual workflow abilities, such as starting agents, logging, marking phases, recording failures and checking limits and spending. Workflows without one still run as a script in an isolated environment, as before. Both paths now shape their results the same way.\n\n**Why**\n\nThis points to workflows bundled with Claude Code that run as ordinary code rather than as a script.\n\n- Area: Workflows\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no"}