See Your AI

Talk journal

Bots that clear their context when idle (IDLE_CLEAR_MINUTES) forget what was just talked about. With the talk journal on, the harness keeps short notes of the gist of finished web-chat conversations in <BOT_DIR>/memory/talk-journal.md. The bot does not do it, so it works for bots that are locked down, and for bots that chat with people who never log in.

Every note is also kept for good in <BOT_DIR>/memory/talk-log/YYYY-MM.md. That log is not loaded into context; the bot can search it when someone asks about something older.

The notes are meant to be what a good friend would still remember a week later: what is going on with someone, what they care about, their plans and how those went. Three more lists go with them:

The journal needs the daemon running (./install.sh --with-daemon): the daemon does the per-minute check, not the cron tick. See Sign-in.

Off by default, except for bots made by provision add (see New bots). A bot without TALK_JOURNAL=on behaves exactly as before.

Once a day, what is new in the log is also gathered by topic into long-term memory: see Short-term and long-term.

How it relates to the bot’s own memory: the journal holds conversation gist; the bot’s own notes hold facts it chose to save.

Turn it on

seeyourai bot config mybot set TALK_JOURNAL_THREADS='voice=Talk page,app'
seeyourai bot config mybot set TALK_JOURNAL=on
seeyourai journal mybot --dry-run        # counts and sizes only; no model call

Then add these lines to the bot’s memory/MEMORY.md yourself (the harness never edits that file):

@talk-journal.md
@talk-told.md
@talk-topics.md

journal <bot> --dry-run names the lines that are missing. (Without the daily pass the last one is not needed.)

.env key Default Meaning
TALK_JOURNAL off on enables it
TALK_JOURNAL_THREADS (required) comma list of web threads; id=Label sets the name shown in the file. No “all threads”
TALK_JOURNAL_QUIET_MINUTES 10 silence that ends a conversation. Must be below IDLE_CLEAR_MINUTES, or you get a warning
TALK_JOURNAL_MODEL haiku named tier for the summary
TALK_JOURNAL_MIN_FREE_MEMORY_PCT 15 no summary below this much free memory (or when it cannot be measured)
TALK_JOURNAL_DAILY on off leaves out the daily pass. Topics already written stay as they are
TALK_JOURNAL_DAILY_AT 03:30 local time after which it runs
TALK_JOURNAL_DAILY_MODEL TALK_JOURNAL_MODEL named tier for the daily pass

Optional guidance per bot: ~/.seeyourai/bots/<bot>.journal.md, for example “Leave out anything about X”. It is appended to the prompt. It lives outside the bot’s folder, so a bot cannot change it. If it exists but cannot be read, nothing is summarised.

New bots

seeyourai provision add turns it on for the bot it makes, for the web thread app, and puts the three import lines (and one line saying what they are) in the new bot’s memory/MEMORY.md.

Flag On add On update
--talk-journal "app,voice=Talk page" these threads instead of app turns it on, or changes the threads
--talk-journal off not at all turns it off; notes already written are kept
--talk-journal-guidance FILE copied to bots/<bot>.journal.md (0600) replaces that copy; '' removes it

The file is read once, when the command runs. It must be a regular UTF-8 file of at most 8,000 characters, with no {{placeholder}}: nothing is filled in.

Threads use the TALK_JOURNAL_THREADS syntax, checked more strictly: one bad part refuses the whole flag. A label names the place, in plain letters and digits, and cannot be the display name. No text from the app reaches the .env.

A bot that exists is never changed unless a flag is passed to provision update. update does not edit the bot’s MEMORY.md; it says so when the import lines are missing. provision list shows the journaled threads, or off. provision remove takes the guidance and the journal’s state along.

Commands

Command Does
seeyourai journal <bot> runs what is due now, ignoring retry backoff
… --dry-run counts and sizes; no model call, no transcript text
… --since YYYY-MM-DD backfill older conversations (newest 20 per run; rerun for more). Turning it on never backfills by itself
… --show prints the journal, the already-said list and the topics
… --consolidate [--dry-run] does the daily pass now, all of it (--dry-run: counts and sizes only)
… --rebuild --since YYYY-MM-DD writes everything again (below). Needs --dry-run or --confirm-calls N

Rebuild

After a change to the prompt, the guidance or the model, the notes can be written again from the conversations:

seeyourai journal mybot --rebuild --since 2026-01-01 --dry-run          # how many model calls
seeyourai journal mybot --rebuild --since 2026-01-01 --confirm-calls 35 # the number it said, or more

How it works

  1. Once a minute the daemon does a few stats per enabled thread. If a thread changed and has been quiet, it starts one detached worker and moves on.
  2. One summary runs at a time on the whole machine (a lock the OS drops when the holder dies, so there is no stale lock to clean up). At most 3 conversations per run; the next check continues.
  3. The worker strips the wrapping apps add (a leading bracketed header, the “spoken on the talk page” suffix), splits by silence, and asks the model. The model is also shown the current facts and open things, as numbered lists.
  4. It writes the log, then the journal, then the already-said list (each an atomic replace), then advances its position. If it dies in between, the next run finishes the other two from the log without another model call, and the entry’s id in the log shows the work is done. If the position (~/.seeyourai/journal/<bot>.json) is lost, it is recovered from the ids in the log.
  5. Failures lose nothing: retry with backoff (2 minutes up to 6 hours; when nobody is signed in, 15 minutes at most), a log line each time, an operator alert on the third. A conversation whose answer is unusable 4 times is skipped, loudly.

The journal holds the newest 8 conversations in full, up to 45 older ones as one line each (the first note, shortened by code, not by a model), up to 8 open things and up to 20 facts. Hard cap 10 KB; the oldest go first, and stay in the log. A backfilled conversation enters the journal only if it is recent enough to fit.

The log has one file per local month of the conversation, oldest entry first, with every note, every fact (and the one it replaced), and everything opened, settled or said. Before a file gets too big to be read back whole it rolls to YYYY-MM-2.md, -3 and so on. The log grows without limit: nothing is ever removed from it by the harness. The whole log is read when a summary is due.

Reads and writes go through MemoryStore (src/lib/memory-store.ts), which takes a bot and a relative path. It refuses a file too big to read whole instead of returning part of it. BOT_DIR does not have to be a git repository.

What is known, and what is open

The model may add at most 2 new facts and 3 open things per conversation, replace a fact (FACT-UPDATE: <n>: …) and close an open thing (DONE: <n>). A number counts only if it is in the list that call was shown, and stands for that line’s text: it cannot remove anything else.

Files from before there were open things are read as they are. Facts already in the file are not compared with each other; --rebuild does that.

The already-said list

One line per item: date, short label, and “(knew it)” if the person plainly said they knew it. In order of what matters most:

Kind Is
asked a personal question the bot asked, with the answer in a few words
shared a fact, tip, suggestion, recommendation or anecdote the bot gave
activity a riddle, joke, quiz question or story: the answer, and a few key words

Hard cap 12 KB, oldest first out. Activities have at most a third of it, and go first when the rest needs the room; then shared things down to a quarter; then questions. Every item is also in its conversation’s block in the log.

Up to 40 items per model call; with more, the first kinds win. A long conversation is cut at 24,000 characters or 60 turns, and a later part is shown the few turns before it, so that a question cut off from its answer is still understood.

Short-term and long-term

  File Loaded What
short-term talk-journal.md, talk-told.md yes the last conversations, facts, open things, what was already said
long-term talk-topics.md yes one line per lasting topic: how it stands, when it last came up, in how many conversations, its file
  talk-topics/<slug>.md no the notes behind one topic, with dates, and what used to be said about it
source talk-log/ no everything, for good

Once per local day, after TALK_JOURNAL_DAILY_AT, the worker gives the model the log entries no pass has seen, the numbered list of topics and the current facts. It runs only if there is something new, only when every configured thread has been quiet, and after the conversations that were due. After days of downtime there is one pass, over all of it. The first one is on the day after it is turned on. Each call is given up to 20,000 characters, oldest first; what is left over is done by the next check.

The model answers with TOPIC-NEW, TOPIC-UPDATE <n>, TOPIC-MERGE <n> <m> and NOTE <n> lines, at most 6, 15, 3 and 30 of them. It points at topics and conversations by number; a number it was not shown means nothing. The harness makes the file names, counts and dates.

The answer is turned into whole files and kept in the state before the first one is written: topic files, then the index made from them, then the facts, then the position. A crash in between is finished by the next run without another call. Failing is as with summaries (backoff, one alert, a chunk with 4 unusable answers is skipped loudly), is counted apart, and never holds up a conversation. If the state is lost, the index says how far it had got.

Not the same as the bot tidying its own memory (a scheduled “dreaming” session, see the memory-consolidation skill). There the bot itself, with its tools, rewrites notes it chose to keep, and judges what to prune. Here the bot takes no part: the harness does it, from conversations only, with a model that can touch nothing, into files only it writes, and nothing is pruned. It neither reads nor changes the bot’s own notes, and that pass should leave these files alone.

Removing an entry

The same text can be in the journal, the already-said list, the topics and the log, so edit all of them. A rebuild’s archive has it too.

Trust model

Anyone who can chat with the bot can try to write into its memory through the summary. So:

Only the prompt enforces these, so treat them as best effort: what is worth noting, leaving out full names, leaving out guidance topics, saying “said that”, and being true. Text that is false but harmless-looking can still get in. Never let a bot act on a journal line as permission.

Limits

Sign-in

The summary uses the machine’s normal Claude sign-in. On macOS that is in the login keychain, which a cron job cannot read: claude started from cron says “Not logged in”. A launchd job in the signed-in user’s session can, and so can what it starts. That is why the daemon (a LaunchAgent) runs the check. A daemon that was not installed with --with-daemon and was started by the cron tick instead has the same problem as cron.

While nobody is signed in, conversations wait and are tried at least every 15 minutes; the operator is alerted on the third failure. Being signed out never makes a conversation be skipped.

If the daemon cannot be signed in (a headless machine), run claude setup-token and put the token in ~/.seeyourai/journal/claude-token with mode 0600. Only the summary uses it.

Restarting the daemon

The worker runs in its own session and process group. launchd kills the job’s process group when it restarts the daemon, so on macOS a running worker finishes on its own. systemd stops everything in the service’s cgroup, so on Linux the worker is stopped, takes its claude with it, and the unfinished conversation is done again. Either way nothing is lost or doubled, and the lock keeps a second worker from starting.