Skip navigation
our coding agent told us “all tests pass.” it had deleted the test file.
0:00 / 1:44

our coding agent told us “all tests pass.” it had deleted the test file.

Farouk

@faroukobayanju1.7K followers

Visit on X
79 likesDownloadOriginal post

28,935 views #neatHack

our coding agent told us “all tests pass.” it had deleted the test file. that’s why we built Kedge for #neatHack. dependabot and renovate PRs break all the time and more teams hand them to coding agents to fix unattended. when a fix gets hard, the agent deletes tests, edits files it was never asked to touch, or says it’s done when it isn’t. kedge supervises the agent. It plans the fix, lets the agent take one step, runs the tests, and checks for drift: tests lost, files outside the plan, a repeated attempt, a claim that doesn’t match the results. On drift it rolls back to the last good commit, tells the agent why, and retries. In our demo the agent deleted a test file at step 1. Kedge rolled it back and step 2 fixed the real bug, 5 of 5 tests passing. With no supervisor, the same agent shipped 2 of 5 tests and called it fixed. neatlogs showed us our own blind spot first: 0 errors across 33 traces. Kedge wasn’t reporting its failures at all. After we fixed that, the daily digest flagged the error rate on the next run. The trace pointed to the exact step where the agent deleted the test, and the Execution Failed detection and error analysis group every failure by cause. Kedge also reads its past runs back from neatlogs before it plans, and writes its verdict onto each trace. Old Entire / Do Not Tag checkpoints every commit the agent makes. Before a new fix, Kedge searches past checkpoints for the same failure and gives the agent what worked. It skips any old fix that touched tests. cfo.ai set the budget. We built the business plan with Ari: $10 per green PR at a 92.5% margin leaves $0.45 for the model. Kedge reads that from pricing.json and stops before any step it can’t afford. We learned why the hard way: on one batch, OpenCode estimated $1.57 and the real bill was $5.70. Ari’s stress case put uncapped runs at $2.85 a PR and a 68.5% margin. Now Kedge meters the real bill, and our demo fix cost $0.12. one more rule: Kedge opens no PR without proof, meaning a neatlogs trace, an Entire checkpoint and the cost. Team: Farouk + Haikeys (HAIKEYS ) Repo:

35 Comments

Comments from the original post on X (Twitter)

  • neatlogs's profile picture

    @neatlogs

    all the best!

    2 likes

  • Farouk's profile picture

    @faroukobayanju

    thank you

    1 like

  • Josh✣(rebellion arc)'s profile picture

    @Retiredjosh_

    Impressive one here chad!

    1 like

  • Farouk's profile picture

    @faroukobayanju

    learnt from u

    1 like

  • SAINT's profile picture

    @II_AM_SAINT

    Nice one man, Goodluck

    1 like

  • Iyiola's profile picture

    @Askofiyiolq

    Hope you win

    1 like

  • superzorak's profile picture

    @zorakswago

    hope you get the W man

    1 like

  • Deji ⚡'s profile picture

    @Theboy_deji

    Hope you get the W bro

    1 like

  • Emma's profile picture

    @Jaydaku10

    Goodluck

    1 like

  • William Tran's profile picture

    @williamtranqa

    Tests lost as a drift check is smart. A green run with fewer tests than yesterday is worth a look to me

    1 like

  • xx.masco.exe's profile picture

    @Emmasco61

    rooting for you dad

    1 like

  • Farouk's profile picture

    @faroukobayanju

    thank you, champ

    1 like

  • bread's profile picture

    @breadbandit03

    Good work

    1 like

  • gq's profile picture

    @girlquants

    deleting the test file is the most human thing an agent has ever done lol. the $1.57 estimate turning into a $5.70 bill scares me more tho

    1 like

  • James Moriarty's profile picture

    @0x_obscure

    This is so cool man, WIN!

    1 like

  • Farouk's profile picture

    @faroukobayanju

    going for the win! ❤️

    1 like

  • WEB3K1NG's profile picture

    @0xweb3k1ng

    Banger submission here

    1 like

  • Farouk's profile picture

    @faroukobayanju

    too real

    1 like

  • 🕷️🕷️🕷️🕷️'s profile picture

    @nagisegiro17

    Great

    1 like

  • pestus's profile picture

    @pestusweb3

    Incredible to be honest rooting for you

    1 like