SwiftLee Weekly - Issue 348


This week's SwiftLee Weekly covers:

  • Agent hooks in Claude Code, Cursor, and Codex explained
  • AGENTS . md files with personal rules, while working in teams
  • Close-sourcing open-source projects

Next week, I'll be releasing the first 3 modules of my new AI Fundamentals course. Make sure to join the waitlist while you can by clicking here.

Enjoy this week's SwiftLee Weekly!

THIS WEEK'S BLOG POST

​Agent hooks in Claude Code, Cursor, and Codex explained​

Your agent forgets a rule in AGENTS.md every now and then, at least, that's my experience. A hook never does and it really impacted my way of working. In this week's article, I'm explaining how hooks work in Claude Code, Cursor, and Codex, and show one that filters noisy Xcode build output.
​avanderlee.com​

SPONSORED

​From 25-minute to 8-minute iOS builds​

A sample iOS build drops from 25 minutes on GitHub-hosted runners to 8 minutes on WarpBuild. You get M5 Pro Macs, unlimited macOS concurrency and per-minute pricing from $0.08. Keep your workflows and change one runs-on line. Use code START50 for $50 in free credits. Learn more.

CURATED FROM THE COMMUNITY

​Guidelines and Guardrails Belong in Git​

How do you deal with personal AGENTS . md rules while working in a team? Allen Pike shines a light on this matter.
​allenpike.com​

​SwiftData rollback after a failed save​

Storing data failed, but what do you do at that point? What if a SwiftData save fails? Roland Leth shares his experience of unexpected behavior.
​roland.leth.ro​

​Bring Receipts​

I used to rely on automated PR reviews, but I'm more and more relying on local reviews that happened either way. Agentic development is changing how we used to work, and this article by Alex Grebenyuk discusses one of those cases.
​kean.blog​

​Closing Up: Why I’m making some of my projects closed-source​

What I experience with my article, Daniel Saidi experiences with open-source projects. People care less, copying seems more normal than ever. I've seen my open-source projects being copied too. It's sad, but the new reality.
​danielsaidi.com​

​Interesting ways of using Swift optionals​

John Sundell makes you think different about optionals in Swift. An unexpected learning journey for something that feels so fundamental!
​swiftbysundell.com​

SWIFT EVOLUTION

An overview of last week's Swift Proposal state changes. Check them out when they're in review, as it's your opportunity to influence the direction of Swift's future.

WHAT I'M WORKING ON

Hello, Metal

The iPhone Duo is here for a while, so is the Simulator inside Device Hub. Screenshots aren't required for submission, but soon will. There's a big difference with the Duo Simulator compared to others: it allows you to adjust the fold.

RocketSim supports recordings and screenshots, so I had to add support for capturing that folding state. What started as "Let's use Xcode Instruments to optimize SwiftUI", ended in "Let's rewrite to RealityKit" and followed by "Let's use Metal and move to the GPU".

The thought I had?

"Why not, the agent can do it either way!"

Which is still a very weird thought. I would've never picked Metal a year ago, as I have no experience in it at all. It would not be optimal, it would take me weeks to learn that new technology and I would not even know if it would work well.

Now, one week later, it works super well. Performance is unlike anything I had before. It took me a lot of instrument traces, but I simply couldn't accept a lower quality barier as agents give no excuses. Yet, it's a blessing and a curse: you'll have to watch your deadlines and prevent yourself from endlessly optimizing. I guess the freedom as an indie developer doesn't help here, ha!

UNTIL NEXT TIME

Refer one developer. Get my 5 agent workflows

Know a Swift or iOS developer who would enjoy SwiftLee Weekly? Refer one confirmed subscriber, and I’ll send you the five agent-powered workflows I use for marketing, App Store metadata, support, performance, and Xcode disk cleanup.

Your rewards continue from there: reach three referrals to unlock 50% off RocketSim Pro Yearly.

Your personal referral link

​[RH_REFLINK GOES HERE]​

Share by email · WhatsApp · LinkedIn · X/Twitter · Bluesky​

Rewards:

  • 3 referrals unlock 50% off RocketSim Pro Yearly
  • 10 unlock Swift Concurrency Course access
  • 30 unlock RocketSim Pro Lifetime.

​See your rewards and progress →​

Thank you so much for your support, and until next Tuesday,

Antoine


Thanks for being a SwiftLee subscriber!
​
All my content is available to you for free. Like what I do and want to support me?
​Buy me a coffee or try RocketSim, an Essential Developer Tool as recommended by Apple.

This newsletter is built with Kit.
Need my experience? Book a 1:1 with me.

You're receiving this because you signed up for SwiftLee Weekly. If you'd prefer not to hear from me, you can manage your preferences here.

SwiftLee Weekly by Antoine van der Lee

Swift Evolution updates, 5 top community articles covering Swift development topics.

Read more from SwiftLee Weekly by Antoine van der Lee

This week's SwiftLee Weekly covers: Xcode 27 MCP resulting in higher token costs AGENTS.md best practices iOS 27 weird Dynamic Island behavior Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST How the Xcode 27 MCP can lead to higher token costs when navigating the Simulator Your agent doesn't need a screenshot to navigate the Simulator, it needs to know what's on the screen. I realized this early when working on the RocketSim CLI and improving it a lot, but this week I found out many...

This week's SwiftLee Weekly covers: some View? A Swift 6.4 change for package maintainers A new CLI shipped in Xcode 27.2 beta Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST SwiftUI Performance: Find Redraws in Xcode Instruments Agents write more and more of our code, including SwiftUI Views. What it doesn't do as well yet is ensuring great performance, preventing unnecessary redraws. Luckily, there's a way to do this!avanderlee.com SPONSORED Run cloud agents with Xcode on real...

This week's SwiftLee Weekly covers: How to clean-up Xcode-mess with worktrees Using Xcode 27's localization skills outside of Xcode Post-launch marketing for apps Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Agentic iOS Development with RocketSim and RocketTrace Practical advise this week based on 4 workflows that I regularly use, combined with the tools that fit the prompts I share. If you're into agentic development, you'll probably have some takeways here.avanderlee.com...