Flow2Spec Upgrade Guide
Current update policy (CLI 3.6.5 onward)
The CLI declares a caret Core range such as ^3.8.2, allowing compatible Core releases independently. Existing CLI dependency declarations stay unchanged until users update the CLI once.
flow2spec update --coreretains the current CLI version, refreshes its compatible Core, and verifies the actually resolved version.flow2spec update --clirefreshes the latest CLI and its compatible Core; use it to enter a new compatibility range.- Installed dependencies do not change silently; lockfiles retain resolved versions. After template updates, run
flow2spec init <agents...>and compareprojectRev/pkgRevfor knowledge upgrade.
Historical migration example (CLI 3.6.2 / Core 3.7.2 / Template 3.6.2)
Highlight of this release: routing-summary recall anchors. Every routing rule in
manifest-routing.jsonnow carries asummarysemantic digest (synced automatically from topic frontmatter), which greatly improves knowledge-base hit rates for natural phrasings such as “where are the prototypes” or “which folder holds the flowcharts”.kb checkgains summary quality validation accordingly.
Version matrix
| Dimension | Example version | Notes |
|---|---|---|
CLI (@double-coding/flow2spec) | 3.6.2 | historical release; see the current update policy above |
Core (@double-coding/flow2spec-core) | 3.7.2 | installed automatically with the CLI, no separate action needed |
| Template Version | 3.6.2 | templates carry topic-layer changes (projectRev 3) |
| Qoder plugin | 3.7.2 | self-built (npm run build:qoder-plugin), named after the Core version |
New users (first-time setup)
Option 1: CLI (Codex / Cursor / Claude / DSH)
npm install -g @double-coding/flow2spec
flow2spec init <codex|cursor|claude|dsh> # multi-select, follow the prompts
Installing the CLI automatically brings Core within its dependency range; no separate install is needed. Init enables the bundled knowledge templates and summary-based first-pass recall.
Option 2: Qoder plugin (self-built install)
The Qoder plugin marketplace hosts official plugins only; build the Flow2Spec plugin yourself and install it locally:
-
Clone the repository and build the plugin package:
git clone https://github.com/double-coding-lab/Flow2Spec.git cd Flow2Spec && npm install && npm run build:qoder-plugin # produces output/flow2spec-3.7.2.zip -
In Qoder’s plugin management, choose local install and import the zip;
-
On first use in a project, run
flow2spec init pluginas prompted (plugin mode: initializes only the knowledge base and config, writes no client directories).
Then tell the agent things like “f2s-kb-build / f2s-kb-add” to start building the knowledge base.
Existing users (projects with .Knowledge)
Template 3.5.0 → 3.6.x includes topic-layer changes (projectRev 2 → 3), so updating the packages alone is not enough — run one knowledge-base upgrade. Three steps:
Step 1: Update the package
Update to the latest CLI and its compatible Core:
npm install -g @double-coding/flow2spec@latest
flow2spec version # confirm CLI 3.6.2 / Core 3.7.2
Once on 3.6.2 or later, future upgrades can also use flow2spec update --cli (it verifies the effective Core version and auto-repairs a broken dependency tree by reinstalling).
Qoder plugin users: pull the latest code and rebuild the plugin package (npm run build:qoder-plugin, producing output/flow2spec-3.7.2.zip), then re-import it in Qoder’s plugin management; no global npm package needed.
Step 2: Knowledge-base upgrade (the key step — let the agent do it)
In your project session, tell the agent:
f2s-kb-upgrade
The agent runs the full flow. The parts relevant to this release:
- Runs
flow2spec initto align the routing manifest and templates (incremental — it never overwrites your accumulated business knowledge); kb build --fix-topicsfills in frontmatter skeletons for existing topics;- Summary rewrite (new in this release):
kb check --strictlists every missing/placeholder topic summary; the agent reads each topic body, writes a one-line semantic summary per the authoring rules, thenkb buildsyncs it into the routing manifest — only after this step does your existing knowledge base gain the first-pass recall boost; - Writes back
projectRevand prints an upgrade summary.
No manual edits to any .Knowledge file are needed.
Step 3: Verify
flow2spec version # CLI 3.6.2 / Core 3.7.2 / Template 3.6.2
flow2spec kb check --strict # expect: knowledge check: ok, no summary warnings
Then try one natural question (e.g. “where do the prototypes / requirement docs of this project live”) and confirm the agent hits the right topic.
FAQ
Q: Does a Core release require a CLI release?
Not within the compatibility range. CLI 3.6.5 onward uses a caret range; run flow2spec update --core for compatible Core releases, or update to a supporting CLI before entering a new compatibility range.
Q: On an older CLI, flow2spec update --core said “updated” but flow2spec version did not change?
A known defect in CLI ≤ 3.6.1: that command installed Core globally at the top level while the CLI loads a nested copy. Reinstall the CLI once (npm uninstall -g @double-coding/flow2spec && npm install -g @double-coding/flow2spec@latest). Current update commands refresh the CLI dependency tree, verify the effective Core version, and fail if verification does not pass.
Q: Will the upgrade overwrite the knowledge base I already wrote?
No. The init run by f2s-kb-upgrade is incremental and only updates template-owned routing structure and rules; your business content in stock-docs / req-docs / topic bodies is untouched. --reset-knowledge is used only when you explicitly ask for an overwrite reset.
Q: Can I just update the packages and skip f2s-kb-upgrade?
The engine capabilities (summary sync, validation) take effect, but your existing topics have no summaries, so first-pass recall does not improve — and kb check will keep reporting placeholder/missing warnings. Run the upgrade soon after updating the packages.
Q: My project is still on the very old V1 layout (no .Knowledge/manifest-routing.json shards)?
V1 auto-migration has been removed from the package. First do a one-time migration with the historical @double-coding/flow2spec@3.4.x (or move things into the .Knowledge shape manually), then run f2s-kb-upgrade on the latest version.
Q: I told the agent f2s-kb-upgrade and it just replied “everything is up to date” and did nothing?
A known misjudgment in older skills (Template ≤ 3.6.0): they only compared “installed packages vs npm” and never checked “project knowledge base vs package templates” — an old project right after a package upgrade hits exactly this. Fixed since Template 3.6.1 (a project-side alignment check is now mandatory before stopping). If you hit it during the first upgrade of an old project, just be more explicit:
f2s-kb-upgrade, force the full flow: run flow2spec init first, then kb build --fix-topics and kb check --strict, and rewrite summaries per 3a.8
Q: After upgrading, git shows lots of changes under .cursor/ and .codex/ — is that normal?
Yes. Those are real updates to rule and skill bodies in the new templates (including the wholesale removal of f2s-kb-migrate), not empty diffs; use git diff -w to verify. The upgrade only touches .Knowledge/, the agent config roots (.cursor/ .codex/ etc.), AGENTS.md, and flow2spec.config.json — never your business source code; commit the upgrade changes separately from business changes. Also, the manifest version is the Template Version (3.6.2 after upgrading) and will not equal the Core version — that is expected.
Q: After upgrading, my commit is blocked by kb check reporting routing drift?
The manifest and topics are out of sync (usually after hand-editing the manifest). Ask the agent to run flow2spec kb build once (idempotent) and it self-heals.