plan-sync

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

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/gmickel/flow-next/plan-sync
Clone the repo
git clone --depth 1 https://github.com/gmickel/flow-next
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,491 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.00027 $0.04491
Opus 5 $0.00014 $0.02246
Sonnet 5 $0.00005 $0.00898
Haiku 4.5 $0.00003 $0.00449

Measured 2d ago against content hash 95ffd314d93c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 319 lines

How it starts

The opening of the file, as written. The whole thing — 319 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.

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 - output of flowctl glossary list --json (optional; defaults to {"groups":[],"file_count":0,"total_terms":0} when the project has no glossary)
  • DECISIONS_JSON - output of flowctl memory list --track knowledge --category decisions --json (optional; defaults to {"entries":[],"count":0} when no decision entries exist)
  • STRATEGY_CONTENT - 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.

Phase 1: Re-anchor on Completed Tasks

One re-anchor covering every id in COMPLETED_TASK_IDS:

# For each completed-task id:
# Read what was supposed to happen
<FLOWCTL> cat <completed-task-id>

# Read what actually happened
<FLOWCTL> show <completed-task-id> --json

From each JSON, extract:

  • done_summary - what was implemented
  • evidence.commits - commit hashes (for reference)

If a task's done_summary is empty/missing: Read that task spec's ## Done summary section directly, or infer from git log messages for commits in its evidence.

Parse each completed-task spec for:

  • Original acceptance criteria
  • Technical approach described
  • Variable/function/API names mentioned

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 · 319 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. 2d 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 (692 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 4,491 once invoked, about $0.0001 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.