def human_step_in(self) -> None:
        """Replace the current model with a HumanModel instance.
        This allows for human intervention during agent execution.
        """
        self._original_model = self.model
        self._original_parser = self.tools.config.parse_function

        human_config = HumanModelConfig(name="human", catch_eof=False)
        self.model = get_model(human_config, self.tools.config)
        self.tools.config.parse_function = ActionOnlyParser()

        self.logger.info("Switched to human mode. Agent will now accept human input. Press ^D to switch back.")
Replace the current model with a HumanModel instance.
        This allows for human intervention during agent execution.
        
sweagent/agent/extra/shell_agent.py