๐ฆ Quick install: Download the CLI script and plugin from the bin/ directory on GitHub, then run the commands below.
Step 1: Download & install the CLI
# Download the CLI script
curl -fsSL https://raw.githubusercontent.com/abhiroopb/synthetic-mind/main/bin/amp-mem \
-o ~/bin/amp-mem
# Make it executable
chmod +x ~/bin/amp-mem
# Ensure ~/bin is in your PATH (add to ~/.zshrc if not already)
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Step 2: Install the plugin (optional โ enables passive capture)
# Download the Amp plugin
curl -fsSL https://raw.githubusercontent.com/abhiroopb/synthetic-mind/main/bin/amp-mem-plugin.ts \
-o ~/.config/amp/plugins/amp-mem.ts
The plugin passively captures observations from tool usage (Linear, Gmail, Slack, etc.) and silently injects memory context once at session start (60-line budget, sentence-boundary truncation, meta-noise filtering). Uses Node.js child_process.execFile for reliable CLI execution. It's optional โ the CLI works standalone.
Step 3: Initialize the database
amp-mem init
This creates ~/.amp/memory/, the SQLite database, and the FTS5 search index. Safe to run multiple times (idempotent).
Step 4: Configure AGENTS.md
Add to your ~/AGENTS.md Session Start section a reference to the amp-mem plugin handling init, backup, context injection, and distill-status checks automatically.
Step 5: Verify
amp-mem init # "Database initialized"
amp-mem stats # 0 observations
amp-mem save observation "Test" "Testing memory"
amp-mem search "test" # Finds test observation
amp-mem serve # Web viewer at localhost:37777