-
-
Paste a note; what it's read to say waits for review, the words it rests on highlighted. Nothing changes until you accept.
-
Why? shows the sentence a commitment came from and every change since, accepted or waiting for review.
-
Questions answered by graph queries, not a model: what waits on someone else, what others owe you, what each holds up.
-
Private notes are read on this device. Ticking the cloud box shows exactly what would be sent; nothing leaves until you press Read.
-
After accepting Dana's new Tuesday, "What do I owe by Friday?" answers "Nothing is due by then."
-
Device first, cloud if needed: Gemini Nano read the note in Chrome, and its proposal stays provisional until you accept it.
Inspiration
Most commitments are made in passing: "I'll send Dana the proposal Friday, once Lee confirms pricing." Two days later Lee's pricing slips; the next day Dana moves the date. The promise is still in three messages, but nobody can say what is now due, what is blocked, or why. Task apps want you to type the task in again; AI summaries give a confident answer you cannot check.
I wanted the opposite: an app that reads the messages you already have, shows its reading as proposals you confirm, and answers every question with the sentence it came from. And for notes about real people, I wanted the reading to happen on my own machine.
What it does
- Capture. Paste a note, a message or meeting notes. A model reads it into proposals: a new commitment, a moved deadline, done, cancelled, or one commitment waiting for another. [C15]
- Review. Each proposal shows the note with the words it rests on highlighted. Nothing changes a commitment until you accept it. When the reading is unclear, Kept asks which commitment the note means instead of guessing. [C15]
- Ask. Five questions, answered from the graph, not by a model: what do I owe on or before a date; which commitments are waiting on someone else; what do others owe me; what changed since we met; and why is this mine, with the full history of each commitment. [C16]
- Two workspaces. The demo workspace (demo data) reads notes in the cloud. The private workspace reads them with Gemini Nano in Chrome; the note never leaves the device unless you tick "use the cloud model for this note", after a preview of exactly what would be sent. [C13]
How it uses Firebase AI Logic
The workspace decides where a note is read, not the model. [C6]
| Where | Firebase AI Logic mode | Why |
|---|---|---|
| Private workspace | ONLY_ON_DEVICE |
Private notes must not leave the device. PREFER_ON_DEVICE would silently send a note to the cloud whenever the model is missing, so it is never used here. [C13, C14] |
| Private, one note, after opting in | ONLY_IN_CLOUD |
Only after the preview of the note and the commitments that would be sent. The box unticks itself after that note. [C13] |
| Demo workspace | ONLY_IN_CLOUD |
The cloud model was right or asked on every note in the linking experiment, so the default demo gets the more reliable reading. [M9] |
| Demo, "Read on this device when its model is ready" | PREFER_ON_DEVICE |
Gemini Nano when Chrome's model is ready, the cloud when it is not or when a device call fails or takes over 45 s. A badge says where the next note will be read; the status line says which model answered and, if the cloud stood in, why. [C6, C14] |
Every call is schema-constrained JSON through getGenerativeModel, behind App Check (reCAPTCHA Enterprise on the hosted site). [C5, C9] Before an on-device call, the app checks the model's availability itself, because the SDK alone would start a multi-gigabyte download from a click. [C14]
The routing came from measurement. On the same notes, the cloud model was right or asked every time; the device model sometimes proposed a wrong link without saying it was unsure. So on the device every proposal is marked provisional, review is mandatory, and the app adds its own checks around the device's answer: a date has to be in the words of the note, a quote has to be in the note, a commitment the model was not given is refused. [M9, M7]
How we built it
- Browser only. Kept is a web app for desktop Chrome: Vite, plain JavaScript, Firebase JS SDK 13.3.0. [C4, C11]
- A graph in the browser. Commitments, people, notes and every proposed change live in a graph database compiled to WebAssembly, in a dedicated worker, persisted to the browser's private file system (OPFS). Each current value points at the change that set it, so "why?" and "what changed?" are graph queries. [C12, C16]
- Rules, not prompts, decide what changes. A model's answer is validated, becomes proposals, and is applied only by the user's decision, through rules that re-check the state inside each write. [C15]
- Tests on both engines. 216 tests run against a real store: on the Node binding (
npm test) and on the same WebAssembly build the app uses, in headless Chromium (npm run test:wasm). [M1, M2] - Measured, not tuned to pass. Every evaluation round is 12 new notes, committed before any model saw them, scored pass / safe / unsafe. [M3]
Challenges we ran into
- The device model never says it is unsure. In the linking experiment it proposed a wrong commitment on a third to just over half of the runs, confidently. The answer was product design, not prompting harder: provisional cards, questions when the words fit more than one commitment, and app-side checks. [M9]
- Hangs that were not hangs. Chrome's model answers one call at a time; a runaway answer blocked every later call in every tab. Device calls are now stopped after 45 s, and if a short test prompt also fails the app says to restart Chrome instead of waiting. [C14]
- A believable wrong date. On my own notes, "by next Tuesday" came back as "Monday", which resolved to a real date. Now a date has to be in the note's words, and "next Tuesday" stays unresolved instead of guessed. One of five reading errors found by hand and fixed with tests on the same day. [M7]
Accomplishments that we're proud of
- Device rounds 18, 19 and 21: zero unsafe proposals in nine runs of 12 new notes each. Cloud round 19: 11 pass, 1 safe, 0 unsafe. [M4, M5]
- Every answer is checkable: "Why?" shows the sentence, and the history shows when each value changed and which note changed it, including "this no longer waits, because what it waited for is done". [C16]
- A private mode that is actually private: no silent fallback, and an explicit preview before anything is sent. [C13]
What we learned
Hybrid is a policy, not a fallback. The interesting decision was not "device if available" but "which data may go where, and how sure does each model have to be". Measuring both models on the same notes, before tuning anything, made that decision easy to defend.
What's next for Kept
- Changes of owner or recipient, and long notes with many commitments (not handled yet). [README status]
- Dependencies on the device, the least reliable reading: a linking prompt that leaves them to the separate dependency call, measured on new notes. [docs/evaluation.md "Open"]
- Export and import for the private workspace.
Built With
- chrome-built-in-ai
- cypher
- firebase
- firebase-ai-logic
- firebase-app-check
- firebase-hosting
- gemini
- gemini-nano
- javascript
- node.js
- playwright
- relate
- vite
- webassembly