Getting used to coding with AI
I've been working with AI on work and personal coding projects for several months now. I'm no expert but I do think some of what I have been doing could be helpful to others. So let's try to describe what I've learned.
Cloud or Local
Don't use expensive models unless you really need to
Using a cloud subscription with any of the major AI services is a great way to start. Something like OpenRouter or Claude Code can be reasonably priced. But the more advanced the model, the more expensive it is. You don't have to use a frontier level model to edit text, create scripts, or do simple work. I have found relatively cheap models like DeepSeek Flash to be fast and perfectly reliable. Only switch to a more expensive model once you have found that the cheap model is failing with a complex problem.
Do what you can to protect your system
Don't allow the agent to make destructive changes to your code or system. Don't let it read your SSH keys. I'm currently using CC Safety Net.
Local can work if you have a system that can run it
I have found that much of what I'm doing with AI can be done with a local model. It can be maddening to set up and tweak settings to make things fast. But, not sending possibly sensitive data to someone else's computer is a nice benefit. Just keep in mind you still need to do the same work to protect your computer and data.
I'm currently using OpenCode and oMLX with the Qwen 3.8 27B model.
Getting started
-
Don't blindly give permission: Don't give full disk access. Protect your password, keys, and private data.
-
Check your work: Write code and ask the agent to check your work. You will be amazed at how many errors it finds. This is a great way to learn.
-
Create Docs: Ask the AI to write README files and document your code or app. Don't forget to have the AI update your docs when you make changes.
-
Create test data: Need test data for a new piece of code? Have the AI create test files or data for you.
-
Find bugs: Think you have a bug, ask the AI to verify whether it's real. It's good just to ask every new model you work with to examine the code and point out any issues.
-
Create Unit Tests: Testing your code takes too much time. Have the AI do it. And have the AI keep the tests up to date with your code changes.
-
Review what the AI wrote: When you have the AI make changes, review them. Reading what it wrote is a great way to learn. And you may catch it doing something dumb.
Go Deeper
-
Use established skills: Use third-party skills like AI Skills for Real Engineers. But don't just download and use any skill you find out there. Make sure you understand what the skill is doing. You may need to review the skill text and make sure it's not malicious.
-
Plan your work: Use a skill like Grill-Me to plan out a new piece of work. It will ask you questions to make sure you understand what you're asking for. It will write a spec and break it up into issues to be implemented.
-
Break things into testable chunks: For large changes or projects, don't try to implement them all at once. Work with the AI to break them up into steps.
-
Implement, Test, Review: Implement a piece of work. Test that work. And review what was done against the spec. Repeat. That sounds like what we've always done, right?
Included Apple Foundation Modal
- I had no idea this was included with the latest update.
- It's part of the AI upgrades you get with MacOS 27.
This could be very useful for processing text locally with no cost. You can use it to:
- Summarize
- Convert text formatting
- Create JSON test data
Watch on YouTube
I've always loved the idea of Asimov's Laws of Robotics The idea of passing along some form of morality to the machines. Let's keep them from being used to harm us or others.
- A robot may not injure a human being or, through inaction, allow a human being to come to harm.
- A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.
- A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.
This Code of Conduct Article from Microsoft has the same feeling but for AI and Software.
-
People matter more than AI. The whole document in 5 words.
-
The idea of model welfare is wrong. AIs should not have rights or legal personhood.
-
An MAI Model should not do anything to meaningfully violate this Code of Conduct.
-
If it’s finish the job or break the Code, it fails the job.
-
We’re not racing to build a superintelligence that can slip its own leash.
-
Interruptible, correctable, shut-down-able. If it isn’t, we don’t ship it.
-
No neuralese. If humans can’t understand it, humans can’t oversee it.
-
Our AI should make you sharper, not dependent.
-
Pluralism, yes. Moral relativism, no.
-
We’re as clear about what our AI must never do as about what it will do.
This all makes so much sense and is so counter to the goals of many of the 'leading AI companies' current behavior.
Local Qwen and some magic Skills
Qwen 3.8 27B
I have been using the Qwen 3.8 27B MLX based model on my local machine and it's amazing how good local models are getting. It can spend a large number of tokens reasoning, but the output from this model is really good so far.
The model I'm currently using is Jundot/Qwen3.8-27B-oQ4e-mtp. I'm running this with oMLX on a Mac Studio.
Matt Pocock skills
I've also been spending some time learning to use skills to help with software work locally. I was messing with Superpowers, but found it too broad. It's better to focus on a smaller change at a time. It just didn't feel right for me.
I recently found some videos discussing skills by Matt Pocock: Skills For Real Engineers. The skills I have used in this set have been great. They are focused on specific problems and do a good job at keeping you focused on the current task.
- grill me and grill-with-docs are both great.
- handoff lets you postpone work for later without losing any context you already have.
- teach builds lessons so you can learn almost anything.
- improve-codebase-architecture helps you with big architectural changes.
Every one of the tools I have tried has done a great job. You can find videos related to these skills and other topics on his YouTube.
Options For Local AI
Siri in the iOS 27 beta is great for world knowledge and for asking about things on device that involve your personal data. This is going to be a really big release that will improve everyone's experience using Apple devices. But if you want to do programming-related tasks without paying a fortune, you have some great options.
I'm currently running oMLX and Opencode on my Mac Studio. The models I've been using the most are "Qwen3.6-35B-A3B-OptiQ-4bit" (a 35-billion parameter model compressed to 4-bit quantization) and "Qwen3.6-27B-UD-Q6_K_XL-mlx" (27 billion parameters at 6-bit quantization). It's really amazing how well these local models perform.
I've already created multiple scripts and apps using just these local models. I've found and fixed numerous issues using these tools. It can be as simple as having them review my changes and point out issues I missed. You really don't have to spend any money to do even complex work.
Why AI is like a Horse.
Trying to understand how AI works and why it's not "Smart". Honestly it's amazing it works at all.
Watch on YouTube
AI Comfort Levels
For quite a while I have been reluctant to invest much time into using AI for more than setting alarms, timers, and adding things to my reminders. But, I've been playing around with some of the free tools lately and I'm pretty impressed with whats possible now.
Siri AI
With the beta versions of iOS 27 and MacOS 27 I have been able to ask Siri to find info buried in my personal data. The assistant has been much more useful than in the past. It can perform more complex tasks with multiple steps.
One thing Siri AI doesn't seem to be very good at is programming. They seem to have limited it for these initial releases. You can use the other popular models with X-Code now, but I haven't given that a try yet.
Codex
I have also been playing with ChatGPT and Codex. I'm only using the free version for now. It looks like it can get expensive quick. That's one of the reasons I hope Apples new OS's will be able to get close to whats possible with Codex.
Using Codex to fix filename issues
One thing I used Codex for recently was fixing the names of music video mp4s I have in my collection. There are around 4500 files in this folder. Some files are named poorly and there are even a few duplicates.
I started by asking Codex to look at the folder and verify how many files there were. Then I told it what the file name pattern should be and asked it to compile a list of files that did not meet this pattern. There were about 250 files it found that were not named correctly. I was going to turn this into a renaming script, but I asked Codex to do this for me.
Not only did Codex create the script, but it also properly renamed the files based on the pattern I previously described. It was able to smartly determine which parts were the artist name, which parts were the song name, and when there was extranous data that was ok to remove. I verified that the file was correct and ran the script in the terminal.
The next task was to identify duplicate files. It was able to find 12 or so files that might have duplicates. Some of these were live versions that I did not change. But, again it did find a few files that were duplicates, even though the file names were different.
This all saved me several hours.
Using Codex to create an application
I use Jellyfin to serve up video files, movies, tv shows, and Music Videos on our local network. I'm not really happy with most of the clients on the Apple TV. They work, but never in the way I want.
I spent a few hours over the last couple weeks creating a proof of concept client in Javascript and HTML to login to our server and play content. I was able to get shuffle play working properly for our music video library.
What I want to do is the same thing in an Apple TV App that works the way I want it to. I decided to use Codex to create the first version of this App. I described what I wanted to Codex. It created a new project for me, that almost worked. I had to tell it to fix a few things to make it work correctly in X-Code. A few minutes later I had a basic App that will let me login to our Jellyfin server, navigate through the Libraries, view items in the libraries, and play MP4s.
There were a few issues with images that I was able to get it to fix with another prompt. It was also loading all the items in the music video library at once. So I asked it to add pagination to that view. Again, in just a few minutes it made the change and had most of the functionality my prototype had.
Unfortunately that was when I received a warning that I was about to run our of usage for the month. So, in a 10-15 minutes I was able to duplicate most of what I had done by hand in 4-5 hours. Kind of amazing really.
All of this is easier to manage when you know what to ask for and how to describe what you want.
I'm constantly amazed by what these tools can and can't do. Some things that seem incredible are easy for them, while other things that we take for granted are very hard for these tools to get right. Hmm, so I wonder how much it would be to run my own models for development locally?
Mac Studio Upgrade - M4 Max
I originally got the first Mac Studio with an M1 Max. I loved it. This year I upgraded to the new M4 Max. Noticeably faster than the M1.
What I Got This Time
- Apple M4 Max chip with 16‑core CPU, 40‑core GPU, 16‑core Neural Engine
- 64GB unified memory
- 2TB SSD storage
Great desktop computer, fast as hell. Should be great for years.
Also
Some minor site updates. Mostly in the Toy-Box.
- Changed controls to menus
- Menus work via right-click or button that shows up for mobile.
- Added Mandelbrot toy.
WWDC 2023
I watched the keynote, but I still need to watch the Platform state of the Union
Watch on YouTube
It was a packed presentation with a bunch of cool new features and a new device.
New Macs
They announced a new 15" Macbook Air, an updated Mac Studio, and an updated Mac Pro. The Pro is basically the same as the studio, but with more ports, better cooling, and lots of card slots. If I were updating my main computer this year, I would probably go for a nearly maxed out Mac Studio. But, my M1 Max Mac Studio is still going strong. I should wait till the next update.
OS Updates
There were a bunch of great updates to all of the OS's, but I think I'm the most interested in the Watch OS updates, and the iPad OS updates.
Apple Vision Pro
All of the rumors had me super hyped for this part of the presentation. And, it was better than I expected. They pitched it as a productivity AR centric device. But, they showed plenty of VR functionality that has me hopefull for VR games as well. I think showing it as an entertainment and productivity device is a really smart way to sell it. The price is high ($3499), too high for just a gaming device.
Don't get me wrong it will have to be a good gaming device as well. But, that's in addition to everything else. I think they will reveal VR controller support at some future point. It's just an obvious addition.
Saving Time
I recently found myself needed to rename a bunch of files in a fairly repetitive way. Many files, similar changes, but different enough to require visual inspection.
After doing the first set manually, I thought it would be easy to write a script to handle it, but that seemed like overkill. My next thought was to use BBEdit and regular expressions to manipulate the files.
BBEdit has two features that made this much easier than I expected.
- Apply Text Transform
- Found in the Text menu "Apply Text Transform..." is a feature that lets you manipulate text in one or more files in a programatic way. In my case I added line numbers to the front of a list of file names.
- Pattern Playground
- Found in the Search menu "Pattern Playground" is a great tool for testing regular expressions against your current text. Once you have perfected your expressions you can use them in to find and replace text in your document.
I used these tools to prepend line numbers, then change the text to a list of unix move commands with the line number replacing part of the destination file name.
There are so many features in BBEdit that I haven't used, but I continue to find it to be better than fancier code editors that I have paid more money to use.
