Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust
966 B
Raw Blame
post_install() {
    cat <<'EOF'
ai-memory is installed.

Single user: run
  ai-memory setup
It creates the data dir and its bearer token, installs and starts a user
service, wires the agents it finds (it shows the plan and asks first), and
checks the result.

System service:
  sudo systemd-sysusers /usr/lib/sysusers.d/ai-memory.conf
  sudo systemd-tmpfiles --create /usr/lib/tmpfiles.d/ai-memory.conf
  sudo -u ai-memory ai-memory --data-dir /var/lib/ai-memory --config /etc/ai-memory/config.toml init
  sudo systemctl enable --now ai-memory.service

Configure LLM/API keys in ~/.config/ai-memory/env for the user service, or
/etc/ai-memory/env for the system service. See docs/install.md for details.
EOF
}

post_upgrade() {
    cat <<'EOF'
ai-memory was upgraded.

If you use lifecycle hooks, refresh the staged hook scripts: re-run
  ai-memory setup
(it shows the plan and asks first), or, for one agent,
  ai-memory install-hooks --agent <name> --apply
EOF
}