When developing an application that runs in the terminal like a cli or a script, we need to know if the codespace is running in the browser in vs code connected to a codespace or in a dev container.
One possible solution would be to set an environment variable, something like CODESPACES_HOST and set that to either browser, vs code, code spaces or vs code dev container.