← All Apple Shortcuts

Apple Shortcut · By LM Mini

🧠 CtxLLM

CtxLLM stores conversation context in a Shortcuts variable or file so LM Mini remembers prior exchanges across runs — synthetic memory without a cloud service.

One-tap install

Build the shortcut below (2 minutes), then share to iCloud from Shortcuts.app to enable one-tap install for others. Update website/data/shortcuts.json with your icloudUrl and re-run this generator.

Build This Shortcut

Siri Phrase

"Hey Siri, continue with context"

Run once after installing, then Siri learns this phrase.

How the shortcut works

  1. Each run loads prior context from a Shortcuts file or Data jar.
  2. Your new message is appended and sent to LM Mini.
  3. LM Mini responds with full thread awareness.
  4. Updated context is saved back for the next run.

Key features

Recommended models

iPhone / iPad

Qwen 3 4B with 8k+ context via LM Studio if needed

iPad Pro / Mac (MLX & LM Studio)

Connect to LM Studio 32k context model for long memory threads

Tune temperature (0.7) and top-p (0.9) in LM Mini → Settings → Model Parameters. See the full on-device model catalog.

Build it in 60 seconds

  1. Create a text file in iCloud Drive or Shortcuts folder for context storage.
  2. Get Contents of File → Combine with new Dictated Text → Ask LM Mini.
  3. Combine response with thread → Save File.
  4. Use lmmini://shortcut/voice?conversationId= for in-app persistent threads.

URL scheme (power users)

Add an Open URLs action in Shortcuts.app:

lmmini://shortcut/ask?prompt=Continue%20our%20conversation&onDevice=1

Need LM Mini? Free on iOS and Android — on-device GGUF/MLX, LM Studio Connect, voice, and more.

Download LM Mini LM Mini vs Private LLM