Skip to content

Conversation

@fengmk2
Copy link

@fengmk2 fengmk2 commented Nov 13, 2025

Integrate @vercel/detect-agent to improve create-vite experience for AI coding agents. When an AI agent is detected in interactive mode, display a concise tip showing how to use non-interactive mode for single-command execution.

This enhancement follows Agent Experience (AX) best practices by providing clear, actionable guidance to AI agents, helping them understand how to scaffold projects without interactive prompts.

fixes #20951

🤖 Generated with Claude Code

Integrate @vercel/detect-agent to improve create-vite experience for AI coding agents. When an AI agent is detected in interactive mode, display a concise tip showing how to use non-interactive mode for single-command execution.

This enhancement follows Agent Experience (AX) best practices by providing clear, actionable guidance to AI agents, helping them understand how to scaffold projects without interactive prompts.

Relate to vitejs#20951

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@sapphi-red sapphi-red added the feat: create-vite create-vite package label Nov 17, 2025
Copy link
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

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

I think this is a good to have for now.

If the agent is meant to be autonomous, I think it should use non-TTY or have the ability to select the prompts. If the agent is not meant to be autonomous and is expected to have human interactions sometimes, I think they should have the ability to select the prompts. Running in non-interactive mode reduces the benefit of the ability of human interaction. So I think we shouldn't be forcing to non-interactive mode on our side when AI is detected.

On the other hand, this PR only adds a message, which may help AIs. The upside of this is that this won't limit what humans do and it's simple. It's difficult to know whether this works better for AIs unless we actually ship this. But I think it's worth trying out.

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

Labels

feat: create-vite create-vite package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Support for enabling non-interactive mode using environment variables

2 participants