claude-code - 💡(How to fix) Fix [Feature] Start session without sending an initial prompt

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Problem

Currently, when launching the Claude Code CLI, a session is not actually initialized until the user sends a first message (a question, a command, or any token). This means that even a trivial "hi" / "ping" must be sent just to "warm up" the session, which:

  • consumes tokens unnecessarily,
  • adds a meaningless turn to the conversation history,
  • feels wasteful when the user only wants the session ready for later input (e.g. opening the CLI in advance, scripting, automation).

Proposed solution

Add one (or both) of the following options:

  1. Auto-start session on CLI launch — an opt-in setting (e.g. "autoStartSession": true in settings.json, or a CLI flag --auto-start) that initializes the session immediately when claude is opened, without requiring an initial user message.

  2. /start slash command — an explicit, user-triggered command that initializes the session on demand, with no prompt content sent to the model.

Benefits

  • No wasted tokens on placeholder messages.
  • Cleaner conversation history (no dummy first turn).
  • Better ergonomics for users who launch the CLI ahead of time or in automated workflows.

Environment

  • Claude Code CLI
  • Any platform (Windows / macOS / Linux)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING