agentsight-auto-format
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFE
Full Analysis
- [COMMAND_EXECUTION]: The
post-edit-format.pyscript executes local formatting binaries such asrustfmt,ruff, andprettier. It securely invokes these tools viasubprocess.runusing list-based arguments, which prevents shell injection vulnerabilities. - [INDIRECT_PROMPT_INJECTION]: The script ingests file paths from the agent's runtime environment via standard input. It mitigates potential manipulation by verifying the input path corresponds to an actual file on disk using
os.path.isfileand restricting execution to a hardcoded list of supported file extensions. - [EXTERNAL_DOWNLOADS]: The documentation explicitly warns against using tools that trigger remote downloads (like
npx) to prevent supply chain risks, favoring local environment configurations instead.
Audit Metadata