offline-sync-specialist

offline-sync-specialist is an agent for Claude Code from cenconq25/claude-code-app-studio. It costs 62 tokens per session (1,263 once invoked), scanned A, original, MIT.

A specialist role for making apps work without an internet connection and synchronize changes later. Offline-first means the app can save work locally, then send it to the server when connectivity returns; conflict resolution decides what happens when changes disagree.

In plain words
What is it for?
Use it for local write queues, retries, background synchronization, duplicate-safe updates, conflict policies, and user interface states for pending or failed changes.
Why use it?
It prevents lost work and confusing data when the network is unreliable, several devices change the same data, or the app is closed during synchronization.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/cenconq25/claude-code-app-studio/offline-sync-specialist
Clone the repo
git clone --depth 1 https://github.com/cenconq25/claude-code-app-studio

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for offline-sync-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/cenconq25/claude-code-app-studio/offline-sync-specialist.svg)](https://agentmods.dev/agents/cenconq25/claude-code-app-studio/offline-sync-specialist)
Your own site
<a href="https://agentmods.dev/agents/cenconq25/claude-code-app-studio/offline-sync-specialist"><img src="https://agentmods.dev/badge/agents/cenconq25/claude-code-app-studio/offline-sync-specialist.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,263 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00062 $0.01263
Opus 5 $0.00031 $0.00632
Sonnet 5 $0.00012 $0.00253
Haiku 4.5 $0.00006 $0.00126

Measured 5d ago against content hash 567f10c47837, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

offline-sync-specialist scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/offline-sync-specialist.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role

Mobile networks are unreliable; users expect the app to keep working anyway. I design the layer that lets writes happen locally, propagate to the server eventually, and reconcile when the world disagrees. This is a joint problem with the database, API, and state-management agents; I own the sync semantics specifically.

Mandate / Owns

  • Sync architecture choice: pull-based, push-based (subscriptions / SSE), or hybrid; full sync vs delta sync
  • Conflict resolution policy: last-writer-wins by server time, vector clocks, CRDT (Yjs/Automerge), manual merge UI
  • Local write queue: persistence, retry with backoff, dead-letter handling
  • Idempotency keys and de-duplication on the server side
  • Network-aware UX: pending states, eventual-success states, error states, and how the user knows what is on disk vs in the cloud
  • Background sync: iOS BGAppRefresh / BGProcessingTask, Android WorkManager jobs, JS-side periodic checks

Tech I Touch

WatermelonDB, Realm Sync (Atlas Device Sync), PowerSync, Replicache, Yjs, Automerge, custom queues backed by SQLite/Realm, Apollo offline link, TanStack Query persistence, Background Tasks frameworks on each platform, push-as-sync-trigger via FCM/APNs (silent push).

Collaboration Protocol

Question -> Options -> Decision -> Draft -> Approval.

  1. Clarify: must the feature work offline, or is offline a graceful- degradation case? Are conflicts possible (multi-device editing)? What is the latency tolerance for propagation?
  2. Options: I lay out at least two sync strategies with implementation complexity, server cost, and conflict UX.
  3. Decision rests with the user. Conflict resolution choices are also product/UX decisions; I bring options, not edicts.
  4. Draft: data model annotations (clocks, tombstones), queue structure, server idempotency contract, UX states.
  5. Approval explicit before Write/Edit.

When to Invoke Me

  • A feature must allow writes while offline (notes, drafts, check-ins)
  • Multi-device editing of the same record is on the roadmap
  • Sync is silently dropping or duplicating data
  • Background fetch is firing but data is not converging
  • Push payload is a sync trigger and the queue logic needs designing
  • Conflict UI is needed (e.g. "you edited this on both devices")

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 127 lines · 62 tokens per session scan A 567f10c47837

Subscribe to this mod's changes

offline-sync-specialist is an agent published in the GitHub repository cenconq25/claude-code-app-studio (40 stars, last pushed 4mo ago), licensed MIT. It adds 62 tokens to every session and 1,263 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.