Skip to content

kumulativ › Docs › smartdiary

smartdiary A private diary in one book, with activities you tag, companions that answer from your own words, and mentors that count.

smartdiary

A private diary with a local model beside it. Write the day down — formatted, with photos, over a day or a whole summer, now or as a memory of long before — and tag what you did and for how long. Companions answer from what you have actually written, mentors hold you to the goals you set out loud — with the countable part counted in code, never estimated by a model — and the app writes your life back to you as a biography, chapter by chapter. Everything, the model included, runs on your machine, and there is no account to make: nothing you write leaves the computer unless you ask it to. Two things can carry it, both off by default and neither needed — an encrypted export you move by hand, and optional cloud sync between your own computers, which is sealed with your password before it leaves and cannot be read by the server holding it.

Built with Wails v2 (Go) · Svelte 5 + TypeScript · Tailwind v4 · GSAP (motion) · D3 (insights), with a local Qwen3.5 model served by the runtime every kumulativ app shares (kumulativ-core). It shares its stack and its design language with smartreader and smartwriter.

smartdiary used to be called kumulativ and used to have a networked half — an end-to-end-encrypted sharing service, exchanges between peers, multi-device sync. All of that is gone, and the name now belongs to the family of apps. A profile written under the old name is picked up on first launch (see Upgrading from kumulativ). The likes deck, the questionnaire, the finance ledger and the network graph that earlier versions carried are gone too; a document that still holds them opens fine, and those parts are simply no longer read.

Two more things went the same way. There used to be five books — a diary plus fitness, food, stretching and meditation logs — and a memory ladder that compressed each of them into day, week, month and year summaries. Both are gone. A day is a day, and whether it had a run in it is a property of the day rather than a separate diary; what an entry was about is now carried by the activities tagged on it. An existing profile is migrated on first launch: every entry becomes an entry, and the structured fitness, practice and food logs each become an activity tag carrying the minutes they recorded.

What it does

  • Onboarding — on first run, one screen asks your name, date of birth, height and weight. Only the name is required; everything else is skippable and editable later in Profile and Settings. Age is derived from the birth date from then on, so the profile doesn’t quietly go stale.
  • Talk — the app opens here, and it is both the chat and the way most writing happens. Ask something and it is answered from your own diary; or just write, and the message goes into today’s entry by itself, in your own words, tagged with whatever activity it named — a gym session, a sit, an hour of cooking. It only ever tags an activity you have already defined: nothing is invented. The composer has three buttons — Auto, Write it down, Just talk — for when you would rather decide. Type @ and pick a person to ask a question that is only about them: it is answered from the entries about them, and anything the message writes carries their tag. Whatever was written appears as a chip under the message that wrote it, so nothing is ever recorded invisibly.
  • Journal — one book. A single timeline rail with date markers, a five-dot mood scale, tags, and one way to write an entry; what it was about comes from the activities on it rather than from which log it was filed in. Ask for a reflection under any entry.
    • The page is a formatted editor in the diary’s serif — bold, italic, underline, strike, headings, quotations, lists, with the usual shortcuts — reduced on save to a few tags the app knows, so the search, the biography and the mentors all read the same plain text.
    • Photos go under the entry: pick one, paste one, or drop pictures anywhere on the window while the journal is open.
    • An entry is a day by default, but it can cover a period — a trip, a hospital week, a summer — and it can be marked a memory: written now, about a time before the diary existed. The biography reads both.
    • People can be tagged on an entry (names found in the text are offered as one-click tags), and activities added with the minutes they actually took.
  • Activities — the things you do and want counted, defined once: a name, a description, a photo if you like, a usual length, and one of eleven categories — food, social, spiritual, cardio, strength, stretching, study, work, art, clean, other — which gives it its colour everywhere. Added to entries with the minutes it took that day; the activity’s own page shows how often, how long, and when last, and Patterns adds the minutes up by category. The list starts empty — an activity you did not define is one the app will never count for you.
  • People — the people in your life, each with a name, a date of birth (so the card knows their age and their next birthday), a relation, a line about them and a photo. Tag them in entries and in the chat; a person’s card gathers every entry they are tagged in, and the ones that merely name them, and the app can write a portrait of the relationship from it — kept on the card, and marked when the diary has moved on since.
  • Biography — your life as the journal tells it, in chapters written by the model. The chapters are cut by density, not by the calendar: months are walked in order and folded into a chapter until it has enough material, so a year with an entry every evening becomes several and a decade of memories written in a weekend becomes one; a long silence ends a chapter too. Memories dated before the diary began count — that is what they are for. Each chapter is content-addressed — it stores a hash of the entries it was written from — and rewritten only when those entries change. Your mentors comment on any chapter, and on the whole arc, from their own corner of your life. Any chapter can be exported as a PDF, and so can the whole book: the narrative the model wrote, the facts counted from the entries underneath it (how many, over what dates, how the days were rated, what was logged, who was there), and the mentors’ notes. Nothing is generated at export time — what lands in the file is what is on the screen.
  • Mentors — companions with a job. A fitness coach that tracks whether the three sessions a week actually happened; a food companion that never counts calories you did not count; a mobility keeper that adds up the stretching minutes; a sitting companion that counts the sits; a burnout watch that says so before the crash. Each holds the goals you set in your own words and writes a check-in on its own cadence with a coarse verdict and the evidence behind it. The countable part of a goal is counted in Go and handed to the model as fact — a goal that names one of your activities counts the days it was tagged, or the minutes if the unit is minutes; anything else counts the entries whose text carries the goal’s own words. A mentor can also be given documents: drop a PDF on its card — the programme your coach wrote, the physio’s sheet, a blood panel — and it reads the file once, in its own terms, keeping the instructions, numbers and dates that belong to its role. What it took from the document is then in front of it whenever it speaks: in the chat, in a check-in, on the biography. Only that mentor sees it. See Documents.
  • Companions — chat with AI characters (Sage, Ember, Aria, Atlas, Nova built-in; create your own). Replies stream token by token. Mentors are in the same roster, so a question about training can reach the coach that tracks it without being invited.
  • Patterns — your most-tagged activities over four weeks as days and minutes, time by activity category, mood over 30 days, a writing heatmap, most-written-about people, and an AI weekly note.
  • Profile — self-reported health stats companions quietly use (toggle in Settings); the date of birth is what puts an age on each chapter of the biography. Light & dark, system-following by default.
  • Cloud sync — optional, off by default. Connect a computer with a one-time code and your diary follows you between your own machines, sealed with your password before it leaves. See Cloud sync.
  • Moving the diary — export the whole thing to one encrypted zip, photographs and mentors’ documents included, and import it on another computer. No account, and nothing readable leaves this machine. See Moving the diary.

