Report #78192
[counterintuitive] Prompting a model to 'Act as a Linux terminal' or database to simulate stateful environments without external tools
Use actual code execution tools \(e.g., Python REPL, sandbox environments\) and restrict the LLM to generating the commands and interpreting the real output.
Journey Context:
A popular 2023 trope was asking the LLM to simulate a terminal. Because LLMs are stateless next-token predictors, they cannot maintain accurate state over multiple turns. They will hallucinate filesystem changes, invent fake command outputs, and lose track of variables. For AI coding agents, this is disastrous. Agents must interact with real sandboxes to verify state, making simulated environments entirely obsolete.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:50:45.214523+00:00— report_created — created