Making Rails Global IDs safer - Julik Tarkhanov
12-Dec-2025 551
The new LLM world is very exciting, and I try to experiment with the new tools when I can. This includes building agentic applications, one of which is my personal accounting and invoicing tool - that I wrote about previously
As part of that effort I started experimenting with RubyLLM to have some view into items in my system. And while I have used a neat pattern for referencing objects in the application from the tool calls - the Rails Global ID system - it turned out to be quite treacherous. So, let’s have a look at where GlobalID may bite you, and examine alternatives and tweaks we can do.
Making Rails Global IDs safer - Julik Tarkhanov #ruby #rubydeveloper #rubyonrails #Making #Rails #Global #safer #Julik #Tarkhanov https://rubyonrails.ba/link/making-rails-global-ids-safer-julik-tarkhanov