Skip to content

Add feature to suggest starting prompts for codegen#847

Draft
codegen-sh[bot] wants to merge 2 commits intodevelopfrom
gen/58b409b5-6345-4e97-a1de-23a3b19889da
Draft

Add feature to suggest starting prompts for codegen#847
codegen-sh[bot] wants to merge 2 commits intodevelopfrom
gen/58b409b5-6345-4e97-a1de-23a3b19889da

Conversation

@codegen-sh
Copy link
Contributor

@codegen-sh codegen-sh bot commented Mar 14, 2025

Description

This PR adds a feature to suggest starting prompts for the codegen CLI agent, making it more user-friendly and helping users discover its capabilities.

Changes

  • Added a list of suggested starting prompts as a constant in the agent command module
  • Enhanced the welcome message to display the top 3 suggested prompts in a visually appealing panel
  • Added a --help-prompts flag to the agent command to show all suggested prompts and exit
  • Implemented a "help" command that users can type at any time to see all suggested prompts
  • Made the help command respond to various forms like "help", "--help", "man", "?", and "examples"

Benefits

  • Makes it easier for new users to get started with codegen
  • Surfaces useful commands that users might not discover on their own
  • Provides a consistent way to access help and examples
  • Improves the overall user experience

Testing

Tested the changes locally to ensure:

  • The welcome message displays correctly with suggested prompts
  • The help command works at any point in the conversation
  • The --help-prompts flag works as expected

Fixes Linear issue: Add feature to suggest starting prompts for codegen

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


codegen-bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


codegen-bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

1 participant