summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts/render_rules.py
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-23 19:03:15 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-24 17:49:55 -0700
commit2ce9d0dace1239bec65379ecd3834258574c9073 (patch)
treee5a42363810c752753e1e3a21b8c009d918673ad /plugins/code-modernization/scripts/render_rules.py
parent7c4583e465e15becca5568aeaa1c0c733e4dd88c (diff)
code-modernization: describe each node on the topology map
After topology.json is built, map now writes one paragraph (55 to 90 words) per node into a description field: what the node does in business terms, then what it calls, reads, writes or is called by. Each writer gets only that node's source excerpt, header comment and connections from the map, is told every name and number must come from that data, and says so in one sentence when the data is thin. The session checks the paragraphs against those packets before merging them, and writers never write files. Writers run in parallel batches of about 8, and --no-describe skips the step. The viewer's sidebar shows the description under the size and language line with a muted caption, inserted as text rather than markup because it is derived from analyzed source. Nodes without a description, and topology.json files written before this change, render exactly as before.
Diffstat (limited to 'plugins/code-modernization/scripts/render_rules.py')
0 files changed, 0 insertions, 0 deletions