Clean Install Walkthrough¶
This walkthrough starts from a clean checkout and uses fake memory data only.
It verifies the current monorepo workflow before public package installation is finalized.
Prerequisites¶
- Git.
- Node.js 22 LTS or 24 LTS.
- npm 10 or newer.
- Python 3, only if building the docs site locally.
Check:
Other Node.js major versions are not claimed as supported until they are part of the CI matrix. See the runtime support policy.
Clone And Install¶
Use npm install only when intentionally changing dependencies.
Build And Validate¶
Optional docs validation:
python3 -m venv .venv-docs
.venv-docs/bin/pip install -r requirements-docs.txt
.venv-docs/bin/mkdocs build --strict
Run The CLI¶
Use a temporary store so the walkthrough does not touch real memory:
NUZO_WALKTHROUGH_DIR=/tmp/nuzo-walkthrough
NUZO_STORE="$NUZO_WALKTHROUGH_DIR/memories.sqlite"
NUZO_EXPORT="$NUZO_WALKTHROUGH_DIR/memories.memory.export.json"
NUZO_IMPORTED_STORE="$NUZO_WALKTHROUGH_DIR/imported.sqlite"
mkdir -p "$NUZO_WALKTHROUGH_DIR"
Initialize the store:
Run doctor:
In restricted agent sandboxes, the Git tracking check may report unavailable if the environment blocks child process execution. That should not prevent the rest of the walkthrough from working.
Remember And Recall¶
Store fake project context:
npm run nuzo -- memory --store "$NUZO_STORE" remember "The demo project uses SQLite for local storage." --kind project_decision --tag demo --tag storage
Recall it:
List stored memories:
Export And Import¶
Export as JSON:
Dry-run import into a separate store:
Import for real:
Confirm recall from the imported store:
Cleanup¶
Remove the temporary walkthrough store:
Do not commit runtime memory stores or exports.
Troubleshooting¶
better-sqlite3 install or build fails¶
Confirm that Node.js 22 LTS or 24 LTS and npm 10 or newer are active:
If npm cannot use a prebuilt binary, better-sqlite3 requires a local C/C++
build toolchain and Python. Follow the platform-specific steps in the
runtime support policy.
nuzo memory doctor reports Git tracking unavailable¶
This can happen in restricted sandboxes that block child processes. In a normal Git checkout, doctor should be able to inspect tracked memory files.
For smoke tests or restricted hosts where Git process execution is not available, use:
This skips only the Git tracking check. Missing stores, missing directories, and tracked memory files in normal checkouts remain warnings.
npm run nuzo cannot find dist/index.js¶
Build first:
Export files appear in git status¶
Use the ignored export suffixes:
Avoid custom export filenames that do not match those patterns.