INNER CODE UNIT · Python

_load_config

Dicklesworthstone/claude_code_agent_farm · claude_code_agent_farm.py:710

    def _load_config(self, config_path: str) -> None:
        """Load settings from JSON config file"""
        config_file = Path(config_path)
        if config_file.exists():
            with config_file.open() as f:
                config_data = json.load(f)
                # Accept all config values, not just existing attributes
                for key, value in config_data.items():
                    setattr(self, key, value)

    def _signal_handler(self, sig: Any, frame: Any) -> None:
        """Handle shutdown signals gracefully with force-kill on double tap"""
        current_time = time.time()
        
        # Check if this is a SIGINT (Ctrl-C)
        if sig == signal.SIGINT:
            # Check for double tap
            if self._last_sigint_time and (current_time - self._last_sigint_time) < self._force_kill_threshold:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…