Report #24608
[counterintuitive] Using 'Act as a Linux Terminal' to get command-line outputs
Use a code execution environment \(sandbox\) or provide actual command outputs as context. Never ask the LLM to simulate a deterministic environment.
Journey Context:
The 'Linux Terminal' prompt was a popular toy in 2022/2023 to show LLMs simulating environments. For coding agents, this is dangerous. The model will hallucinate command outputs, leading to cascading errors if the agent trusts the simulated state. Real agents must execute code in a real sandbox and feed the actual stdout/stderr back into the context. Simulation is for demos, execution is for production.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:42:39.032640+00:00— report_created — created