Two paths from an agent to a file

architecture

A proposed change is useful only if you know which operation created it. Bailey's file tools and its terminals reach the same working files through different mechanisms.

File tools queue a proposal for review; terminal commands can write directly.

Explanatory diagram, not a UI screenshot. Open at full size.

The proposal path

In docked chat, file_edit replaces one exact, unique snippet; file_write supplies a complete new file. Both submit the resulting content to the pending-write mechanism. Submission does not itself write the file to disk. The person reviews and accepts, rejects or takes individual hunks.

For example, changing a condition from count > limit to count >= limit should arrive as a small diff with enough surrounding code to understand the boundary. Read the file again if the expected old snippet is missing or ambiguous. Review is about the actual current file, not the model's memory of it.

The terminal path

A command such as a formatter, generator or shell redirect may change files as part of execution. Those bytes do not become a Bailey file proposal simply because the command came from an agent. Terminal permission controls are separate from file-diff review.

That distinction also applies to an external coding agent in a terminal pane. Do not infer that every write from that process passes through the desktop's file tools.

A practical review loop

Choose the proposal path for a change you want to inspect before applying. Check the accepted diff, run the relevant test, and inspect the working tree afterward: tests and generators can write too. Keep unrelated changes separate so the evidence remains understandable.

Continue with Bailey, Anvil's direct tool loop, or who is asking.