This looks like a cool project, although I personally prefer separate tmux sessions for each project.
Also, am I missing something, or does this really execute the last command for each pane/window which had a process other than shell running? I can imagine a few potentially dangerous situations if this is how it works.