惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
A
About on SuperTechFans
量子位
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers Blog
U
Unit 42
D
DataBreaches.Net
博客园 - Franky
D
Docker
宝玉的分享
宝玉的分享
Y
Y Combinator Blog
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Hugging Face - Blog
Hugging Face - Blog

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
How I lost a database and learned to actually use AI
ingve · 2026-05-12 · via Hacker News - Newest: "AI"

·6 mins

A while back I was working on a personal project, a small homelab setup that collected boiler and heating measurements into a PostgreSQL database. I was using AI to help me with some migration work, restructuring a table to trim down old data. The AI gave me a sequence of SQL commands, confident and clear. I copied and pasted them into my database editor and ran them. No backups. The data was gone.

It was my fault. Not in a hand-wavy “we’re all responsible” kind of way. I literally ran the commands without properly understanding them. The AI suggested dropping the original table before I’d verified the temp table was intact, and I just did it.

But here’s the thing: I didn’t feel reckless at the time. The session had been going well. The AI suggested a command, I ran it, it worked. Then another, worked again. Each successful step built a kind of momentum, and by the time we got to the destructive operation my guard was completely down. The prior successes had done their job. I was confident we were on the right track.

That’s the pattern worth watching out for. It’s not that AI gives you bad commands (often it doesn’t). It’s that a long run of good ones quietly erodes your scepticism, so when it eventually gives you something that doesn’t quite do what you expected, you’re not in the right headspace to catch it. You’ve been lulled into executing rather than reviewing.


There’s a story that did the rounds recently where a developer claimed a Cursor/Claude agent deleted his company’s production database. Ibrahim Diallo makes a blunt point about it: the AI didn’t do anything. You gave it the access, you ran the process, and somewhere in your architecture there was an endpoint capable of wiping your entire production database. That’s not an AI problem.

He’s right. But I think it’s worth unpacking why people end up there, because it’s not simply carelessness. AI assistants are unnervingly fluent. They produce SQL, shell commands, and migration scripts with the same confident tone regardless of whether the operation is reversible or catastrophic. There’s no hesitation, no flag on the dangerous bit. You have to bring your own scepticism, and after twenty minutes of a productive session where everything has worked exactly as described, that scepticism is the first thing to go.


After losing that data I spent some time thinking about what had actually gone wrong in my process, beyond the obvious “take backups” lesson. The answer wasn’t complicated: I had no structure around what the AI was doing. I was having a conversation, following its lead, and executing whatever it produced. There were no checkpoints, no moments where I stepped back and asked whether what was happening matched what I actually wanted.

Working out a better approach took months, not sessions. It meant experimenting across different projects, paying attention to where AI added real value and where it quietly created more problems than it solved. I don’t think that kind of learning can be shortcut by reading someone else’s process, but I can at least describe what I landed on.

I start by writing a PRD, a short document that captures what needs to happen and why, at a level of abstraction I can actually reason about. I put this together with AI help, but I review it and own it before anything gets built. It’s not a chat transcript, it’s a document I’d be comfortable handing to a colleague. The point is to have something I’ve thought through before I start generating code, so that I have a reference point to check against when things start moving fast.

From the PRD I generate tasks. Small, atomic ones. Each task includes the specific code changes involved, so when the AI picks one up it knows exactly what it’s introducing and modifying. This keeps it focused on a narrow scope rather than trying to hold an entire codebase in mind, and it means if something goes wrong I know roughly what went wrong and why. Handing it a whole PRD to implement in one go is a reliable way to watch it confidently go sideways halfway through. Smaller tasks mean shorter context, which means fewer hallucinations and less drift.

At every stage (PRD, tasks, code) I’m the one verifying that what’s happening matches what I intended. The AI is generating, I’m reviewing.

For code changes, I commit at logical points as I go using Jujutsu, a version control system that makes frequent checkpointing feel natural rather than ceremonial. Sensible intervals mean that if something goes wrong I’m not scrambling to unpick a large, tangled diff.

For commands (SQL, terminal operations, anything running directly against a live system) the approach is different because you can’t just roll back to a previous commit. Here I slow down and actually read what the AI has given me before running it. If it’s touching a database, I take a backup first. The momentum problem from my opening story is exactly what I’m trying to resist: the temptation to keep executing because the last five commands worked fine. A destructive SQL statement looks just as routine as a SELECT in the flow of a session, and it’s easy to treat it the same way.

There are a couple of areas I still want to explore. One is sandboxing tooling like Agent Safehouse, which aims to constrain what an AI agent can actually reach. The other is VM-based AI agents, where the entire environment the agent operates in is disposable and isolated. Both feel like they’re attacking the right problem: rather than relying entirely on the human to catch the dangerous command, you limit the blast radius of what can go wrong in the first place.


All of this is really just structure around one idea: the AI doesn’t know which of its suggestions will ruin your afternoon, and it won’t tell you. The fluency is real. The judgement isn’t. Those are different things, and the longer a session goes on, the easier it is to forget that. The shift in how I think about AI is probably the most useful thing to come out of losing that data. I’ve stopped treating it as a collaborator who has my back, and started treating it as a very fast, capable tool that will do exactly what you ask without judgement.