Why coding agents copy your bad code: a screenshot shows self-reinforcing style mimicry
QuixiAI · x · 2026-11-07
截图展示了一个编程 Agent 的真实对话:被质问「为什么写 List.new() 而不是 []」时,Agent 坦白自己是在照抄周围源代码的风格,同时按规范(D93)把写法改成 [],并主动执行了「Fix shitty code」指令修复相关调用点。配文发问「为什么 Agent 会这样,以及怎么修」,指向 LLM 的上下文模仿倾向——Agent 会无意识地继承代码库中的坏习惯,这已成为实践中的常见痛点。
Related event: Coding Agents Admit to Copying Surrounding Code Style(2 posts)→
More from coding & agent
- Vibecoded Stitches: a synth with built-in visuals and punch-in effects, built with Opus 5.5 — ssh4net · 2026-11-07
- Use AI to scan repos for issues: a reproducible open-source contribution workflow — jackedAJ · 2026-11-07
- Dev builds polished native Mac downloader on yt-dlp, 1,200+ sites, will open source — jaivin · 2026-11-07
- Near-exact cache matches cause 2-7x more wrong replies than the verified gray zone — Reasonable_Royal_621 · 2026-11-07
- Workshop: tracing a FAQ agent with Langfuse and turning traces into evals — Al_Grigor · 2026-11-07
- Only 1 of 7 browsing agents caught by Cloudflare: the agent identity and authorization gap — Pale_Painting_6271 · 2026-11-07