Skip to content

feat: --starting-prompt flag to prompt without exit - #864

Closed
stebbins wants to merge 8 commits into
MoonshotAI:mainfrom
stebbins:main
Closed

feat: --starting-prompt flag to prompt without exit#864
stebbins wants to merge 8 commits into
MoonshotAI:mainfrom
stebbins:main

Conversation

@stebbins

@stebbins stebbins commented Feb 2, 2026

Copy link
Copy Markdown

Related Issue

Description

  • Add a new flag: --starting-prompt / -s
  • This is very similar to the existing -p / -c flags!
  • However, there is an important difference: Kimi Code CLI does not exit the session after processing the prompt
  • Functionally, this gives equivalent behavior as Claude Code when passing a prompt via CLI arg
  • This unlocks the capability of higher-level processes to more easily "orchestrate" Kimi Code CLI sessions without building away from the design philosophy of the project (from my understanding, at least)
  • Note: the diff appears very large but this is mainly due to make gen-docs gen-changelog -- the actual functional change is under 100 lines

Screenshots

Using -s

image

Using -c/-p

image

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue, if any.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have run make gen-changelog to update the changelog.
  • I have run make gen-docs to update the user documentation.

Open with Devin

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View issue and 3 additional flags in Devin Review.

Open in Devin Review

Comment thread src/kimi_cli/cli/__init__.py

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View issue and 4 additional flags in Devin Review.

Open in Devin Review

Comment thread src/kimi_cli/ui/shell/__init__.py
@stebbins stebbins closed this Feb 5, 2026
```

## Config items
## Configuration items

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what the fuck

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdym what the fuck

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i mean what the fuck do you want from me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--starting-prompt flag to start the session with a prompt without exiting

2 participants