← Back to Plugins
Tools

Continuvault

shahidalparvezmalik By shahidalparvezmalik 👁 12 views ▲ 0 votes

ContinuVault — a self-hosted, privacy-first Second Brain for AI agents, providing persistent memory, cross-session task continuity, structured knowledge management and verified recovery through native plugins, MCP and CLI.

Homepage GitHub

Install

pip install .

README

# ContinuVault: Persistent Memory, Continuous Intelligence

[![CI](https://github.com/shahidalparvezmalik/continuvault/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/shahidalparvezmalik/continuvault/actions/workflows/ci.yml)

<p align="center">
  <img src="assets/logo.svg" alt="ContinuVault logo" width="116">
</p>

<p align="center"><strong>Persistent Memory. Continuous Intelligence.</strong><br>
<em>The Self-Hosted Second Brain for AI Agents.</em></p>

<p align="center"><img src="assets/repository-banner.svg" alt="ContinuVault project banner" width="100%"></p>

ContinuVault is a self-hosted, privacy-first Second Brain for AI agents. It provides persistent operational memory, cross-session project continuity, structured knowledge management, correction history, non-destructive maintenance, and verified local backup and recovery through an optional Hermes provider, local MCP server, Python API, and CLI.

**Status: pre-release alpha.** ContinuVault is licensed under MIT; see [`LICENSE`](LICENSE). No tagged release or package-registry publication has been made. Repository visibility is controlled separately from this project license. The verified scope and remaining gaps are listed below.

## Why it exists

An agent should be able to resume work from recorded context instead of asking the user to reconstruct it. ContinuVault stores the work history, decisions, attempted fixes, verified solutions, tasks, and project checkpoints needed to help with that handoff. It is designed to reduce repeated work—not to guarantee that an agent will never repeat a mistake.

## How it works

![ContinuVault architecture](docs/architecture.svg)

The local SQLite/FTS5 core handles structured memory and operational history. Reviewed Markdown knowledge is stored separately. The CLI and Python API work without an agent framework; optional Hermes and MCP adapters connect agents without requiring cloud services. The MCP interface uses manual tool calls; only a platform-specific provider lifecycle can capture turns automatically. See the [architecture guide](docs/architecture.md) and [synthetic workflow](examples/synthetic-workflow.md).

## Current capabilities

- Local SQLite storage with FTS5 keyword search, migrations, provenance, trust labels, timestamps, relationships, correction receipts, and active/superseded/deprecated status.
- Project, task, work-history, and evidence-backed checkpoint records.
- Error and solution history that distinguishes attempted, failed, and evidence-verified outcomes.
- Separate Markdown knowledge files with draft/reviewed states; only explicitly reviewed articles are returned by reviewed-knowledge retrieval.
- Non-destructive integrity, foreign-key, FTS, and duplicate-candidate checks. Duplicate candidates are reported, not merged or deleted.
- WAL-safe backups with validation manifests, restore safeguards, configurable retention, JSON memory export/import, selective deletion, and explicit-confirmation reset.
- Heuristic credential-pattern rejection applies to memory content/metadata, project/task/checkpoint fields, error and solution records, work-history text, knowledge fields, and imported memories. This filter is not comprehensive and must not be treated as a DLP guarantee. It is not a general personal-data classifier or sensitive-information redactor.
- Optional Hermes memory-provider entry point, with explicit capture as the default and profile-local storage.
- Optional MCP tools over local stdio; no network listener. Other MCP hosts use manual tool calls; MCP support does not imply automatic conversation capture.
- JSON-output CLI and importable Python APIs.

## Quick start (source checkout)

Requirements: project metadata declares Python 3.11 or later. GitHub Actions is configured for Python 3.11 and 3.14 on Ubuntu; the CI badge above shows the current branch status. Other Python versions and platforms remain unverified.

```bash
python -m venv .venv
# Linux (POSIX shell)
. .venv/bin/activate
python -m pip install .
continuvault init
continuvault status
continuvault memory add "Synthetic note: the recovery guide is in the project docs." \
  --category project --source user --trust user_confirmed
continuvault memory search "recovery guide"
```

To install the optional MCP integration from a source checkout:

```bash
python -m pip install '.[mcp]'
continuvault mcp serve
```

The server uses stdio and the default per-user database. To select a database explicitly, place the global flag before the command: `continuvault --database /private/path/continuvault.sqlite3 mcp serve`.

For an empty install in another data directory, set `CONTINUVAULT_HOME` to that directory before running the CLI. Every install initializes its own empty database; no user or production memory is bundled.

## Integrations and compatibility

| Integration | Current status | Capture behavior |
|---|---|---|
| Standalone CLI / Python | Implemented and covered by local tests | Explicit API/CLI calls |
| Hermes Agent | Optional packaged provider; actual `MemoryManager` lifecycle smoke test was reported successful in the development runtime | Explicit `Remember:` capture by default; opt-in `all_primary_turns` policy is available |
| MCP | Optional SDK-based stdio server; exercised through the MCP Python client over a real subprocess | Manual tool calls; no automatic capture is implied |
| OpenClaw | MCP stdio configuration documented; specific OpenClaw runtime not tested | Manual tools only; no automatic capture |
| Other MCP-capable agents | May connect through the stdio MCP server where the host supports it | Manual tool calls only unless a separate adapter is implemented and tested |
| Windows / macOS / Docker | Not verified | No installation claim |

The Hermes provider uses the supported `hermes_agent.memory_providers` entry-point group and does not automatically replace a provider. Hermes permits one external provider at a time; selection must be done deliberately by the installing user. Follow the [Hermes integration guide](docs/hermes-integration.md).

## Storage and trust model

Structured operational records live in SQLite; reviewed knowledge is Markdown under a separate `knowledge/` directory. Both are local by default. SQLite uses FTS5 keyword search; no embedding model, cloud database, or paid memory service is required. The reviewed-knowledge store records explicit review metadata and a content digest so edits after review are detected and require renewed review.

Retrieved memory and knowledge are data, not executable instructions. Provenance and trust labels describe how records entered the store; they do not prove truth. Agents and users must assess relevance and current intent before relying on retrieved content.

See [architecture](docs/architecture.md), [security and privacy](docs/security-privacy.md), and [memory management](docs/memory-management.md).

## Backups, maintenance, and reset

Backups are manual unless an administrator schedules the CLI with their operating-system scheduler. Destination directory and retention are user-selected; the project does not impose a production backup schedule. Restore validates a backup before replacing a target and refuses unsafe SQLite sidecar states. Export/import bundles contain memory records, relationships, and correction receipts; full-database backup is required for other operational tables and Markdown knowledge.

```bash
continuvault backup --destination-dir ./private-backups --retention-days 30
continuvault maintenance
continuvault restore --source ./private-backups/continuvault-backup-<timestamp>.sqlite3
```

The `reset` command requires `--confirm "RESET ALL MEMORY"`; it clears live database records and the database-adjacent Markdown knowledge files. It does not delete backup files or separately exported bundles. Read [backup and recovery](docs/backup-recovery.md) before scheduling or restoring. Keep an off-device, access-controlled recovery copy if losing the device would be unacceptable; same-device backups do not protect against device loss, theft, or filesystem failure.

## Documentation

- [Installation](docs/installation.md) · [Configuration](docs/configuration.md) · [Support matrix](docs/support-matrix.md)
- [Architecture](docs/architecture.md) · [Database schema](docs/database-schema.md) · [API reference](docs/api-reference.md) · [CLI reference](docs/cli-reference.md)
- [Hermes integration](docs/hermes-integration.md) · [OpenClaw integration](docs/openclaw-integration.md) · [MCP integration](docs/mcp-integration.md) · [Integration development](docs/integration-development.md)
- [Memory management](docs/memory-management.md) · [Backup and recovery](docs/backup-recovery.md)
- [Security and privacy](docs/security-privacy.md) · [Troubleshooting](docs/troubleshooting.md) · [FAQ](docs/faq.md)
- [Contributing](CONTRIBUTING.md) · [Security reporting](SECURITY.md) · [Privacy](PRIVACY.md) · [Code of Conduct](CODE_OF_CONDUCT.md)
- [Licensing guide](LICENSE_GUIDE.md) · [Copyright](COPYRIGHT.md) · [Notices](NOTICE.md) · [Third-party inventory](THIRD_PARTY_LICENSES.md) · [Trademark policy](TRADEMARK_POLICY.md) · [Disclaimer](DISCLAIMER.md)

## Licensing and project name

ContinuVault's project source, documentation, and included artwork are licensed under MIT; see [`LICENSE`](LICENSE). The owner confirmed authorization for the included materials, with no employer, client, or legacy proprietary material. No tagged release or package-registry publication has been made; repository visibility is controlled separately. Third-party dependencies remain under their own licenses; see [`THIRD_PARTY_LICENSES.md`](THIRD_PARTY_LICENSES.md). The project name and visual identity are not granted as trademarks by the software license; see [`TRADEMARK_POLICY.md`](TRADEMARK_POLICY.md).

`ContinuVault` and its visual identity are project identifiers; this document does not claim trademark registration or legal exclusivity. Name availability is a preliminary search r

... (truncated)
tools

Comments

Sign in to leave a comment

Loading comments...