Mage Against the Machine
I trimmed off the rest of the description, there were spoilers in it that would make you regret reading the description of the book!
The synopsis of “harry potter meets the terminator” is the best description I could possibly suggest. There’s legitimately 3 or 4 chapters of world building that made me wonder which world being described was going to to be the real one, with some obvious hints which it was going to be. When that resolution actually game through though…I was shocked about how deeply I felt it worked and how crazy it was not no one had really gone all out like Shaun Barger did with Mage Against The Machine.
If you’re a fan of The Magicians, Harry Potter, Terminator, or any AI takes over the world stories, this is a unique pairing that really did it for me.