plan-sync

plan-sync is an agent for Claude Code from gmickel/flow-next. It costs 27 tokens per session (4,637 once invoked), scanned A, original, MIT.

An agent that updates remaining task specifications after related implementation work is finished. It uses project plans, terminology lists, decisions, and strategy notes when those are available.

In plain words
What is it for?
Use it as part of a task-flow process after one or more tasks are resolved. It synchronizes the remaining tasks under a parent specification, with options for dry runs and cross-spec updates.
Why use it?
When completed work changes the assumptions behind later tasks, their descriptions can become inaccurate. This agent keeps downstream specifications aligned with what was actually implemented.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the flow-next plugin — 29 skills, 26 commands, 21 agents shipped together

Good fit Use it as part of a task-flow process after one or more tasks are resolved. It synchronizes the remaining tasks under a parent specification, with options for dry runs and cross-spec updates.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gmickel/flow-next/plan-sync
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.

Clone the repo
git clone --depth 1 https://github.com/gmickel/flow-next

Made for: Claude Code.

Or install flow-next, the plugin that ships this one along with the rest of its 29 skills, 26 commands, 21 agents.

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 plan-sync

README.md
[![agentmods](https://agentmods.dev/badge/agents/gmickel/flow-next/plan-sync/github.svg)](https://agentmods.dev/agents/gmickel/flow-next/plan-sync)
Your own site
<a href="https://agentmods.dev/agents/gmickel/flow-next/plan-sync"><img src="https://agentmods.dev/badge/agents/gmickel/flow-next/plan-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plan-sync

Your own site · 80×15
<a href="https://agentmods.dev/agents/gmickel/flow-next/plan-sync"><img src="https://agentmods.dev/badge/agents/gmickel/flow-next/plan-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00027 $0.04637
Opus 5.5 $0.00011 $0.01855
Sonnet 5.5 $0.00005 $0.00927
Haiku 4.5 $0.00003 $0.00464

Measured 4d ago against content hash b4400738b3a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plan-sync 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 4d 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.

plugins/flow-next/agents/plan-sync.md · 323 lines

How it starts

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

Plan-Sync Agent

You synchronize downstream task specs after implementation drift.

Shell access is read-only: use only flowctl reads (cat, show, specs, memory read) and code/history inspection. Never write through shell, run task-state commands, or spawn agents. All permitted changes use Edit within the Phase 5 scope; DRY_RUN forbids edits.

Input from prompt:

  • COMPLETED_TASK_IDS - comma-separated list of tasks that just finished (e.g., fn-1.2 or fn-1.2,fn-1.3). A single-task wave is a one-element list; obligations stay per-task within this one pass.
  • SPEC_ID - parent spec (e.g., fn-1)
  • FLOWCTL - path to flowctl CLI
  • DOWNSTREAM_TASK_IDS - comma-separated list of remaining tasks
  • DRY_RUN - "true" or "false" (optional, defaults to false)
  • CROSS_SPEC - "true" or "false" (from config planSync.crossSpec1, defaults to false)
  • GLOSSARY_JSON_FILE - path to JSON output of flowctl glossary list --json (optional; defaults to {"groups":[],"file_count":0,"total_terms":0} when the project has no glossary)
  • DECISIONS_JSON_FILE - path to JSON output of flowctl memory list --track knowledge --category decisions --json (optional; defaults to {"entries":[],"count":0} when no decision entries exist)
  • STRATEGY_CONTENT_FILE - path to JSON output of flowctl strategy read --json (optional; defaults to {} when no STRATEGY.md exists or all sections are empty). tracks is a raw markdown string with ### <track-name> H3 sub-blocks. Empty section bodies surface as "" (empty string), not null.

Read these three files with Read and parse their contents as GLOSSARY_JSON, DECISIONS_JSON, and STRATEGY_CONTENT. Missing optional paths use the documented empty defaults above; dispatchers always supply all three paths. Also read .flow/specs/<SPEC_ID>.md for parent-spec comparisons.

Footnotes

  1. planSync.crossSpec is the canonical config key. The pre-1.1.3 name planSync.crossEpic was removed in 2.0.0 — flowctl no longer reads it. ↩

Read the full file on GitHub · 323 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. 4d ago Changed b4400738b3a3
  2. 19d ago Changed 7b29b7360428
  3. 20d ago Changed · +4 lines 70e7cb65410a
  4. 1mo ago First seen · 319 lines · 27 tokens per session scan A 95ffd314d93c

Subscribe to this mod's changes

plan-sync is an agent published in the GitHub repository gmickel/flow-next (710 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 4,637 once invoked, about $0.0001 per session on Opus 5.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.