On this page

Synthesis: Olatunji et al. (2026) reframe copy-paste in AI-assisted programming as an "AI code handoff" problem: the instant model-generated text crosses from a conversational chat window into an editor or committed software is a design boundary that current tools leave unmanaged. They propose soft barriers — mechanisms that preserve access to AI assistance while making unexamined transfer less frictionless — and instantiate the idea with Unicode output perturbations that keep text visually readable yet disrupt naive copy-paste execution. Across HumanEval and MBPP with four LLMs, they define and measure Copy-Paste Resistance (CPR), finding output-level barriers can achieve high resistance but that effectiveness is highly model- and task-dependent, and an 18-participant pilot suggests soft barriers shift users from direct transfer toward editing and reconstruction.

Key Findings

  1. Copy-paste is a core, largely unmanaged "handoff" moment in AI-assisted programming, particularly salient in programming education, code review, and security-sensitive development.
  2. The authors introduce Copy-Paste Resistance (CPR), the fraction of functionally correct clean solutions that become syntactically invalid after perturbation.
  3. Unicode perturbation barriers can achieve high CPR, but their effectiveness varies substantially by model and task — no universal barrier works.
  4. An exploratory 18-participant pilot found early evidence that soft barriers shift behavior from direct copy-paste toward editing and reconstruction, without blocking AI use outright.
  5. The paper positions Unicode perturbations as a "minimal probe," not a deployment-ready solution, opening a research agenda on practical, transparent, and policy-aware AI code handoff.

Discussion

The paper's conceptual contribution is to broaden how we evaluate AI coding assistants: not only by the code they generate but by how they mediate the transfer of that code into artifacts. This shifts the integrity conversation in programming education away from blunt detection-and-punish toward design interventions that shape the Cognitive Offloading boundary. Soft barriers preserve the legitimate use of AI assistance while creating a friction point that forces learners to engage with the code they are adopting — a form of scaffolded engagement rather than blanket restriction. The work connects directly to debates about when AI Literacy should mean fluent delegation versus deliberate understanding, and offers an empirically grounded alternative to copy-paste detection.

What this means for practice

  • Instructors. Treat the moment model output enters an editor or repository as a designed boundary: require an explanation, a test, or a modification before AI-generated code is executed or committed.
  • Instructors. Vary the intervention rather than trusting one barrier — effectiveness was highly model- and task-dependent (Claude reached CPR 0.997 on MBPP under invisible characters, while DeepSeek-V3 managed only 0.064 with reordering on HumanEval).
  • Designers. Prefer soft barriers over blanket blocks: they preserve access to AI assistance while nudging users from direct copy-paste toward editing and reconstruction, as the 18-participant pilot suggests.
  • Instructors. Disclose any barrier and test it for accessibility, since Unicode perturbations such as zero-width characters can affect screen readers and undisclosed barriers are deceptive.
  • Researchers. Measure handoff behavior directly — logging model interactions during a task would show whether the friction produces engagement or workaround behavior.

Limitations

  • Copy-Paste Resistance measures a proximate behavioral property — whether functionally correct solutions become syntactically invalid after perturbation — not comprehension, learning, or retention, which remain untested.
  • The barriers are easily bypassed by requesting clean output, running a text normalizer, or retyping the code; they change the default path for ordinary use but provide no security.
  • The behavioral evidence is an exploratory pilot with only 18 participants.
  • Evaluation is limited to Python benchmarks — HumanEval (164 problems) and MBPP (974 tasks) — with four LLMs, and the authors position Unicode perturbation as a minimal probe rather than a deployment-ready solution.

Citation

Olatunji, I. E., Djire, A. E., Klein, J., & Bissyandé, T. F. (2026). Do Not Copy/Paste: Soft Barriers for Copying in AI-Assisted Programming.

Embed this page

Copy the code below to embed this page in a learning management system or other website. The embedded version shows only the page content — it hides the site header, navigation, and footer.