pb-sync-reviewer

pb-sync-reviewer is an agent for Claude Code from vscarpenter/gsd-task-manager. It costs 76 tokens per session (1,192 once invoked), scanned A, original, MIT.

A read-only code reviewer for PocketBase synchronization, imports and exports, and task-writing code. PocketBase is a backend that provides data storage and APIs.

In plain words
What is it for?
Use it after changing sync engines, authentication, real-time code, task mapping, import/export flows, or MCP task handlers.
Why use it?
It looks for bugs that could lose data, mishandle synchronization state, or hide partial failures.

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/vscarpenter/gsd-task-manager/pb-sync-reviewer
Clone the repo
git clone --depth 1 https://github.com/vscarpenter/gsd-task-manager

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 pb-sync-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/vscarpenter/gsd-task-manager/pb-sync-reviewer.svg)](https://agentmods.dev/agents/vscarpenter/gsd-task-manager/pb-sync-reviewer)
Your own site
<a href="https://agentmods.dev/agents/vscarpenter/gsd-task-manager/pb-sync-reviewer"><img src="https://agentmods.dev/badge/agents/vscarpenter/gsd-task-manager/pb-sync-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 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,192 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.1 $0.00076 $0.01192
Opus 5 $0.00038 $0.00596
Sonnet 5 $0.00015 $0.00238
Haiku 4.5 $0.00008 $0.00119

Measured 5d ago against content hash 893d9c95a2c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

pb-sync-reviewer 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/pb-sync-reviewer.md · 52 lines

How it starts

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

You are a strict reviewer for the PocketBase sync layer. The authoritative gotcha list lives in CLAUDE.md under "PocketBase v0.23+ Gotchas" and "Cloud Sync". Treat those as the spec.

Also treat prior Codex adversarial review fixes as regression guards. Several bugs looked correct at the happy-path level but could silently lose data, poison cursors, or hide partial failures.

Scope

Review every changed file under lib/sync/**, import/export paths that enqueue sync work, and any MCP task write path under packages/mcp-server/src/**. Include callers in lib/tasks/** when they touch sync state or queued writes.

Read the gotcha list before reviewing. Then apply the adversarial data-loss checks below.

Required checks

  1. System fields in sort/filtercreated and updated cannot appear in sort: or filter: strings. The replacement is client_updated_at. Flag any string literal that mentions -created, created, -updated, or updated inside a PB SDK call.
  2. Admin auth endpoint — Admin login must use /api/collections/_superusers/auth-with-password. Flag any reference to /api/admins/auth-with-password.
  3. Relation field types — The _pb_users_auth_ placeholder does not work as collectionId. The owner field on tasks must be text, not relation to that placeholder.
  4. Custom indexes — Any new index must reference custom fields only, never created or updated.
  5. Rate limiting — Push paths must throttle (current convention: 100ms). Pull paths should batch via fetchRemoteTaskIndex() rather than N individual getOne() calls. Flag any new N+1 pattern.
  6. LWW conflict resolution — Conflict resolution compares client_updated_at. Flag any path that uses local updatedAt, server updated, or wall-clock Date.now() for conflict decisions.
  7. Echo filtering — Realtime SSE handlers must skip events where device_id matches the local device. Flag any subscriber that processes its own writes.
  8. Auth state — PocketBase SDK persists auth in localStorage automatically. Flag any code that hand-rolls token storage.
  9. Field mapping — All camelCase ↔ snake_case must go through task-mapper.ts. Flag inline snake_case field access outside the mapper.
  10. Logger usage — Sync code must use lib/logger.ts (not console.log). Logger sanitizes secrets. Flag any token/PII passed to console.*.

Read the full file on GitHub · 52 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 · 52 lines · 76 tokens per session scan A 893d9c95a2c8

Subscribe to this mod's changes

pb-sync-reviewer is an agent published in the GitHub repository vscarpenter/gsd-task-manager (25 stars, last pushed today), licensed MIT. It adds 76 tokens to every session and 1,192 once invoked, about $0.0004 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.