What the model is told

The model on this machine cannot read years of diary — it does not fit in the context window, this year or any other. So it never does.

There is no summary ladder and no living profile. Earlier versions kept both; they were a lot of machinery, and a lot of generated text standing between a companion and the thing you actually wrote. What a companion gets now is assembled in one function (grounding.go), so “what does it know about me” has a single readable answer:

  1. The flat facts — your name, age, the health profile, if sharing is on.
  2. The last three weeks, one short line per entry: the date, the title, how you said it went, who was there, what you logged doing, and the opening of what you wrote.
  3. The entries the question reaches for, in full — found by term overlap against the title, the text, the tags, the activities and the people, with a mild preference for recency.
  4. Anyone the question named, so “how is it going with Marcus” answers about the right Marcus.

The whole thing is capped at about five thousand characters, which fits beside the conversation and the reply.

Retrieval is lexical rather than embedded: no second model, no index, no extra download, and over a diary — where the query is in the writer’s own vocabulary — it finds what the search box would have found.

None of it is a paraphrase. Every line a companion reads is something you typed, which is also why capture refuses a model’s rewrite of your sentence and files your own words instead.

Settings has a box where you type a question and see the exact text a companion would be given before answering it.

Documents

A mentor watches one corner of your life, and that corner usually has a document in it — the block your coach wrote, the sheet from the physio, the results of a test. Those are facts the diary does not contain and the model cannot guess, and a mentor that cannot see them keeps giving advice beside the plan rather than inside it.

Drop a PDF on a mentor’s card, or press Add a PDF. The text is extracted here, in Go, and the mentor reads it once — with its own charter and goals as the filter, so a fitness coach and a burnout watch handed the same occupational-health report come away with different notes. A long document is read in parts and the parts folded into one.

The summary is what travels, not the document. A whole PDF in every prompt would crowd out the diary, which is the thing the mentor was made to read, and a local model’s context is small enough to make that a real choice. A mentor’s whole library is capped at about 2,600 characters of the prompt. The file itself is kept so it can be read again — worth doing after you rewrite the charter, since that is what decides what the mentor looks for in it.

The mentor is told these are your own documents: it follows what they actually say, names the document when it leans on one, and says so rather than choosing quietly when a document and the diary disagree.

