karpathy-refactor

Warn

Audited by Gen Agent Trust Hub on Aug 25, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill operates with high autonomy in its 'autonomous run' mode, where it applies code changes and deletes untracked files during its snapshot-restore process without requiring manual confirmation for each step.
  • [COMMAND_EXECUTION]: The agent is instructed to execute arbitrary verification commands (such as npm test, benchmarks, or custom build scripts) discovered within the repository to validate refactors. This creates an execution vector if the repository contains malicious configuration or test scripts.
  • [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection from the data it processes.
  • Ingestion points: Reads repository documentation (e.g., AGENTS.md, CLAUDE.md), source code files, and git commit history/logs to build evidence and architecture maps.
  • Boundary markers: Does not define strict delimiters or 'ignore' instructions when reading untrusted repository content.
  • Capability inventory: Executes git commands, performs file system writes (ledger and code edits), and runs environment-defined verification commands via shell.
  • Sanitization: No explicit sanitization or validation of repository-derived data or command outputs is mentioned before they influence the agent's logic flow.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Aug 25, 2026, 06:08 PM