r/Xcode • u/chitgoks • Oct 28 '26
First time using claude in xcode and this is what i noticed
It burns through tokens pretty fast. Even if i specifically indicate what i want and which files/folders to only look at.
Its token usage is pretty bad compared to other working environments like VS Code and IntelliJ.
It's like, Claude is I agree the best so far when it comes to development compared to CoPilot, ChatGPT but when used in XCode, it's just bad. CoPilot usage of its tokens were more efficient.
Already twice where my session reached its max using Claude.
Tips are appreciated.
9
Upvotes
5
u/MidnightZL1 Oct 28 '26
Use Claude desktop
1
u/chitgoks 29d ago
thank you for all your tips. i will go over them and check and apply it on my end
1
u/Individual_Author956 29d ago
I use Claude which connects to Xcode via MCP. It works great, I’m on the pro plan and I only hit limits if I do big sweeps on the code base. For normal day to day stuff it works amazingly.
2
u/Cornell-1980 Oct 28 '26
I've had the exact opposite experience. Started using Claude agent inside Xcode about 7-8 months ago on the $20 a month plan. Regularly hit the five hour limit, sometimes hit the weekly limit. Several months had to purchase additional tokens. In the last few months, however, I almost never hit even the five hour limit, and no chance of hitting the weekly limit. I have it set to use Opus + Sonnet. Might be different if you are using Fable.
1
u/Rare-One1047 Oct 28 '26
It burns through tokens when adding files to the XML project file. I told Claude to ask me to do it, and that helped a lot.
1
u/OrangeFire2001 Oct 29 '26
I only hit the token limit once when Claude was going wild, trying to figure out parts of my code that could’ve been better handled by a more tightly, confined command of what to do or not do. When I’m very explicit in what I wanted to work on in the functions that I wanna add then it does what I want and I haven’t hit any limit. But then again I’m being very surgical with how I’m using it. I’m not saying “hey build this entire feature in this entire user interface“
1
u/nicholasderkio 28d ago
I’ve found this too and my understanding is it’s a lot to do with the system prompt the Xcode integration sends, but I haven’t been able to get Claude Code to make changes that don’t break my whole app meanwhile Claude Agent in Xcode just manages to deliver.
1
u/_spongefork 24d ago
I recommend going straight to the CLI in tabs in your Terminal. New session: New tab. This is the most efficient way. Monitor the changes in Xcode, but using Claude there costs tokens just for the communication bridge inefficiency compared to the CLI which is the most direct way. Just open it in your workspace directory with a clear CLAUDE.md and you're set.
1
u/L8G8app 24d ago
Use Claude desktop and add the folder where your Xcode app project lives and Claude desktop will just work in that folder. If you add the folder where you have your php or js backend it will update the files there too in tandem with the swift files.
1
u/silversoftling 23d ago
Happened to me too
0
u/ElectricKoolAid1969 Oct 28 '26
Claude may be "the best" for coding, but even with the desktop conversation mode I find that it burns through credits VERY quickly.
For me, this means that I can get the most done with ChatGPT in the app.I essentially never hit a limit even on the $20 plan.
0
u/TronAres25 29d ago
Claude code desktop to Xcode is great I’m on max.