https://en.wikipedia.org/wiki/Bicameral_mentalityI had a Greek teacher told us that one theory for why people in ancient times heard God and had prophets etc. was this still developing mode of cognition.
Comparing us to computers reminds me of something else
https://en.wikipedia.org/wiki/Modularity_of_mindI'm not sure if this is what I'm looking for, but I learned of something like it when I described Disco Elysium's skill system to a computer engineer friend of mine. Basically it's that consciousness exists as a collection of autonomous mechanisms. I can't remember what it was anymore, but this sounds like it.