I am not sure if @HiGreg is still working on KiCommand, but he was doing pretty cool stuff for adding curves and text in a programmatical way: