# clawhdf5-migrate [![crates.io](https://img.shields.io/crates/v/clawhdf5-migrate.svg)](https://crates.io/crates/clawhdf5-migrate) [![docs.rs](https://img.shields.io/docsrs/clawhdf5-migrate)](https://docs.rs/clawhdf5-migrate) CLI tool to migrate SQLite agent memory databases (the ZeroClaw layout) to a [clawhdf5-agent](https://crates.io/crates/clawhdf5-agent) store. The output is written through `clawhdf5-agent`'s own API, so it opens with `HDF5Memory::open` and is searchable immediately: memory records, sessions and the knowledge graph (entities and relations) are carried over. ## Installation ```bash cargo install clawhdf5-migrate ``` ## Usage ```bash clawhdf5-migrate --sqlite agent.db --hdf5 agent.h5 --agent-id my-agent ``` Embeddings are stored as float16 (the library default for new stores); pass `--f32` for full precision. Every embedding must have the same dimension (the first row's, or `--embedding-dim`, which a source with no memory records requires); rows are never truncated, and the whole source is checked before an existing output store is replaced. `--incremental` adds only new rows to an existing store of the same dimension and carries over changes to rows' deleted flags, `--skip-deleted` leaves out tombstoned rows, and `--dry-run` only counts. See `clawhdf5-migrate --help` for every option. ## License MIT