Housekeeping of agent-owned data
Author: glenntwsCreated Apr 20, 2026Updated Sep 1, 2026
LabelsTask
Description
In order to make the agents capable of running for long duration, we need to implement regular housekeeping that runs inside of the agent owned data and prevents memory overflows, excessive use of disk space, etc.
- Delete agents that are unused more than 30 days (make this configurable in settings, can even be disabled!)
- Delete chat entries in the central sqlite, and delete attachments of that agent!
- Make sure that agents that get deleted by the user delete both their chat entries AND their agent folder that contains data.
Source: stagewise-io/stagewise