summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/README.md
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-24 20:27:49 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-24 20:27:49 -0700
commitf33999b153851d927a103e0f4b6032ed53a94aad (patch)
tree5e0eef8f4e703e5b3f97faa2c093dbd862d27859 /plugins/code-modernization/README.md
parente510be1304643082b148b129498dd8edeeef4176 (diff)
code-modernization: call workflows by name and fix the uplift version arguments
The Workflow tool refuses a plugin script path whenever the plugin lives outside the working directory, which is the normal case for an installed plugin: the model failed once or twice on every run before falling back to the registered name. The commands now call each workflow by its registered name and mention the script path only as a fallback. modernize-uplift also referred to legacy/$system_version, which is not an argument; it now uses $source_version everywhere, and the version pair, the rewrite target and the vision fall back to analysis/<system>/INTENT.md when they are not given. The README notes that a scripted (claude -p) run needs CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 so long fan-out steps can finish.
Diffstat (limited to 'plugins/code-modernization/README.md')
-rw-r--r--plugins/code-modernization/README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/code-modernization/README.md b/plugins/code-modernization/README.md
index 7392e6a7..c1f047b1 100644
--- a/plugins/code-modernization/README.md
+++ b/plugins/code-modernization/README.md
@@ -100,6 +100,7 @@ A pane beside the transcript that shows the map of your code, how far each part
- **The assessment's COCOMO figure is a relative size index, never a timeline or a cost.** Its constants encode human-team productivity, which agentic work does not follow.
- **A model does the extraction, so two runs can find different rules.** Treat `BUSINESS_RULES.md` as reviewed output, not a deterministic build artifact. Headings are always `### RULE-NNN: <name>`.
- **Large runs are resumable.** On Claude Code builds with the Workflow tool, `extract-rules`, `harden`, `assess --portfolio`, `reimagine` and `uplift` run as scripted multi-agent jobs that verify findings adversarially. `extract-rules` shards by module and asks before a big run; a stopped run resumes in the same session with its run ID, and finished agents replay from the journal. `uplift` migrates in escalating batches behind a circuit breaker. Older builds fall back to plain subagents automatically.
+- **Scripting it (`claude -p`).** Long steps run as background workflows, and a headless session stops waiting for background work after 10 minutes. Set `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0` so `extract-rules`, `harden` and the other fan-out steps can finish, and answer a step's approval gate by resuming the session with `--resume`.
- **Adapting it.** Commands, agents and workflows are markdown and JavaScript under Apache 2.0: fork them to change the prompts or steps for your stack.
- **Agents.** `legacy-analyst`, `business-rules-extractor`, `architecture-critic`, `security-auditor`, `test-engineer`, `version-delta-analyst`, `uplift-migrator` and `scaffolder` are invoked by the commands (or directly). The last two write only inside their own unit's directory.
- **Related.** [code-migration-kit-with-claude-code](https://github.com/anthropics/code-migration-kit-with-claude-code) is a separate public kit of prompts, templates and scripts for large-scale language migrations. This plugin is the guided, command-driven workflow from discovery through plan, build and proof; use either or both.