cachly← All posts
VS Code · Release 0.7.8 · May 2026

Your AI lessons are now saved even when you're offline

cachly Brain 0.7.8 — offline lesson queue that auto-syncs when the connection returns.

The problem: lessons lost in silence

Picture this: your AI assistant fixes a nasty Docker healthcheck bug on an airplane. It calls learn_from_attempts(). The request fails silently — no network. The lesson is gone. Next week, same bug, same research from scratch.

Until now, this was the default behavior. If the Brain API wasn't reachable, the lesson simply wasn't stored. No error, no retry, no queue. 0.7.8 changes that.

What the offline queue does

When the Brain API is unreachable, lessons are stored locally in VS Code's globalState — a persistent key-value store that survives editor restarts and reboots.

AI calls learn_from_attempts(...)
  → Brain API unreachable (offline / timeout)
    → Lesson saved to globalState["cachly.offlineLessonQueue"]
    → Status bar: "🧠 Brain: OFFLINE · 3 offline"
    → No error thrown

Connection returns:
  → flushOfflineQueue() called (activation or 5-min timer)
  → Each lesson POSTed to Brain API
  → Success → removed from queue
  → Status bar: "🧠 Brain: 47 lessons"
  → Notification: "🧠 synced 3 offline lessons"

What gets queued

FieldExample
topicfix:docker-healthcheck-ipv6
outcomesuccess
what_workedUse 127.0.0.1 not localhost
severitycritical
tags["docker", "ipv6"]
sourcevscode-offline-queue
savedAt2026-05-09T14:23:00.000Z

Queue cap: 500 lessons max. FIFO — oldest drop first.

When this matters most

  • Airplane mode — fixes, discoveries, config changes → all queued, synced on landing
  • Network instability — flaky hotel WiFi, VPN dropouts, rate-limited endpoints
  • Before onboarding — extension installed, no credentials yet — queue fills, syncs on first connection
  • Server maintenance — Brain API down for a deploy; syncs automatically when back

The status bar tells you

🧠 Brain: 47 lessonsConnected, everything synced
🧠 Brain: OFFLINE · 3 offlineDisconnected, 3 lessons queued
🧠 Brain: OFFLINEDisconnected, queue empty

Update

Search “Cachly Brain” in the VS Code marketplace and update to 0.7.8. Or:

code --install-extension cachly-dev.cachly-brain

cachly.dev

For everyone coding with Claude Code, Cursor, Copilot and Windsurf

Fixed in Cursor today. Copilot knows it tomorrow.

cachly keeps your project's fixes in one place. Claude Code, Cursor, Copilot and Windsurf all read it, for you and everyone on your team. Stored on servers in Germany.

Servers in the EU · one command, restart your editor, done · 1 project free

Four ways to install

Claude Code
/plugin marketplace add cachly-dev/cachly-mcp
/plugin install cachly-brain@cachly

Then turn on auto-update once: /plugin → Marketplaces → cachly → Enable auto-update

Any MCP editor
npx @cachly-dev/mcp-server@latest autopilot