mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-02 20:03:21 +02:00
Memory2 (#444)
Agent Notes: background memory system that learns from emails, chats, and explicit saves - Background service (agent_notes.ts) runs periodically, collecting user-sent emails, copilot conversation history, and save-to-memory inbox entries - Agent (agent_notes_agent.ts) processes all sources with workspace tools, deciding what to update: user.md (timestamped facts), preferences.md (general rules), style/email.md (writing patterns), and topic-specific files as needed - save-to-memory builtin tool lets the copilot proactively note preferences during conversations - user.md and preferences.md injected into copilot system prompt on every turn; other files listed for on-demand access - Agent manages timestamp freshness on user.md: refreshes confirmed facts, removes stale transient ones
This commit is contained in:
parent
c41586b85d
commit
d191c00e4d
8 changed files with 624 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ import { init as initEmailLabeling } from "@x/core/dist/knowledge/label_emails.j
|
|||
import { init as initNoteTagging } from "@x/core/dist/knowledge/tag_notes.js";
|
||||
import { init as initInlineTasks } from "@x/core/dist/knowledge/inline_tasks.js";
|
||||
import { init as initAgentRunner } from "@x/core/dist/agent-schedule/runner.js";
|
||||
import { init as initAgentNotes } from "@x/core/dist/knowledge/agent_notes.js";
|
||||
import { initConfigs } from "@x/core/dist/config/initConfigs.js";
|
||||
import started from "electron-squirrel-startup";
|
||||
import { execSync } from "node:child_process";
|
||||
|
|
@ -230,6 +231,9 @@ app.whenReady().then(async () => {
|
|||
// start background agent runner (scheduled agents)
|
||||
initAgentRunner();
|
||||
|
||||
// start agent notes learning service
|
||||
initAgentNotes();
|
||||
|
||||
app.on("activate", () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
createWindow();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue