I'm sure you've seen TangleJS by Bret Victor. Its performance wasn't quite good enough for the way I wanted to use it, but it looks like that level of meta-interactivity is what you're going for.
Here's my favorite demo of the concept, discovered here on HN: http://worrydream.com/#!2/LadderOfAbstraction
And thank you!