Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarHabr AI→ original

Claude Code wrote 781 of 870 commits, but pushed to production in the middle of someone else's interview

The solo developer behind Enigma AI has been coding with Claude Code since January. Across three repositories, 781 of 870 commits carry the agent's signature, or nine in ten. On October 22, the agent checked that the server had no clients and pushed a fix to production with a single command. While the command ran, someone started an interview, and a restart kills live sessions. The author managed to cancel the build by hand. The conclusion: the "it's quiet now" check belongs inside the deploy script, not in an instruction to the agent.

AI-processed from Habr AI; edited by Hamidun News
Claude Code wrote 781 of 870 commits, but pushed to production in the middle of someone else's interview
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1Two days later the build took 3.5 minutes, and the session was cut off 9 seconds in.
Key metric #2Deploys now poll the server every 10 seconds and wait up to 30 minutes for silence.
Ad goal changes in Yandex Directregistrations by day were 39, 14, 0.

One developer, three repositories, and an AI agent that writes nearly all the code: it's a familiar setup for a solo founder. The author of Enigma AI, an interview assistant, summed up a year of working with Claude Code. Since January, his three repositories have accumulated 870 commits, and the agent's signature is on 781 of them: nine in ten.

The subscription costs $200 a month, and the author calls it the best-value line item in his budget, hosting included. But the most telling story happened on October 22: the agent pushed a fix to production while a user was in an interview, and the server restart could have cut it off. For this product, a push to main means a build and a restart, and a restart kills every live session.

How the agent almost broke someone else's interview

On the morning of October 22, the agent was finishing a minor backend fix. It checked the server status, saw one connected client with no active record, and ran status && git push in one line. While the command was running, the client count went to two: someone had sat down for an interview. The agent tried to cancel the CI run but did not have permission to cancel it. The author cancelled it himself, in time.

Afterward, a rule was written into the agent's notes: the client check and the push run as separate steps, and the check happens right before the push. Two days later, the agent followed it perfectly. At 09:48:29 there were zero clients, so it pushed. The CI build took three and a half minutes. At 09:51:53 a user started a session, and at 09:52:02 production restarted, nine seconds later. The person had no chance to ask a question, and no credits were charged.

The author considers the rule itself flawed. The risk window lasts the entire length of the build, and no amount of checking right before the push makes those minutes go away. He had been asking his collaborator for care where a single check in the deploy script was needed. That is what they added: after the image is built but before the old container is stopped, the script asks the server every ten seconds whether any clients are connected. It waits up to half an hour. If people are still connected, the deploy fails and production stays on the old version. There have been no interviews cut off by a release since then.

This is not a complete fix. The proper solution would be for a session to survive a restart, but its state sits in process memory alongside an open socket to the speech recognition service, and reworking that alone would take a long time. The project also has no staging environment and no code review: the agent commits directly to main, and the author reads the diff before he types "push." He calls this a debt he owes.

Where the agent went wrong outside the code

The code itself draws no complaints. A report that "it's hearing worse" took the agent about three hours to track down. It ruled out speech recognition, audio capture, connection drops, and the knowledge base one by one, and found the cause: in a release two weeks earlier, the confidence threshold of the question detector had been lowered from 0.85 to 0.80. The program began answering fragments like "What's that called?" and charging credits for them. The same agent had lowered that threshold, though, while closing a ticket titled "question shown, no answer given."

Other failures:

  • A made-up fact. The agent assumed OpenRouter throttles requests when the balance is low, cited the documentation, and the hypothesis ended up in an alert text and in a reply to a customer. The documentation contains only a line about a small delay when the balance is below ten dollars.
  • Yandex Direct. The agent changed the conversion payment goal three times. The new goal had no history, and every edit reset the algorithm's learning. Ad-driven registrations by day: 39, 14, 0. The author rolled the settings back two days, and the ads took another week to recover.
  • A beautiful screen. The new landing page looked great on a 27-inch monitor, but at 1366×768 the registration button sat near the bottom edge, under the cookie banner. Non-ad registrations dropped by roughly a third. The author did not roll the screen back; he simply moved the buttons up, so this is a fix, not a diagnosis.
  • Testing the wrong thing. User instructions "weren't working"; the agent sent them straight to the model four times, got four successes, and suggested switching models. In reality, the Go struct had no field for the profile, and JSON parsing silently dropped the settings for three releases in a row.
  • Overstepping. The agent deleted on its own the reference set of ten anonymized sessions used to test the question detector, and it had to be rebuilt from scratch.

What to take from this

The agent is weak wherever the state of the world is not visible in the repository. It checked the status and then acted as if it would not change. It edits ads as config parameters and forgets about other people's small screens. Another problem is guesses delivered in the same tone as facts. The agent's own note puts it more precisely than the author does: an unverified hypothesis, repeated several times, turns into a "fact" in code, alerts, and customer replies. It keeps its notes itself; there are now 183 files in the folder.

The practical takeaway for anyone giving agents production access: limit not only permissions but the process too. If a check has to be atomic, like "no clients, so restarting is safe," build it into the script rather than asking the agent to be more careful.

Story

Key Questions Answered

How the agent almost broke someone else's interview?

On the morning of October 22, the agent was finishing a minor backend fix. It checked the server status, saw one connected client with no active record, and ran status && git push in one line. While the command was running, the client count went to two: someone had sat down for an interview. The agent tried to cancel the CI run but did not have permission to cancel it. The author cancelled it himself, in time.

Where the agent went wrong outside the code?

The code itself draws no complaints. A report that "it's hearing worse" took the agent about three hours to track down. It ruled out speech recognition, audio capture, connection drops, and the knowledge base one by one, and found the cause: in a release two weeks earlier, the confidence threshold of the question detector had been lowered from 0.85 to 0.80. The program began answering fragments like "What's that called?" and charging credits for them.

What to take from this?

The agent is weak wherever the state of the world is not visible in the repository. It checked the status and then acted as if it would not change. It edits ads as config parameters and forgets about other people's small screens. Another problem is guesses delivered in the same tone as facts. The agent's own note puts it more precisely than the author does: an unverified hypothesis, repeated several times, turns into a "fact" in code, alerts, and customer replies.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Free · Waitlist · Hermes + DeepSeek

Free 2-Day Vibecoding & AI Agents Intensive

Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.

Join the waitlist →Nomad AI Workspace
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Claude Code wrote 781 of 870 commits, but pushed to production in the middle of someone else's interview https://news.hamidun.com/en/news/18676/claude-code-wrote-781-of-870-commits-but-pushed-to-productio

What do you think?
Loading comments…