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.py script executes local formatting binaries such as rustfmt, ruff, and prettier. It securely invokes these tools via subprocess.run using 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.isfile and 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
Risk Level
SAFE
Analyzed
Sep 14, 2026, 03:58 AM