DenBeste explains the Matrix. Very, very similar to my train of thought although I could never explain Agents (why would they kill those who needed to escape). His is a kludge, but a working one.
I plan on expounding on this even more as I’m an avid Matrix fan even though the 2nd & 3rd movies sucked.
Hat Tip Ace