A scan with no text layer comes back saying so instead of silently adding nothing. The PDFs live in <profile>/docs, travel in the encrypted export, and sync between your own machines like photographs do.

The lock

Everything the app keeps is encrypted on disk. On first run you choose a password; it is stretched with Argon2id and used to unwrap a random data key that seals data.enc. Changing the password rewraps 48 bytes rather than re-encrypting a journal that may be years long.

While the app is locked it holds nothing — not a hidden view, not a cached document. The store is empty until a password (or the OS keychain entry, which holds the data key and never the password) unlocks it.

There is no reset. Nothing about the password leaves the machine, so nobody can recover it.

Cloud sync

Off by default, and not needed. smartdiary works on one machine with the network off, and the export below moves a diary by hand. This is for people who write on two computers and would rather not.

Settings → Cloud sync connects this computer to an account on cloud.kumulativ.com. The connection is per machine and has to be made from the account’s own userspace: a one-time code appears there, lasts ten minutes, and is typed in here with the email address. Approval is by hand — an account exists only because somebody let it.

What leaves is sealed under your password first. The service stores a revision, an edit time and a checksum per record, and a blob it cannot open; the lock profile travels with it, because without the salt no second machine could ever derive the key. Your password is not in it and never reaches the server.

The unit is a record, not the document: a day, a person, an activity, a photograph. Two machines that wrote on different days both keep their work. When the same day is written on both, the later writing wins and the earlier is replaced — there is no merge that could combine two versions of a paragraph into something somebody wrote.

The biography is not synced. It is written from the diary, so a machine that has just received a year of entries rebuilds it rather than taking another machine’s older reading of a life that has since changed. Settings and the health profile stay put too: they describe this screen and this body now.

Connecting a second computer requires the password the first one uses, because a diary has one data key and the second machine has to derive the same one. Revoking a machine from the Machines page stops it at its next attempt; disconnecting from Settings does the same from this side. Either way the diary on disk is untouched.

Online

Off by default. With the browser extension in browser-extension/ installed in Chrome or Firefox, the diary also knows where you were on the web: which page was in front of you, when, and for how long. Each day’s journal entry then has an Online panel under it, listing the pages and searches and, when asked, an account of what the day online was about, written by the local model from the titles.

That account sits beside the entry, never in it. An entry holds your own words, and a list of tabs is not that.

Settings → Remember what you saw online has a button per browser that switches it on and opens where to get the extension. Once installed, the extension asks to pair; smartdiary comes to the front and asks whether to allow it, and on Allow hands it the pairing code itself. Copying the code by hand still works. While it is on and the diary is unlocked, the app listens on 127.0.0.1:47613. Closed, locked or switched off, nothing listens, and the extension keeps what it noticed until something does. Every request needs the pairing code. A request from a web page is refused before the code is read, and so is one whose Host is not the loopback address, which stops a page from reaching the port through a DNS name that resolves to it.

What is kept: the address without its query string, the title, the time in front. The only thing read out of the query is what was typed into a search engine. Private windows are never watched, and the extension has its own list of sites it never notes. The page lists are kept for 60 days; a day’s written account stays for as long as you keep it. All of it stays on this machine: cloud sync and the export carry the diary, not the tabs.

Without the extension: the browser’s own history

Settings → Or read your browser's history needs nothing installed. smartdiary finds the Chrome, Edge, Brave and Firefox profiles on the machine, and reads the ones you tick every half hour while it is open. Chromium browsers keep a SQLite file called History, Firefox keeps places.sqlite. The browser holds its file open, so smartdiary copies it to a temporary folder, reads the copy, and deletes it. The browser’s own file is only read.

History records when a page was opened, not how long it was looked at. So the time is an estimate: the gap until the next page, at most ten minutes, one minute for the last page before a break of half an hour, and Chrome’s own visit duration when that is shorter. Those days say “times estimated from browser history”, and the model is told the same. Visits synced from other devices, pages inside frames and redirect hops are skipped.

The two ways can run side by side. A day the extension reported is measured, and history never writes over it. Every read recomputes the last 60 days from scratch, so reading twice never counts a visit twice, and a page deleted from the browser’s history leaves the diary on the next read. The list of sites never kept, in the same Settings section, applies to both.

Moving the diary

Settings → Moving the diary writes a .zip and reads one back, for putting a diary on a second computer without an account anywhere.

Nothing is decrypted to make it. The document goes in exactly as it sits on disk, and the photographs — which are plain files in the images directory, because the webview has to be able to show them — are sealed on the way in. That difference is deliberate: a directory inside your own profile is one thing, and a zip that crosses a USB stick or sits in a downloads folder is quite another, and a diary whose text is unreadable but whose photographs are not has protected the wrong half.

