It works on your real repository
Not a pasted snippet or an uploaded snapshot. Agents open the files you have open, edit your working copy, run the build where the code actually lives, and commit. What you get back is a change on disk, not something to copy out of a chat.