The hard part was picking when to trigger it. Too early and you're throwing away useful context. Too late and the model's already struggling. I ended up just using a simple token count — nothing clever, but it works.
And yeah, the Swift angle was genuinely fun. Defining tool schemas as Codable structs that auto-generate JSON schemas at compile time, getting compiler errors instead of runtime API failures is a huge win.
I used python+rich, but window resize wrecks UI layout
This isn't the issue with nodejs based stuff.
I've got some ideas inspired by this project. It's promising.
Also, brave calling it swift-claude-code given Anthropics behavior.
On the naming fair point, already renamed the CLI binary after an earlier comment here. The repo name is more about discoverability.
The thing that really stuck out to me was the dot syntax:`.SomeVariable`. I'm guessing those are enum accesses where the compiler can figure out what it is from context? It's all over Zig, and it seriously screws with me lol. I know it's a me problem, but I can never keep straight what's what.