hi, I think the issue comes from node22’s host image, say it is a different linux container. So the sg command resolves to a builtin linux command. See Command name alias: ast-grep and sg · Issue #56 · ast-grep/ast-grep · GitHub
Changing the command to ast-grep should solve the issue.