---
title: "Discussion on \"I Showed My Coding Agent Its Own Bug. It Copied the Bug Twice.\" | Hashnode"
description: "Discussion on \"I Showed My Coding Agent Its Own Bug. It Copied the Bug Twice.\". A blind \"try again\" fixed the bug on the first extra attempt. Telling the model exactly what it got wrong did not help at all.\nMy local model wrote a next-permutation function that failed 3 of 5 test"
url: "https://hashnode.com/posts/i-showed-my-coding-agent-its-own-bug-it-copied-the-bug-twice/6afcfa3ce9f8e28b98eba7a3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [I Showed My Coding Agent Its Own Bug. It Copied the Bug Twice.](https://priyanshsinghal.hashnode.dev/i-showed-my-coding-agent-its-own-bug-it-copied-the-bug-twice?utm_source=hashnode&utm_medium=feed)

A blind "try again" fixed the bug on the first extra attempt. Telling the model exactly what it got wrong did not help at all. My local model wrote a next-permutation function that failed 3 of 5 test

1d ago · 9 min read · priyanshsinghal.hashnode.dev  
Read the article

-   [#llms](https://hashnode.com/tag/llms)
-   [#machine-learning-models](https://hashnode.com/tag/machine-learning-models)
-   [#ai-agents-explained](https://hashnode.com/tag/ai-agents-explained)
-   [#python3](https://hashnode.com/tag/python3)

## Written by

[Priyansh Singhal](https://hashnode.com/@priyanshsinghal)

@priyanshsinghal · New Delhi, India

  
[View profile](https://hashnode.com/@priyanshsinghal)

Full-stack & AI engineer, writing about RAG, LLM agents, and GenAI.

Full-stack and AI engineer based in New Delhi, about three years into building production software with React, Node, and Python. Lately focused on GenAI: RAG pipelines, LLM agents, vector search. Writing about what I'm actually learning while building these systems.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
