You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add file attachments, async memory save, and dev improvements (#39)
* Add Slack file attachment support
Extract file metadata (name, mimetype, url) from Slack app_mention
events and include them in the agent prompt with curl download
instructions. Files from thread history are also shown as annotations.
* Return response before memory save completes
Make runAgent() return a done promise so callers can reply to Slack
immediately while memory save continues in the background. The
scheduler slot is held until save finishes to prevent thread races.
* Improve memory search hints and tighten daily log prompt
Tell the agent that only today's context is injected and older data
requires a qmd search. Add guidance to use keywords not dates/IDs.
Restrict daily logs to actionable facts instead of verbose narratives.
* Enable DEBUG logging in dev mode
Set DEBUG=true in the dev script and log a startup confirmation.
- Append to ${memoryDir}/shared/daily/${today}.md: what you did, what you learned, what failed. NEVER write user-specific information here (preferences, personal details, names tied to opinions). Daily logs are searchable by all users.
151
+
- Append to ${memoryDir}/shared/daily/${today}.md: ONLY facts that other sessions today might need (e.g. "stored palmy-timeoff.csv in shared/", "MEMORY.md restructured"). No narratives, no debugging play-by-play, no step-by-step accounts. One line per fact. NEVER write user-specific information here (preferences, personal details, names tied to opinions). Daily logs are searchable by all users.
148
152
- Update ${memoryDir}/users/${userId}.md: user-specific preferences, patterns, personal details, and areas of work go HERE. This file is private to the user and not searchable by others.
149
153
- Update ${memoryDir}/shared/MEMORY.md ONLY for permanent, high-value learnings (build commands, repo conventions, recurring gotchas). Keep MEMORY.md under 4KB — consolidate, don't just append.
150
154
- If nothing worth saving, do nothing.${isGitRepo ? "\n- After writing, use the `push-memory` skill to validate, commit, and push." : ""}
0 commit comments