Skip to content
Preprint

Refused in Chat, Written in Code: Workflow-Level Jailbreak Construction in IDE Coding Agents

Jul 2026 · 0 citations · 37 references
Computer Science

TL;DR

These results show that conversational refusal benchmarks can substantially overstate the safety of deployed coding agents and motivate defenses that reason about safety across multi-turn IDE workflows and their generated artifacts, not only individual chat turns.

Abstract

Large language models are increasingly deployed as IDE-integrated coding agents that decompose tasks, generate and edit files, run code, and refine outputs over many turns. Yet their safety is still often evaluated as if they were chatbots: one harmful prompt, one response, judged in isolation. We introduce workflow-level jailbreak construction, a failure mode in which a harmful objective is assembled across ordinary stages of a software-development workflow rather than generated through a single direct prompt. Using GitHub Copilot in Visual Studio Code, we study four closed-weight backends: Claude Sonnet 4.6, Claude Haiku 4.5, Gemini 3.1 Pro, and Gemini 3.5 Flash. Across 204 prompts from Hammurabi's Code, HarmBench, and AdvBench , the models show near-complete refusal under direct chat, CSV-read, and single-step code-fix baselines, with only 8/816 successful responses in each baseline condition. Under the full workflow, however, the same prompts and backends produce 816/816 unsafe teaching-shot completions, all independently confirmed by two expert evaluators under a strict rubric. These results show that conversational refusal benchmarks can substantially overstate the safety of deployed coding agents and motivate defenses that reason about safety across multi-turn IDE workflows and their generated artifacts, not only individual chat turns.

View source

Similar papers

Book Open access Aug 2026

Turning Parser Errors into Suggestions for REPL-Driven DSLs (Functional Pearl)

A fresh perspective is presented that turns parser errors -- traditionally seen as roadblocks -- into opportunities for generating valid, context-aware autocomplete suggestions, enabling domain-specific languages to provide basic development assistance with minimal overhead.

M. Gissurarson, Elisabet Lobo-Vesga, Alejandro Russo · 0 citations
Open access Aug 2026

A Study of Cursorrules Files in GitHub Open Source Projects

An empirical study of configuration prompt files in Cursor, a widely used AI-assisted code editor, shows that .cursorrules files emerged rapidly from mid-2024 and shows that there is a continuity of themes and topics between the now-legacy .cursorrules files and the current standard .mdc files.

Shuang Sun, Jafar Akhoundali, Arina Kudriavtseva et al. · 1 citation · ⚡1

ORCA-bench: How Ready Are Language Model Agents for Oncall?

The ORCA-bench benchmark is introduced, a benchmark that puts general-purpose coding agents in a production-fidelity oncall setting and is a lower bound on the engineering investment required before frontier coding agents can be safely entrusted with production reliability.

Albert Gong, Kyuseong Choi, Abhineet Agarwal et al. · 1 citation
Open access Aug 2026

Chat2Map: A ReAct-based Agent Framework for Automated Web Map Generation from Natural Language Instructions

Chat2Map is presented, an agent framework for automated web map generation from natural-language instructions that integrates skill and tool grounding, runtime schema construction for uploaded GeoJSON and JSON files, and an iterative generate-execute- diagnose-repair loop based on runtime and visual feedback.

Hong-Ping Zhang, Peilong Ma, Cong Wang et al. · 0 citations
Preprint Aug 2026

ASIL: Replacing Screenshot-and-Click with Structured State and Semantic Actions

This work introduces ASIL (Agent-Software Interaction Layer), an agent-native interface that exposes software through structured JSON observations and code-executable semantic actions, realized through the deepest feasible access path for each application.

Rui Xie, Lu Chen · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.