Mehdi Akiki

Posts tagged "agent-security"

  • Published on

    Reference · Through the layers

    Prevent Shell Injection in Python Agent Tools

    Keep a filename out of the shell, then handle spaces and leading options with a fixed converter and an explicit argument list.
  • Published on

    Reference · Through the layers

    Stop Secret Inheritance in Python Subprocesses

    Compare two Python launches using a dummy token and file descriptor, then restrict the environment and handles passed to the child.
  • Published on
    I tested which instruction files Claude Code 2.1.325 really loads. AGENTS.md works alone but is skipped next to a CLAUDE.md, and a nested AGENTS.md arrived inside a tool result in my test, where a small model sometimes ignored it.
  • Published on
    Before I type a word, my coding agent already has instructions from files, hooks, plugins and online services. I list who wrote each one, which ones can change without a commit, and how to review them.