# RedGreen

- **Event:** [The IDE Reimagined: JetBrains Codex Hackathon](https://cerebralvalley.ai/e/jetbrains-x-openai-hack)
- **When:** Apr 18 at 9:00 AM – Apr 19 at 5:00 PM (PDT)
- **Where:** Shack15, San Francisco, CA
- **Team:** [Rudy A](https://cerebralvalley.ai/u/rudy99), [Likhit Juttada](https://cerebralvalley.ai/u/likhitjuttada), [Param Shah](https://cerebralvalley.ai/u/PesseJinkman)
- **GitHub:** https://github.com/rudranshagrawal/redgreen
- **Demo video:** https://youtu.be/wEOdzHy3QC0
- **Gallery:** https://cerebralvalley.ai/e/jetbrains-x-openai-hack/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/jetbrains-x-openai-hack/hackathon/gallery/15

RedGreen is a JetBrains plugin that turns the IDE into a self-healing runtime. When the PyCharm debugger trips a runtime exception, RedGreen races four models in parallel — each steered by a different "hypothesis lens" (null bug? wrong input shape? race condition? config drift?) — to produce a failing test, a patch, and a rationale.                                                             
                                                                  
Every candidate has to survive four automated gates before it can reach the developer: Runner (pytest in a Docker sandbox — does the test reproduce the bug and the patch flip it?), Peers (the patch is re-run against every other agent's test — hacks that only pass their own test are filtered out), Regression (the patch runs against the repo's existing test suite — if it fixes the target bug but
  breaks an unrelated feature, it's disqualified), and Review (a small LLM picks the most idiomatic survivor based on code-review principles). The winning patch surfaces as a gutter inlay — one click to apply.

Every episode writes to a per-codebase leaderboard. Later episodes read history and bias (hypothesis, model) assignments toward known winners — so the tool gets faster and more accurate the more you use it on the same project.                                                                               

The problem: every developer loses hours to the inner debug loop. RedGreen compresses that loop to 30 seconds, with three independent layers proving the fix is real before a human has to look at it.

---

Markdown version of https://cerebralvalley.ai/e/jetbrains-x-openai-hack/hackathon/gallery/15. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
