Ah, there’s even a term for it:
https://en.wikipedia.org/wiki/Generation_effect
The generation effect is a psychological phenomenon whereby information is better remembered if it is generated from one’s own mind rather than simply read.
hfgl with your coding agents