With the newer agent terminal integration, which I think first landed in 1.6 and was finally stabilized in 1.7.35 or something like that, the terminal instances no longer seem to apply the user’s default shell profile or resource file. This means that none of the user’s standard shell config is available within the agent terminals.
There are numerous consequences of this, but one of the most notable is things like shell integration and tool integration setup and activation scripts. Say Mise which we use for all of our projects. If I need to have the agent do anything in the terminal, that relies on mise, I have to have each and every chat set mise up, install, etc. Further, it seems like the new terminal integration frequently “churns” terminal instances…so when I have the agent doing terminal work that relies on these kinds of shell tools, they frequently stop working, because in teh background, transparent to the developer, the old terminal instance was just left behind, and a new terminal instance was created.
Is there a way to configure a terminal shell profile or resource file that the agent terminal instances will use? There are certain standard tools, scripts, clis, etc. that I really need our agent terminal instances to be able to use. Currently I’ve been resorting to creating custom commands, which set up each of these various things. However I have to run them frequently, they burn up tokens re-setting up STANDARD shell config that every single shell instance should have anyway, and its a rather tedious and frustrating experience in any case having to have the agent constantly re-run things that it shouldn’t have to worry about.
If there is no current way to set up a profile or resource file for the agent terminal…we could really use one. To simplify our lives, standardize the agentic terminal experience for each developer, and reduce token waste.



