As far as I know there is no way to run code in a specific buffer automatically after program start.
But there is the ~/.sonic-pi/init.rb
(this is the path on Linux), which might accomplish what you need. This file will be evaluated after program start, see one possible example here.