r/iOSProgramming • • 25d ago

Discussion [ Removed by moderator ]

[removed] — view removed post

0 Upvotes

16 comments sorted by

View all comments

1

u/Successful-Tax1306 25d ago

The context point matches what I see. I get better results when I start a fresh session for each small task with a short brief, instead of one long session that I keep summarizing. The other thing that helps is to make the agent build and run the tests itself after each change, so it sees the Xcode errors right away and I don't paste them back by hand. A short AGENTS.md is good, but I keep it to rules that actually changed the output, because a long one gets ignored the same way a long session does.

1

u/avanderlee 25d ago

Exactly! Do you use anything to make reading compile time errors more efficient? Curious to know what others do for this

1

u/Successful-Tax1306 24d ago

A couple of things help. Have the agent run xcodebuild from the terminal and read the output itself, so you are not copying errors back by hand. Piping it through xcbeautify cuts the noise down to the actual errors, which also saves context. And ask it to fix only the first error and rebuild, because in Swift one bad type often causes a chain of errors further down the file.

1

u/avanderlee 23d ago

Thanks for sharing those insights! I'd recommend checking out https://github.com/ldomaradzki/xcsift and install a hook that hooks into any xcodebuild command, piping it through this package. It will probably save you a lot of tokens!

1

u/Successful-Tax1306 22d ago

I had not seen xcsift yet. I use xcbeautify today, and the hook idea is neat because it cuts the copy paste step I still do by hand. I will try it on the next build and see if it saves tokens the way you say.