Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.163 ·

Workflow Script Static Validation via AST

Entry
JSON All of v2.1.163
EntryKind: in v2.1.163,
ChangesSection of the release
What

Workflow scripts are now parsed with the Acorn JavaScript parser (including the acorn-walk tree traversal library) for accurate static validation before execution.

Details
  • 'with' statements are rejected: SyntaxError: 'with' statements are not supported in workflow scripts.
  • 'await using' declarations are rejected: SyntaxError: 'await using' declarations are not supported in workflow scripts.
  • Identifiers starting with the internal prefix are rejected: SyntaxError: Identifier '<name>' is reserved.
  • import() expressions are disallowed.
  • The AST-based approach replaces simpler regex-based checks and properly handles edge cases like await inside async arrow functions with expression bodies.
Evidence

Error messages (search for "'with' statements are not supported in workflow scripts." and "'await using' declarations are not supported in workflow scripts.")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.163 →

Feedback