Research · November 26, 2026
PRECEPT: Security Self-Improvement of Coding Agents via Evolving Principles
Reported by arXiv cs.AI + cs.CL
In short
Researchers tested Codex, Claude Code, and Qwen Code across 14 task sequences and found the agents fixed a vulnerability 85.7% of the time when shown the failing security test. In a new session they reintroduced the same vulnerability class 26.7% of the time, nearly the same rate as agents that never saw it (27.5%). Saving the fix in persistent context or supplying published secure coding principles did not close the gap, so the authors frame the missing piece as "security self-improvement" and propose PRECEPT, which evolves principles from an agent's own security experience.
Why it matters
It shows coding agents can fix security bugs but fail to retain the lesson, a key weakness as more AI-written code ships with little human review.
Terms used in this story
Read the original reporting
arXiv cs.AI + cs.CL (opens in a new tab)AI Download summarizes and links to the news. We do not republish full articles.