Local AI / Engineering notes

Give AI edits a base revision

A Markdown assistant should not overwrite text it has not seen.

A patch can be right for the wrong draft

A writer can keep typing while a model reads and proposes a change. Even a good suggestion may be based on a paragraph that moved or was rewritten. Letting the patch silently land would hide a conflict from the person who owns the document.

Keep the write outside the model

Private AI Writer gives the assistant section reads and targeted patch tools. Its local backend checks the revision before writing and rejects stale patches. The model proposes the change; the application decides whether the proposal still applies.

Make accepted edits reversible

Revision checks prevent a class of write conflicts, not bad prose. The UI exposes the diff and keeps an undo action in history. The deterministic tests cover stale revisions and undo as well as patching and cancellation.

Private AI Writer case study
All engineering notes