Independent build / Private working app / 2026

Private AI Writer

An Android Markdown app with revision-safe AI edits and a desktop backend that runs the model locally.

  • React
  • TypeScript
  • Capacitor / Android
  • Node.js / Express
  • llama.cpp
  • Vitest
Concept illustration of a phone document with a proposed revision, diff and undo control
Concept illustration Revision diff and undo

How it works

  1. Android clientReact and Capacitor; drafts and approvals
  2. Local Express APIAuthenticated LAN access; revision checks
  3. llama.cppInference on the desktop
The Express backend owns the Markdown files and revision history. Model output does not write directly to the library.

Architecture

An Android client connects to an authenticated Express API over the local network. The backend keeps a Markdown library and revision history and calls the local llama.cpp server.

Edit safety

The assistant reads sections, asks structured questions, and proposes targeted patches. A patch for a stale revision is rejected. Applied changes have a diff and an undo action in history.

Progress and testing

Tool and edit progress streams to the app, and approvals can resume. Deterministic tests cover patching, cancellation, stale revisions, and undo.

Engineering note: Give AI edits a base revision

Recorded walkthrough

Technical Deep Dive: Private AI Writer

A walkthrough of the architecture, tool execution boundaries, document consistency guarantees, and testing behind my local AI-powered document editor.

I also examine a retrieval optimization that showed promising synthetic performance but exposed correctness problems during live testing, explain how I investigated the failures, and discuss why I kept the experimental approach disabled.

Open on Loom Hosted by Loom. The player loads only when you press play.

Screenshots and evidence

Deterministic tests cover patching, cancellation, stale revisions, and undo.

Limits and next steps

This is a private working app with a desktop backend, not a publicly hosted editor or a cloud model integration.

Next experiment: Test interrupted approvals across an Android app restart, including a draft that changes while the app is away.