adding automatically start the agent when launch the shell