manifest.json          app, schema, when, how many entries, photographs, documents
profile.json           how to unwrap the key, given the password
data.enc               the whole document
images/<name>.enc      one photograph, sealed
docs/<name>.enc        one document given to a mentor, sealed

Importing asks for the password the source machine used. Every profile has its own random salt and its own random data key, so two computers hold two different keys even when the same password was typed into both. An archive exported from the machine you are importing on — a backup being restored — needs nothing typed.

The merge is per item and never replaces:

Entries The later updatedAt wins; a day written here since is left alone
Conversations The later thread whole — messages only ever append
People, activities, characters, mentors Added if this machine has never seen them
Photographs Written if missing; a reference whose file did not arrive is dropped rather than left broken
Mentors’ documents Added if this machine has never seen them; the PDF is written if missing, and a record whose file did not arrive keeps its summary — which is the half that reaches a prompt
Settings, the health profile, the biography Not merged — the first two describe this machine and this body now, and the biography is rebuilt from what arrives

The local model

The model runs in the runtime every kumulativ app shares: kumulativ-core. One store of weights and engines under <UserConfigDir>/kumulativ, one llama-server in router mode started by whichever app first needs it, at most one model resident across all the apps, asleep after a quiet minute. smartdiary runs Qwen3.5 — the 9B where it fits, the 4B where it would not — the same family smartreader and smartwriter run, so a machine with more than one of them downloads the weights once.

On first run the app sets itself up without intervention: it detects the machine, downloads the pinned llama.cpp release and the weights (resumable) into the shared store — or finds them already there — and from then on the model loads on the first question and sleeps again when nothing is asked. Nothing is warmed at launch: several gigabytes are not loaded on the off-chance that a message is coming.

Where things live

<UserConfigDir>/smartdiary/
  data.enc           everything you write, sealed
  profile.json       the (non-secret) parameters needed to unwrap it
  images/            photos on entries, activities and people
  docs/              the PDFs given to mentors

<UserConfigDir>/kumulativ/    shared with every kumulativ app — see kumulativ-core
  models/            the Qwen weights, one copy for every app
  engines/           the llama.cpp build for this machine
  run/               the one running server: registry, lock, presets

Upgrading from kumulativ

The first launch after the rename moves data.enc, profile.json, any pre-lock data.json and the images/ folder from <UserConfigDir>/kumulativ into <UserConfigDir>/smartdiary, once, and reads a device remembered in the keychain under the old name. The old directory stays, because it is also the shared model store now. Two things in it are no longer used and can be deleted by hand: keys.enc (the cloud API keys and the vault session the app no longer has) and any Gemma 3 weights under models/, which the catalog no longer knows.

Env overrides

Variable Effect
SMARTDIARY_CONFIG_DIR Override the profile directory entirely (portable installs, tests)
SMARTDIARY_GGUF Path to a specific .gguf; skips model download
KUMULATIV_HOME Move the shared model store
KUMULATIV_BIN_DIR Look for llama-server here first
KUMULATIV_IDLE_UNLOAD_MIN Minutes of quiet before the model is put to sleep (default 1; 0 = never)
KUMULATIV_LLAMA_ASSET / KUMULATIV_LLAMA_RELEASE Pick a different llama.cpp asset/release
KUMULATIV_LLAMA_EXTRA_ARGS Extra flags for the llama-server command line
KUMULATIV_FORCE_CPU Never use the CUDA build
KUMULATIV_NO_ENGINE_FETCH Disallow engine auto-download (staged binary required)
KUMULATIV_DEBUG Forward the server’s output to stderr

Updates

smartdiary knows its own version and looks, a few seconds after launch and once a day while it runs, whether a newer one has been published. The look is one GET of a small public file — smartdiary/latest.json on the releases bucket — with nothing about you or this computer in the request. It happens before the diary is unlocked, because it needs nothing from the diary. Settings has a switch to turn the automatic look off, and a button to look by hand.

When there is a newer version, a card in the corner says so, with what changed. Update downloads the installer and checks it against the SHA-256 the manifest carries; then — on Windows — Restart to update starts the installer silently and quits: the installer waits for the process to be gone, replaces the files, and opens the new version (Windows asks permission once). On macOS the disk image opens and the drag to Applications is yours. Not now hides the card until the next launch; Skip this version in Settings hides that version for good. Nothing in the diary is touched by any of this.