diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-09-23 19:01:31 -0700 |
|---|---|---|
| committer | Morgan Lunt <morganl@anthropic.com> | 2026-09-24 17:49:55 -0700 |
| commit | 08bf451b72fb386f47dae959c35294e7d89164b4 (patch) | |
| tree | 848707bb6c5fd46ce8f8837071d65cab45b35434 /plugins/code-modernization/README.md | |
| parent | 686a686cc0dc7fad8ac562c38b4f91bf9747f2a6 (diff) | |
code-modernization: extract-rules per-module shards, resume and coverage gaps
Extraction now shards by module: one extractor per module, in ordered
batches, so each agent reads a small slice instead of the whole estate.
The command builds the module list from analysis/<system>/topology.json
when it exists (otherwise from the directory tree), states the shard
count and an agent estimate before launching, and documents how to
resume an interrupted run with resumeFromRunId and how to re-run only
the shards that failed. The workflow stays inside the runtime's agent
cap and reports coverage gaps (skipped, failed and unverified shards)
instead of returning a partial catalog without saying so.
The estimate paragraph carries what was observed on a 44-program,
30,000-line system: 466 to 647 agents, about 8.8M tokens, 50 to 80
minutes. Module-mode extractors cite paths relative to legacy/<system>/,
like the lens-mode extractors.
Diffstat (limited to 'plugins/code-modernization/README.md')
| -rw-r--r-- | plugins/code-modernization/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/code-modernization/README.md b/plugins/code-modernization/README.md index 689dc48a..10772019 100644 --- a/plugins/code-modernization/README.md +++ b/plugins/code-modernization/README.md @@ -56,7 +56,7 @@ Run in order, but each is standalone — stop, review, resume. - **`/code-modernization:modernize-map <system-dir>`** — Dependency and topology map: call graph, data lineage, entry points, and 2–4 business flows each traced for a persona (the claimant, the auditor). Produces `topology.json` and an **interactive zoomable `TOPOLOGY.html`** (circle-pack sized by LOC, edge toggles, search, and a persona-flow walkthrough), plus small `.mmd` diagrams for docs. -- **`/code-modernization:modernize-extract-rules <system-dir> [module-pattern]`** — Mine the business rules — calculations, validations, eligibility, state transitions — into Given/When/Then "Rule Cards" with `file:line` citations and confidence ratings. Produces `BUSINESS_RULES.md` + `DATA_OBJECTS.md`. +- **`/code-modernization:modernize-extract-rules <system-dir> [module-pattern]`** — Mine the business rules — calculations, validations, eligibility, state transitions — into Given/When/Then "Rule Cards" with `file:line` citations and confidence ratings. With the Workflow tool, anything but a tiny system is extracted in per-module shards (from `map`'s `topology.json` if present, else the directory tree), so each extractor reads one focused slice. Produces `BUSINESS_RULES.md` + `DATA_OBJECTS.md`. - **`/code-modernization:modernize-brief <system-dir> [target-stack]`** — Synthesize discovery into a phased **Modernization Brief**: target architecture, phase plan, persona walkthroughs, behavior contract, and an approval block. Reads the discovery artifacts and **stops if any are missing**. Enters plan mode as a human-in-the-loop approval gate. For a same-stack uplift it also requires the **delta catalog**, since an uplift's phase order is decided by its version deltas. The execution commands read the brief and treat each phase's entry criteria as gates, so editing the brief steers execution. @@ -118,7 +118,7 @@ Commands degrade gracefully, but these improve the output (run `/code-modernizat ## Dynamic workflow orchestration -On Claude Code builds with the Workflow tool, five commands (`extract-rules`, `harden`, `assess --portfolio`, `reimagine`, `uplift`) run as scripted multi-agent orchestrations that fan out more agents for deeper coverage — looping until findings stabilize, and adversarially verifying each finding before it's written. `uplift`'s migration fan-out runs in dependency-aware escalating batches behind a per-batch **circuit breaker**, so a playbook that stops working is caught within a handful of agents and the spend stops until it is revised. They fall back to direct subagent fan-out on older builds automatically; no configuration needed. Invoking the slash command is the opt-in. +On Claude Code builds with the Workflow tool, five commands (`extract-rules`, `harden`, `assess --portfolio`, `reimagine`, `uplift`) run as scripted multi-agent orchestrations that fan out more agents for deeper coverage — looping until findings stabilize, and adversarially verifying each finding before it's written. `uplift`'s migration fan-out runs in dependency-aware escalating batches behind a per-batch **circuit breaker**, so a playbook that stops working is caught within a handful of agents and the spend stops until it is revised. A stopped or failed `extract-rules` (or `assess --portfolio`) run is **resumable** in the same session: the command re-runs the workflow with the run's ID, and every agent that finished before the stop replays from the run's journal instead of running again. Shards whose agents failed outright are reported and re-run on their own in a follow-up run. They fall back to direct subagent fan-out on older builds automatically; no configuration needed. Invoking the slash command is the opt-in. ## License |
