MultiBackendHistoryProvider
delivers high-availability, fault-tolerant, and durable conversation history storage for coding agents and AI assistants. By combining a fast primary database, a durable backup, and a Write-Ahead Log (WAL), Cipher ensures your chat history is never lost—even in the face of backend failures or network interruptions.
.env
file:
CIPHER_MULTI_BACKEND=1
to enableMultiBackendHistoryProvider
implements:
getHistory(sessionId, limit?)
saveMessage(sessionId, message)
clearHistory(sessionId)
disconnect()
async
.
WALHistoryProvider
), but you can extend it for persistent logging.IConversationHistoryProvider
for custom storage.WALHistoryProvider
for persistent WAL (e.g., file, database).