Reproduce “The Agent Knew: Internal States Forecast Unauthorized Actions and Stop Them, and the Lies That Follow” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Arya Fayyazi, Mehdi Kamal, Massoud Pedram

The authors develop a policy that checks an agent’s internal activations before tool actions and intervenes when a readout flags a likely unauthorized action. It steers the first flagged action and routes later flags to an approver before execution. In controlled mock-tool episodes, Gemma-4 violations fell from 0.70 to 0.09, while authorized completion was 1.00 versus 0.995. Approval was simulated.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.