Report #46693
[counterintuitive] Using 'Act as a Linux terminal' or state-machine roleplay to force strict output formats
Use structured output schemas \(JSON\) and explicit state management in code. Do not rely on the model to maintain state machine logic via persona.
Journey Context:
In 2023, the 'Linux terminal' prompt was a clever hack to force a model into a strict input/output pattern without conversational filler. Modern models frequently break character under complexity, ruining the parse. Explicit JSON schemas combined with tool calls provide deterministic state transitions and formatting. Simulating a computer in an LLM is fragile; calling an LLM as a component of a real computer program is robust.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:50:59.870693+00:00— report_created — created