So, I wasn't sure how well or poorly this would go...
# development
p
So, I wasn't sure how well or poorly this would go, but I asked GPT-5.2 to make a pants backend for running the ty typechecker, modeled on the pyright one, and it seemed to have done it: https://github.com/pantsbuild/pants/compare/main...kuza55:pants:kuza/ty I tested this on our repo and it seems to work (in that, it generates a bunch of type errors lol). It's only a few hundred lines of code, if anyone feels like taking a look at it.
Oh, I guess I missed the fact that Suresh already had a plugin he made for ty https://github.com/sureshjoshi/pants-plugins/tree/main/pants-plugins/experimental/ty Still pretty interesting that it worked
f
I've been having mixed success using AI to work on pants code. I just let Cursor pick the model for me, so I it changes from time to time, but it mostly does alright. Sometimes it needs some very detailed prompting.
And it's gotten WAY better in the last 6 months or so. It used to just go totally off the rails making stuff up.
p
I personally did not like Cursor, used Claude Code for a bit, but I have been using Codex quite a bit since 5.2 came out.
But I haven't tried Cursor in like 9 months or so
This commit is entirely just me telling it to clone the pyright stuff and pointing it at the ty docs and telling it it should be using the pip install instructions. I don't actually know if it did the right thing since I haven't written any pants code before, but it seems reasonable...
f
I've got some teammates who are all about Cursor and who've written a bunch of plugins for it, so I use it to minimize friction. I haven't looked into alternatives.