LLM All work and writing

Case study by Gonzalo Luque Martin, October 2026. Product anonymised, not yet released.

An LLM document assistant built for cost, privacy and honesty

A consumer product I designed and built: users upload personal documents as PDFs, and the system produces tailored writing plus structured, line-by-line feedback, streamed in seconds. The documents are full of personal data, the model bill is real money, and users act on the output. Those three facts drove the design.

WhatUpload PDFs and a few parameters, get a tailored document, suggested line edits with reasons, prioritised feedback and scores, then export
StackOne Cloudflare Worker (Hono) serving API and frontend, D1, R2 in the EU jurisdiction, KV, cron triggers, OpenAI Responses and Batch APIs, Stripe
FrontendPlain HTML and ES modules, no build step, no third-party scripts, fonts or trackers
IntegrationsAn OAuth 2.1 MCP server so users' own AI assistants can use the product

One model call, by design

Each run is a single model call with no agent loop. The written document and the analysis come from the same call so they stay consistent with each other. The rule is written down: split into several calls only if an evaluation shows the structured format hurts the prose.

Honesty rules in the prompt and the product

Users act on the output, so the rules against making things up are explicit: never invent experience, names or dates, take facts only from the user's documents, and present any score as an estimate, never as a promise. The product drafts and the user decides. Nothing is ever sent on the user's behalf, edits are accepted one by one before export, and the tools offered to outside AI assistants require the user's confirmation.

Cost control as a feature

An LLM product can lose money one request at a time. Here every run records its actual cost from the provider's usage data, including failed and retried attempts. On top of that:

The result is a measured cost of a few cents per run, known before pricing was set.

Privacy

Testing and engineering practice

What comes next

Quality was reviewed by hand on fictional cases during development. Before launch, the next step is an evaluation set with regression runs on every prompt or model change, as described in Evals before features.

Planning an LLM feature that handles personal data or real money? I can help you design it this way from the start.

Get in touch