{"version":"2.0.35","anchor":"optional-auto-exit-on-idle","canonical_anchor":"optional-auto-exit-on-idle","heading":"Optional Auto-Exit on Idle","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.35\/e\/optional-auto-exit-on-idle","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.35","markdown":"### Optional Auto-Exit on Idle\n\n**What:** Claude Code can now automatically exit after a configured period of inactivity.\n\n**How to use:**\n\n`# Set idle timeout to 60 seconds (60000 milliseconds) export CLAUDE_CODE_EXIT_AFTER_STOP_DELAY=60000 claude # Claude Code will now exit automatically after 60 seconds of no activity` **Details:**\n\n- Disabled by default - only activates when `CLAUDE_CODE_EXIT_AFTER_STOP_DELAY` environment variable is set\n- Value is in milliseconds (e.g., 60000 = 60 seconds)\n- Timer resets whenever Claude Code processes a command\n- Useful for automated testing, CI\/CD pipelines, or managing long-running sessions\n- **Evidence**: `XA9() at line 488655`, exit message at line 488668"}