- Add compactEmbeddedPiSessionDirect for synchronous compaction - Detect active run and use direct method to avoid self-abort deadlock - Fixes transcript repair error when session_compact called mid-session
1.3 KiB
1.3 KiB
Local state + config export (dev-only)
Moltbot stores runtime state under your home directory (by default ~/.moltbot, with legacy ~/.clawdbot often pointing to the same place).
This repo intentionally does not track your real local config, pairing stores, tokens, or other secrets. Instead, it provides a script that copies local state into a gitignored folder and optionally writes a redacted snapshot that is safe to commit.
Export local state into this repo
From the repo root:
node scripts/local/export-local-state.mjs
Outputs:
.local/moltbot/state/(gitignored): a local backup of your state/config filesconfig/redacted/moltbot.redacted.json(tracked): a redacted snapshot for reference/review
Optional flags
node scripts/local/export-local-state.mjs --include-agents --include-memory --include-logs
Those folders can be large.
Security notes
- The export script intentionally skips OAuth credential files like
oauth.json. - Always review
config/redacted/moltbot.redacted.jsonbefore committing. - Never commit real tokens, secrets, phone numbers, or personal identifiers.
Optional: import a local notes folder
If you keep local operator notes in a folder like ~/clawd/, you can copy it into this repo under .local/:
node scripts/local/import-clawd.mjs