Repository navigation
v0.8.12
While the bot works after a message, people in that place see it typing until it posts there. Memory keeps facts: the pass after each run is off by default, and a tidy, at most once a day, deletes expired and duplicate memories and corrects ones that contradict. Block quotes the bot sends on Discord and Teams keep every line in the quote.
Added
- People see the bot typing while it works. When the main agent works in a place after a message from there, people there see it typing, as they see a person type. That is after a DM, an @-mention, a click on its button, command or form, a wake from a child that works for that place, or a judge's wake with "respond" at 0.8 or more; below 0.8 the bot is still woken, without typing, and a wake with no place shows nothing. A new such message in the place while it works moves the typing to it. It stops right before the bot posts there (with
send, also to the person of a DM, or withcall), when the run ends (with or without a reply, with an error, at a page turn), or 10 minutes after it began without a post. Discord, Telegram and Teams show the platform's typing. Slack shows its status line, " is working…", under the message or in its thread (assistant.threads.setStatus, which thechat:writescope allows); a place with no message shows nothing. After a restart, the run that goes on shows it again where the bot has not posted since. A refusal of the platform, such as a missing permission or a rate limit, stops the typing in that place and is printed once; it is not tried again, and sends and runs never wait for it. The main agent's prompt says in one line that people there see it typing until it sends there.
Changed
- The extraction pass is off by default. The pass after each run of the main conversation now runs only with
"settings": {"memoryExtraction": true}inbot.json; abot.jsonwithout the key has it off. Everything else of the memory stays: the memory section of the prompt, the bot writing its memory itself, and the note on an old memory file.settings.autoMemorykeeps its meaning: false turns the whole memory off. In one week on 5 bots the passes made 1,118 runs and 25 dreams, about 23% of all model spend, and they wrote standing rules that nobody had said, some credited to the wrong person. - The dream is now the tidy, on by default, and runs without the extraction pass.
"settings": {"memoryTidy": false}turns it off. As before, it comes at most once a day, after 5 memory changes since the last one; a change is now the main agent or a child changing a memory folder between two ends of a main run (one count each), also with a command or a script, and the tidy starts after a main run without a pass before it. It only deletes and corrects: it deletes memories whoseexpiresdate has passed (file and line), deletes one of two memories that say the same thing and keeps the other's text, shortens index lines that are too long and moves the detail into the file, and corrects the wrong one of two memories that contradict, byAGENTS.mdor the newer memory that states its source. It adds no facts, does not merge memories into summaries and does not search the message log. A memory that reads as a rule or a preference it names in its summary, which the main agent's next wake gets with what it changed. It keeps no copies of deleted files. Its message is new and short. - A status line on each index. The main agent's memory section and the tidy's message start each
MEMORY.mdwith how full it is and how many of its lines link to expired memories, such asMEMORY.md: 69/200 lines, 10/25 KB; 4 lines link to expired memories. - What memory is for. The memory section of the main agent's prompt and of a child's now says it in facts: memory keeps facts and pointers that must outlast a page (how to reach a machine, where something is, people's details, key dates, decisions with who, when and where they are recorded); a lasting rule or preference that a person states goes into
AGENTS.md, in their own words with the date, and words the bot made up are shown to the person first;notes.mdis replaced at each page turn,memory/stays, and the message log keeps everything said. A memory file hasname,description,source(who, where, when) and, for a fact that stops being true,expires(YYYY-MM-DD); the types (user, feedback, project, reference) and the "Why:" line are gone. Each line ofMEMORY.mdstates the fact in one sentence. The extraction pass says the same, so a bot that turns it on gets the same kind of memory. Existing memory files stay as they are. - Expired memories leave the index. A line of
MEMORY.mdthat links to a memory whoseexpiresdate has passed is not shown in the prompt; the file stays on disk. - The memory section names what does not match. Links in
MEMORY.mdto files that are not there, and memory files with no line in it, are named under the index in the main agent's memory section, so the bot can fix them. - The passes no longer read the message log.
sqlite3is gone from the commands their shell may run: the extraction pass looks only at the messages it is given, and the tidy only at the memory. @slack/web-apiis a dependency of Pots, for Slack's status line, which goes through a Slack client of its own. It was installed with Pots before, through the Chat SDK.- Chat SDK 4.45.0 (was 4.44.0). A Markdown block quote the bot sends on Discord or Teams now stays one quote: before, only the first line of each paragraph in it got the quote mark, so later lines, list items and code lines fell out of the quote, and Teams ran its paragraphs and list items together.
- Effect 4.1.5 (was 4.1.4), a patch release. For development: @types/node 26.6.10, fast-check 4.11.0 and Vitest 5.1.2.
- At the upgrade, each bot's
bot.sqlitegets a tablebot_working(where typing shows, for a restart) and a columnbot_wakes.at_address(the message or thread a wake is for). The prompts of the main agent and of children change, so each bot's prompt cache is written once more after the upgrade.
What's Changed
- Bump the chat-sdk group across 1 directory with 6 updates by @dependabot[bot] in #67
- Bump fast-check from 4.10.2 to 4.10.3 by @dependabot[bot] in #68
- Bump vitest from 5.1.0 to 5.1.1 by @dependabot[bot] in #69
- Memory keeps facts; extraction off, tidy on by default by @Crokily in #88
- Show typing while the bot works by @Crokily in #90
- Bump the effect group with 4 updates by @dependabot[bot] in #91
- Bump fast-check from 4.10.3 to 4.11.0 by @dependabot[bot] in #93
- Bump vitest from 5.1.1 to 5.1.2 by @dependabot[bot] in #94
- Bump @types/node from 26.6.6 to 26.6.10 by @dependabot[bot] in #92
Full Changelog: v0.8.11...v0.8.12