It's already simple to split panes in tmux, but the ability to persist them sounds like a good Hacktoberfest project.

this has already been solved by several plugins. this one works well:

https://github.com/tmux-plugins/tmux-resurrect