Some years back, @russharmer developed a framework (or the proposal for one) that would allow one to modify a kappa program according to some rules of agent transformation. At the time, it was called "meta-kappa". Crucially, it would alter also the ruleset. For example, if the agent transformation called for site duplication, then all rules concerned with the old site would generate a modified copy for the new site. This tool could also be used for renaming sites and/or agents painlessly (when some agents share name with sites, the regexp has to include a lot of parenthesis and dots to distinguish agents from sites).
It would be useful for the Kappa IDE / Javascript simulator to incorporate such advanced kappa-centric refactoring tools.