Long-term memory CLI for Claude Code and Codex that surfaces markdown+SQLite FTS5 entries via MCP and agent hooks. Installs as a global npm CLI tool (v0.14.10) with auto-setup for Claude Code and optional Codex hook integration. Key differentiators: no central shared DB — knowledge is git-based and peer-to-peer; uses SQLite FTS5 for full-text search; caches community repos locally; exposes 6 MCP tools for read/write/pull operations. Requires Node >=22.5 and macOS or Linux.
npm install caveat-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs Caveat globally, initializes state without Claude integration, creates a personal markdown entry, indexes it, and searches for content via FTS5.
Use `git push` from your knowledge repo directory (default ~/.caveat/own) instead of `caveat push`.
Run `caveat codex-hook install` for Codex hooks; sidecar may be removed in a future release.
Upgrade Node.js to v22.5 or higher via nvm or brew.
Ensure `/opt/homebrew/bin/node` exists and points to your current Node binary, or use a version manager like nvm with a stable path.
Run `caveat community add <github-url>` for each team repo you want to include.
Ensure build-essential (Linux) or Xcode CLT (macOS) are installed, then reinstall: `npm install -g caveat-cli --build-from-source`
Install Claude Code: `npm install -g @anthropic-ai/claude-code` and ensure it's in PATH, or run `caveat init --skip-claude` to skip MCP setup.
Ensure ~/.caveat is writable. Run `chmod 755 ~` if needed, or move to a different location via `--home` flag.
Reinstall sqlite3 with FTS5 support: `npm rebuild sqlite3 --build-from-source` or install system SQLite3 with FTS5 enabled.