Going back to agents and making them write scripts in Ruby (which is just an excuse for me to share more Ruby code) you can just write this into a system prompt:
Also I run an analysis on last week sessions across all 4 agents I am using (Claude Code, Codex, Cursor and Amp) and here is what I found:
Still they like Python and still wrote small scripts in Python. Maybe it was required as maybe Ruby did not had something, I did not check it