What about making a 20th level Clone Master with Contingency in place to teleport his body back to his Operations Area where he keeps his back ups when he dies? AM attacks, kills him, his clone activates, body with all his nifty gear teleports back to base, he gathers himself up, and is now in his own personal headquarters with all his nifty gear, and whatever else he's got in there, and knows exactly what AM and BATTY BAT look like for Divination spells.
Not really a build per say, but just an idea, make a character to which death is only a minor inconvenience.