Skip to content

feat: persist full workspace to R2, not just skills#1

Merged
bradoyler merged 1 commit intomainfrom
feat/persist-workspace-to-r2
Feb 2, 2026
Merged

feat: persist full workspace to R2, not just skills#1
bradoyler merged 1 commit intomainfrom
feat/persist-workspace-to-r2

Conversation

@bradoyler
Copy link
Owner

Persist full workspace (/root/clawd/) to R2 for agent memory and configuration backup. Fixes agent memory loss on container restart. Cherry-picked from cloudflare/moltworker#88

- Add full /root/clawd/ workspace sync to R2 in sync.ts
- Exclude .git, node_modules, lock/log/tmp files from workspace sync
- Add workspace restore logic in start-moltbot.sh before skills restore
- Preserves agent memory, TOOLS.md, custom directories across container restarts
- Maintains backwards compatibility with legacy /root/clawd/skills/ path

Fixes: Agent memory loss on container restart
Cherry-picked from: cloudflare/moltworker#88
@bradoyler bradoyler merged commit b4f0621 into main Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant