When it launches command in a blocking shell, just press something like ctrl+b and this sends the shell to the background and you can continue to use the agent..