There was a time where I was often stuck for an hour with nothing but my phone and I kept copying file contents into chat for context so I made this and it works surprisingly well.
Not too hard, aka. I have a friend who did this. Rather than a text message, he uses IRC, but the effect should be the same. IRC is probably a little better.
Assuming you use Claude Code, the concept to look for is 'channels'. It's described as being for sending messages to Claude, but they work both ways. And I see one of the canned channels is iMessage.