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

推荐订阅源

F
Fortinet All Blogs
罗磊的独立博客
IT之家
IT之家
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
博客园 - Franky
博客园 - 聂微东
博客园_首页
爱范儿
爱范儿
量子位
博客园 - 三生石上(FineUI控件)
G
Google Developers Blog
Martin Fowler
Martin Fowler
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator Blog
Vercel News
Vercel News
腾讯CDC
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
Engineering at Meta
Engineering at Meta

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Coding agents are good at writing Swift. They're bad at f...
Joshua Brackin · 2026-06-23 · via DEV Community

Joshua Brackin

I've spent the last few months pointing AI coding agents at real Swift and Xcode work and watching where they come apart. Not "write me a login screen" demos. Tasks with a build, a test target, and a finish line the agent has to reach on its own.

Start with the part that surprised me: the first draft is usually fine.

Give a capable model a reasonable Swift task and the code it writes on the first pass is often correct, or close. The view is sensible. The types line up. If writing Swift were the bottleneck, these tools would already be done.

A certain kind of post likes to claim the models can't write Swift. They can. They're good at it and getting better. So the interesting question is what happens after that first draft, in the gap between "looks finished" and "is actually right."

The loud version of the build-loop complaint also gets something wrong: on a modern harness, the pure "won't compile" loop is mostly handled. Claude Code and Codex won't accept their own work while the build is red. They churn on a compile error quietly and hand you something that builds. If your agent still ships you red builds, that's a harness problem with a known fix.

The failures that survive are the ones the compiler can't see. Those are the ones that cost me time.

It builds fine and isn't what I asked for. The most common one now. The code compiles, the tests it wrote pass, and the behavior is subtly or completely wrong against what I actually wanted. The agent has no way to check intent. Green is not the same as correct, and green is the only thing the agent knows how to chase.

It compiles and races. Concurrency is the sharp version of this. Swift's compiler catches a lot, but you can still get code that builds clean and has a data race that only shows up under certain timing. The agent reads the green build as success and moves on. When the failure does surface, it usually wants a small redesign rather than a one-line fix, and the redesign is exactly the move the agent won't reach for.

It fixes one thing and quietly breaks another, then loops. This is the one that eats the most of my afternoon. The agent lands a real fix, hits a different problem, and while chasing the second problem it undoes the first. A few turns later it's back to something it already solved. Left running long enough I've watched it oscillate between two broken states: A breaks B, the fix for B brings back A, around and around. It has no durable sense of "I tried that and it didn't work."

It writes code I wouldn't ship. Compiles, runs, still the wrong shape. A pattern that fights the framework. A structure that ignores how the rest of the app is built. Fine for a throwaway. Not fine in code I have to live with.

None of these are language problems. The model knows Swift. What it's missing is everything the compiler can't tell it: whether the result matches what I meant, whether it holds up at runtime, and whether it's the kind of code an experienced developer would keep.

That last gap is where the real expense lives, and it's not the one people reach for first. The talk is usually about token cost. What I actually feel is attention. An agent that writes good Swift and then needs me watching it, stepping in every few turns to keep it from circling, hasn't saved me the work. It's converted writing into supervising. Some days that's a fine trade. A lot of days it means the thing only really runs when I'm sitting next to it.

I don't have this solved. What I can say is that the failure modes are consistent enough to name, which is more than I expected when I started measuring them. The progress I've made has come from changing the loop around the model, what it checks and what it remembers between turns, more than from swapping in a smarter model.

So I want to know whether this matches your experience. For those of you running agents against real Apple work: where does it actually break for you now that the build mostly takes care of itself? The intent mismatches, the races that compile, or something I'm not watching for yet?