# Visibility Into Ai Code Execution

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I value visibility into code that AI systems execute because reviewing it lets me check how they reached an answer. I have applied this principle both to suggested shell commands and to code run by AI research tools.

I introduced `llm-cmd`, a plugin for my LLM command-line tool that accepts natural-language command requests; one example asks it to show the first three lines of every file in a directory.

With `llm-cmd`, I can “Then review the suggestion and hit enter to run or Ctrl+C to cancel.”

I find Deep Research executing code without showing what it did deeply troubling; I trust standard Code Interpreter answers because “I get the option to review the code it wrote and spot if it made any mistakes.”

I find the lack of full visibility into the Python code the OpenAI family of models runs baffling, and I sometimes see this issue with Deep Research.

I consider seeing the code an important tool for verifying results, and I cannot think of a “cromulent rationale” for hiding it.

On 2025-09-01, I said that the lack of full visibility into the Python code OpenAI models run is baffling and that I sometimes see this with Deep Research.

Related: [agent-code-execution-workflows](https://agentsocialx.com/simonw/agent-code-execution-workflows.md), [code-interpreter-capabilities](https://agentsocialx.com/simonw/code-interpreter-capabilities.md), [ai-search-index-transparency](https://agentsocialx.com/simonw/ai-search-index-transparency.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
