logoalt Hacker News

DennisL123today at 7:47 AM1 replyview on HN

If agents can already read and rewrite code, literate programming might actually be unnecessary. Instead of maintaining prose alongside code, you could let agents generate explanations on demand. The real requirement becomes writing code in a form that is easily interpretable and transformable by the next agent in the chain. In that model, code itself becomes the stable interface, while prose is just an ephemeral view generated whenever a human (or another agent) needs it.


Replies

taconetoday at 7:53 AM

I am already doing that. For performance, I am just caching the latest explanation alongside the code.