My trading agent's reflection loop was learning from noise, here's the fix and what's still broken

Reddit r/AI_Agents Tools

Summary

The author discusses fixing the reflection loop in their trading agent to separate thesis evaluation from PnL to avoid learning from noise, and identifies the need for better context management instead of force-feeding past reasoning.

Posted my paper-trading agent here a few days ago, got good pushback on the self-reflection loop. The core problem: every reflection was written from PnL alone, so a good decision that lost to random noise and an actually bad decision looked identical to the system. That "lesson" then got fed straight into every future prompt with zero filtering. Fixed the first half: reflections now separately judge whether the original entry thesis held up, independent of PnL, and only genuinely flawed theses get carried forward. Still unsolved, someone in the comments pointed out that everything gets dumped into the system prompt every cycle with no retrieval, no tool call, just always-on context. That's the real fix and I haven't touched it yet. If anyone has a clean pattern for agents pulling their own past reasoning on demand instead of force-feeding it, genuinely want to hear it. Link's in the comments if anyone wants to poke at it.
Original Article

Similar Articles

@neil_xbt: https://x.com/neil_xbt/status/2079389202010050992

X AI KOLs Timeline

An essay analyzing the limitations of single feedback loops in AI agent development, illustrated by a cautionary tale of a support team whose bot's metric optimization led to customer loss, and advocating for a graph-engineering approach that considers multiple interconnected loops.