Skip to content

v0.1.2 — Auto-Init & Docker

Choose a tag to compare

@snow-ghost snow-ghost released this 20 Mar 20:30

What's new in v0.1.2

Auto-Initialization

No more mem init — any command (status, extract, inject, consolidate) automatically creates .memory/ on first use.

cd my-project
mem status    # just works, .memory/ created automatically
  • Notice printed to stderr only (stdout stays clean for piping mem inject)
  • Idempotent — creates only missing files, never overwrites existing data
  • Handles partial corruption (deleted files get recreated)
  • mem init still works for explicit setup (errors if already initialized)

Docker Support

Minimal scratch-based image — 2.98 MB.

# From GitHub Container Registry
docker run --rm -v $(pwd):/project ghcr.io/snow-ghost/mem status

# Or build locally
docker build -t mem .
docker run --rm -v $(pwd):/project mem status
  • Multi-stage build: golang:1.26-alpine → scratch
  • Entrypoint: mem, workdir: /project
  • Auto-init works inside containers
  • GitHub Actions workflow publishes image on each release

Install

# macOS (Apple Silicon)
curl -fsSL https://github.com/snow-ghost/mem/releases/download/v0.1.2/mem-darwin-arm64.tar.gz | tar xz
sudo mv mem-darwin-arm64 /usr/local/bin/mem

# macOS (Intel)
curl -fsSL https://github.com/snow-ghost/mem/releases/download/v0.1.2/mem-darwin-amd64.tar.gz | tar xz
sudo mv mem-darwin-amd64 /usr/local/bin/mem

# Linux (x86_64)
curl -fsSL https://github.com/snow-ghost/mem/releases/download/v0.1.2/mem-linux-amd64.tar.gz | tar xz
sudo mv mem-linux-amd64 /usr/local/bin/mem

# Linux (ARM64)
curl -fsSL https://github.com/snow-ghost/mem/releases/download/v0.1.2/mem-linux-arm64.tar.gz | tar xz
sudo mv mem-linux-arm64 /usr/local/bin/mem

Or via Go: go install github.com/snow-ghost/mem/cmd/mem@v0.1.2
Or via Docker: docker pull ghcr.io/snow-ghost/mem

Full Changelog: v0.1.1...v0.1.2