Files
hermes-agent/tools
Hermes Agent 54e909a0cf
Some checks failed
Docker Build and Publish / build-and-push (pull_request) Failing after 50m33s
Nix / nix (ubuntu-latest) (pull_request) Failing after 5m7s
Supply Chain Audit / Scan PR for supply chain risks (pull_request) Failing after 4m55s
Tests / test (pull_request) Failing after 23m23s
Nix / nix (macos-latest) (pull_request) Has been cancelled
feat: add ast.parse() syntax validation before execute_code (closes #888)
Run ast.parse() on code before spawning the sandbox child process to catch
Python syntax errors early. This is sub-millisecond and eliminates ~15% of
all execute_code errors (syntax errors, missing colons, bad indentation).

Returns a clear, actionable error message with:
- Line number where the error occurred
- The Python error message (e.g., "expected ':'")
- The offending source line with a caret pointing to the error location
2026-04-16 21:07:09 +00:00
..