Migrating from version 1
Version 2.0 of cyber-agentkit retired some forms version 1 wrote. A file still in one loads as 2.0 reads it, with a
reference-legacy-format warning naming its 2.0 form, and check fails it. A file with merge: first-wins, for
example, applies as patch, not as replace, until it is migrated.
| Version 1 | 2.0 |
|---|---|
merge: merge-sections |
no merge: patch is the default |
merge: first-wins |
merge: replace |
overrides: [<plugin>] |
extends: [<plugin>] |
a skill’s default at references/<name>.md |
references/<name>.default.md |
a selection reference select wrote in a folder below the root |
reference customize <name> --extends <step>... at the root |
a qualified-name override, <plugin>/<name>.md in a subfolder of .agents/references/ |
<name>.md with extends: [<plugin>] |
reference migrate finds these files, and the files under a name a plugin renamed, and prints the
plan: each file, its tier, and the change. It writes nothing until you add --write. It reads the repo
tier, the user tier, and every project section. With --plugin <folder> or --default <folder>, it
reads only that folder instead. A user-tier file has no git history to
restore it, so read its rows before you apply them. No earlier version read a qualified-name override, so
applying one turns on an override that never applied. A change it cannot make safely is a manual row
that says what to do. These are:
- a selection in a project folder
- a qualified-name override that sits in a project folder, names a plugin that is not installed, or sits beside a file that already answers the name
It never changes a managed file or an installed plugin or skill.
npx -y cyber-agentkit reference migrate # print the plannpx -y cyber-agentkit reference migrate --write # apply itFor a repository file .agents/references/old-style.md that still says merge: first-wins, the plan is one row
(the path is shortened here):
changes[1]{path,tier,name,form,from,to}: <root>/.agents/references/old-style.md,repo,old-style,first-wins,"merge: first-wins","merge: replace"The reference skill’s Migrate mode shows you every row and runs --write only after you approve.