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
| Field | Example |
|---|---|
| topic | fix:docker-healthcheck-ipv6 |
| outcome | success |
| what_worked | Use 127.0.0.1 not localhost |
| severity | critical |
| tags | ["docker", "ipv6"] |
| source | vscode-offline-queue |
| savedAt | 2026-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 emptyUpdate
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 solo developers, teams and whole companies
Explain it once. Every AI knows it.
cachly keeps what you explain to your AI in every session. Claude Code, Cursor, Copilot and Windsurf read your rules, decisions and solved bugs: for you alone, for your whole team and for every team in your company. Servers in Germany, with SSO and a DPA for companies.
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@cachlyThen turn on auto-update once:
/plugin→ Marketplaces → cachly → Enable auto-update- Any MCP editor
npx @cachly-dev/mcp-server@latest autopilot- JetBrains
- JetBrains Marketplace: cachly-brain