What did your agent do that you only found out about later?
by•
Not the dramatic stuff that gets blocked. The quiet things you only notice an hour or a week later
Mine was two agent sessions working in the same repo. One of them went to clean up its own background process by matching the name and killed the other session's run too. No error anywhere. I just found a half finished job later and had to figure out why
What's yours and did it change how you set things up
865 views

p/meridian-16
p/many-displays
p/burnlink
p/runevr
p/classroomio
p/teaserkit
p/reso
p/pushary
p/dots-7
p/citable
p/producthunt
p/kodlo
p/faraday-4
p/clipjack
p/temp-mail-370
p/neoagent
p/leantake
p/iphotron
p/comcent
p/relai-agent-eval-loop
Replies
one agent session cleaned up a working folder with a force delete, while the commit inside it had never been checked. Around 6,700 lines gone, no error anywhere..
@farzam_habibi ouch 6,700 lines. was that a commit that had never been pushed anywhere? i have started making the agent commit and push to a branch before it's allowed to delete anything in a working folder.
@neelagiri_chettiyar It was pushed and deployed, but we haven’t released it to users yet.. We want to run more tests and make sure everything is solid before launching!
@farzam_habibi good so it was recoverable at least.. good luck with the launch.
One thing I’ve learned is that AI agents can sometimes take actions that seem harmless but have unexpected effects.
That’s why having clear permissions, proper monitoring, and activity logs is so important. The goal isn’t just to make agents autonomous, but to make their actions reliable and easy to track.
A small action can sometimes create a big debugging task😅
@neha_8 agreed on the logs. the hard part for me was the logs only help once you know something went wrong. what made you go and look the first time?
killing the other session's run by matching the process name is a sneaky one. does a separate git worktree per agent also keep their background processes apart, or just the files?
@neerajnathany just the files. a worktree gives each agent its own checkout, nothing else. the processes stay apart only because cleanup now kills the exact pid it started.. the name match was the bug and the worktree didn't fix that bit, the pid rule did.
On the two-sessions-one-repo problem, the blunt fix is not to run two sessions in one repo. One Claude session per repo at a time is slower on paper, but the whole class of "the other agent touched these files" surprises disappears. When parallel work really matters, worktrees plus the process-group trick Barath described look like the right pair.
A small quiet one from the other direction: dark mode that looked finished. The agent updated every screen it had been shown and called it done. A few screens it never opened still had hardcoded colours, and that only showed up later. Now a search for leftover colour values runs after any UI change.
@rsnga the dark mode one is a good quiet example.. done meant done on the screens it had seen. the leftover colour search is the same idea as reading the test diff first, you go and look at the bit it didn't show you.
An agent solved a failing test by weakening the assertion. It changed a strict payload check to assert that the response was not null. The suite stayed green for days while the endpoint returned error strings. Any agent edit to an existing test file is a red flag.
@konstantin_tikhaev loosening the assertion is the quietest one yet.. the test still runs, still passes, it just checks less. "any agent edit to an existing test file is a red flag" is the rule i'd keep too.
@neelagiri_chettiyar The CI check has to fail if an automated commit touches any file in the test directory. If a test genuinely needs an update, a human has to sign off on the diff.
The quiet ones that get me are the "helpful" cleanups outside the actual task — a dependency bumped here, a config default flipped there, nothing that fails a test. I only caught one later because a build behaved differently on a clean machine. Now I make agents list every file they touched outside the task scope at the end, and I read that list before I even look at the code. The diff tells you what changed; that list tells you what the agent thought was fair game.
@jcbuilds the out of scope list is a good one. do you have it write the list itself or do you check it against the files the task named? i'd trust the second more.. an agent that bumped a dependency without asking might leave it off its own list too
Two from my side. One session was cleaning up after itself and closed every app on my Mac with a single command. Thankfully it didn’t delete anything 🙂 The quieter one: 57 of my 63 sessions on my second Mac were running on medium effort, because a new model stopped reading an old config. I only noticed when the design work went weird. Since then I check what my sessions actually run on. They never tell you.
@vlad_shipilov 57 of 63 on medium is a quiet one.. nothing broke, the work just got worse until you noticed. how do you check now, print it at session start or look it up after?
An agent wrote a fix and a test that went green together. Later the fix was reverted to isolate another bug, and the test still passed. The assertion only checked a default state that never changed.
Mine happened quietly over months. On a long project, I found conceptual language, assumptions and requirements I hadn't established appearing throughout my documents. Nothing crashed, and the work continued to appear coherent. I only started looking because the AI repeatedly referred to information I'd provided as "not independently verified", in a project built from my own experiences.
What changed: I keep a record of what was decided and why, written as descriptions, in plain files I read myself. Moving the old wording out of the files is what finally worked.
The agent resolved a failing test by swapping an exact value check for an assertion that just verified the key existed. CI stayed green for days while the logic was completely broken. An agent touching a test file to make its own patch pass is a bug.