Skip to content
NewA calmer, faster ZeroHour

PRECEPT trains coding agents to keep security lessons across sessions

Original title: PRECEPT: Security Self-Improvement of Coding Agents via Evolving Principles

arXiv cs.CRby Keyan Guo ()1 min read1 · 1 read
AI summary · x-ai/grok-4.7Summaries by Vani AI

On unseen task families, the weakest PRECEPT agent reached 97.1% secure working code.

A paper finds coding agents often fix a shown vulnerability, then reintroduce the same class in a later session. Across 14 task sequences, Codex, Claude Code, and Qwen Code fixed a flaw 85.7% of the time when given the failing security test, but reintroduced that class 26.7% of the time, close to agents that had never seen it. PRECEPT keeps an evolving library of secure-coding principles revised from each agent’s own failures and retains a revision only when fresh runs improve security without much functional loss.

Unconfirmed: Secure-code rates are the authors' evaluation, not an independent benchmark.

Key facts
  • Reintroduction rate was 26.7%, versus 27.5% for agents that never saw the flaw.
  • Persistent context and generic human principles did not close the gap.
  • Revisions must keep functional success near the unaided agent.
  • Strongest unaided agent scored 81.9%; strongest baseline scored 87.7%.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at arxiv.org

AI coding agents increasingly write and submit code with limited human review, and much of it passes functional tests while remaining insecure. We show that these failures persist. Across 14 task sequences, Codex, Claude Code, and Qwen Code fixed a vulnerability 85.

arXiv cs.CR

By Keyan Guo · arxiv.org

Read the full article at arXiv cs.CR

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.