Feature hasn't been suggested before.
Describe the enhancement you want to request
Issue: agents never pick up on the bash environment and do as such cannot reproduce the same errors (or successes) as the user.
Fix: Add a config setting to pass specific environment variables on to all bash commands run by agents, or better yet add a config to pass a specific bashrc (via bash --init-file) for the agent to use.