anyone who used those coding agent can already see how it works, you can usually see agent fetching files, running commands, listing files and directories.
i just wrote this comment so people aren't under false belief that it's pretty much all coding agents do, making all this fault tolerant with good ux is lot of work.