summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/CHANGELOG.md
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-12-01 09:19:25 +0000
committerClaude <noreply@anthropic.com>2026-12-01 09:19:25 +0000
commit6f410661a18fefb6768fe37f5f6ffc599204eb10 (patch)
tree584170c8d2106dedbc66c98bc658f23de82277ad /plugins/code-modernization/CHANGELOG.md
parent761a93d46638340c9df6a73b46aa3c9826a2213d (diff)
code-modernization: choose rule-extraction depth and approve a number of agentscode-modernization-1.2.0
Add --depth standard|thorough. Standard, the default, keeps the previous extraction wording; Thorough writes one rule per decision and costs more. Every run shows the estimate for both and never starts more agents than were approved. Spread batches over the system and size them by the densest shards seen, so dense code that comes late is not extracted and left unrefereed. Keep same-named rules whose citations a referee swaps or moves. Merge follow-up runs with a script that never drops a confirmed rule because a re-run failed.
Diffstat (limited to 'plugins/code-modernization/CHANGELOG.md')
-rw-r--r--plugins/code-modernization/CHANGELOG.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/code-modernization/CHANGELOG.md b/plugins/code-modernization/CHANGELOG.md
index 8ed79f2b..5a1bde85 100644
--- a/plugins/code-modernization/CHANGELOG.md
+++ b/plugins/code-modernization/CHANGELOG.md
@@ -4,9 +4,11 @@ Each release gets a new number in `.claude-plugin/plugin.json`; Claude Code only
## 1.2.0
-- **Rule extraction has no target count.** Extractors were told to aim for one rule per 40 to 80 lines, so dense code such as stored procedures came back as a few rules that each held many decisions. The number of rules now follows the business logic: separate decisions get separate rules, and every threshold and outcome must appear in one. Plumbing is still skipped. Dense code yields more rules and so uses more agents; the estimate and the question before a large run account for that.
-- **Smaller shards for rule extraction.** An extractor given thousands of lines of dense logic leaves thresholds and whole checks out of its answer. Shards built from the directory tree now hold about 1,000 lines instead of 5,000, and a file longer than 1,500 lines is cut into line ranges, one extractor each. Large systems get more shards, so more agents, and some need several runs.
-- **Fewer rules and files dropped without notice.** Two rules in one file are duplicates only when their names match and their lines overlap; names in non-Latin scripts and names that differ by a sign such as `<` or `≥` no longer collide. The shard builder reads more database file types (`.prc`, `.pls`, `.trg`, `.fnc`, `.pc` and others) and UTF-16 files, calls a system tiny only when it also has at most 1,000 lines, and reports unrecognized extensions, unreadable files and source files the map leaves out (`--unmapped` shards them too). Edge cases are cut at 1,000 characters instead of 200.
+- **Choose how deep rule extraction goes.** `--depth standard`, the default, keeps the wording extractors had before: about one rule per 40 to 80 lines, so on dense code such as stored procedures a rule holds several decisions. `--depth thorough` has no target: separate decisions get separate rules, and every threshold and outcome must appear in one. Without the flag the command asks, and shows the estimated agents and tokens of both; a headless run is Standard unless you pass the flag. **Cost:** each rule gets a referee, so on very dense code an estimated 430 to 540 agents per 10,000 lines at Standard (220 to 390 before this version, because shards are smaller) and 680 to 1,900 at Thorough.
+- **A limit on agents.** A run never starts more agents than the number you approved. What does not fit is listed, and a follow-up asks for a new number.
+- **Smaller shards for rule extraction.** An extractor given thousands of lines of dense logic leaves thresholds and whole checks out of its answer. Shards built from the directory tree now hold about 1,000 lines instead of 5,000, and a file longer than 1,500 lines is cut into line ranges, one extractor each. Large systems get more shards, so more agents at either depth, and some need several runs. Every batch is spread over the system and sized by the densest shards seen, so shards that do not fit are left for a follow-up instead of being extracted and not refereed.
+- **Fewer rules and files dropped without notice.** Two rules in one file are duplicates only when their names match and their lines overlap; names in non-Latin scripts and names that differ by a sign such as `<` or `≥` no longer collide. The shard builder reads more database file types (`.prc`, `.pls`, `.trg`, `.fnc`, `.pc` and others) and UTF-16 files, calls a system tiny only when it also has at most 1,000 lines, and reports unrecognized extensions, unreadable files and source files the map leaves out (`--unmapped` shards them too). Edge cases are cut at 1,000 characters instead of 200. Two same-named rules whose citations a referee swaps or moves onto each other no longer erase one another.
+- **Follow-up runs are merged by a script** (`merge_rules.py`). A shard that was extracted and judged in full replaces its saved rules; one whose re-run failed, stopped at the limit or found fewer rules keeps them.
## 1.1.0