Skip to content

fix: 'create agent' command to show template, bolt framework, and agent framework options - #479

Merged
mwbrooks merged 7 commits into
mainfrom
zimeg-fix-create-inputs
Apr 9, 2026
Merged

fix: 'create agent' command to show template, bolt framework, and agent framework options#479
mwbrooks merged 7 commits into
mainfrom
zimeg-fix-create-inputs

Conversation

@zimeg

@zimegzimeg commented Apr 9, 2026

Copy link
Copy Markdown
Member

Changelog

Fix create agent command to show prompts for the app template, Bolt Framework, and then Agent Framework. This adds more templates to options, including Bolt for JavaScript & Bolt for Python implementations of the Starter Agent and Support Agent templates.

Summary

This PR fixes the slack create agent command prompts with separate inputs for more framework and agent adapter options. This includes the following templates now:

Getting started

  • slack-samples/bolt-js-starter-template
  • slack-samples/bolt-python-starter-template

Starter agent

  • slack-samples/bolt-js-starter-agent --subdir claude-agent-sdk
  • slack-samples/bolt-js-starter-agent --subdir openai-agents-sdk
  • slack-samples/bolt-python-starter-agent --subdir claude-agent-sdk
  • slack-samples/bolt-python-starter-agent --subdir openai-agents-sdk
  • slack-samples/bolt-python-starter-agent --subdir pydantic-ai

Support agent

  • slack-samples/bolt-js-support-agent --subdir claude-agent-sdk
  • slack-samples/bolt-js-support-agent --subdir openai-agents-sdk
  • slack-samples/bolt-python-support-agent --subdir claude-agent-sdk
  • slack-samples/bolt-python-support-agent --subdir openai-agents-sdk
  • slack-samples/bolt-python-support-agent --subdir pydantic-ai

Automation apps

  • slack-samples/bolt-js-custom-function-template
  • slack-samples/bolt-python-custom-function-template
  • slack-samples/deno-starter-template

Preview

demo.mov

Reviewers

Confirm the expected options appear with the following commands:

$ slack create
$ slack create agent

Requirements

@zimegzimeg added this to the Next Release milestone Apr 9, 2026
@zimeg
zimeg requested a review from mwbrooksApril 9, 2026 02:05
@zimegzimeg self-assigned this Apr 9, 2026
@zimeg
zimeg requested a review from a team as a code ownerApril 9, 2026 02:05
@zimegzimeg added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented changelog Use on updates to be included in the release notes semver:patch Use on pull requests to describe the release version increment area:bolt-js Related to github.com/slackapi/bolt-js labels Apr 9, 2026
@codecov

codecovBot commented Apr 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.50515% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.23%. Comparing base (14a0694) to head (897d858).
⚠️ Report is 3 commits behind head on main.

Files with missing linesPatch %Lines
cmd/project/create_template.go83.50%11 Missing and 5 partials ⚠️
Additional details and impacted files
@@ Coverage Diff @@## main #479 +/- ##
==========================================
+ Coverage 71.19% 71.23% +0.04% 
==========================================
Files 222 222 Lines 18595 18664 +69 ==========================================
+ Hits 13238 13295 +57 - Misses 4178 4189 +11 - Partials 1179 1180 +1 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mwbrooksmwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🙌🏻 Thanks so much for putting this pull request together @zimeg! 🙇🏻

📝 I've left some early feedback and questions that we'll want to work through. Let me know what you think!

Comment threadcmd/project/create_template.go
Comment threadcmd/project/create_template.go Outdated
"slack-cli#ai-apps/support-agent": {
{
Title: fmt.Sprintf("Claude Agent SDK %s", style.Secondary("Bolt for Python")),
Title: fmt.Sprintf("Bolt for JavaScript %s", style.Secondary("Node.js")),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

question: We originally brainstormed having the Secondary display the breadcrumb of the previous selection. I'm just curious why you decided to not include that?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

@mwbrooks Forgive this was omitted until comments below and e82f2a9! 🙏 ✨

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@zimeg Thanks, this is much better! 🙇🏻

Comment threadcmd/project/create_template.go Outdated
adapterPromptObjects := map[string][]promptObject{
"slack-cli#ai-apps/support-agent/bolt-js": {
{
Title: "Claude Agent SDK",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

question: Why don't these have any Secondary text? To me, it feels a little off that these offer no hints or additional descriptions.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

@mwbrooks I hesitated on the right wording but found that a reminder of past selections might be useful to @srtaalej points with e82f2a9?

create

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@zimeg This is looking better! I might have a few suggestions around wording but I'll keep looking on the PR first! 🔍

Comment threadcmd/project/create_template.go Outdated

@srtaalejsrtaalej 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.

thank you for making these changes 💟 !
this is working great but i think language/ ui improvements can be made 🤔
my main concern is that after the template is selected the flow is the exact same - there arent any indicators of what selection was made. it'd be nice to use Secondarys for that,,, or perhaps we look into charm features for this?

Comment threadcmd/project/create_template.go Outdated

@mwbrooksmwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@zimeg Thanks for the quick iterations! 🧭

The prompts are looking a lot better.

❓ Question: Do have the ability to customize the Bolt Framework prompt? Right now, the secondary doesn't show the breadcrumb from choosing the Starter Agent and Support Agent (see screenshot). If we don't have the ability because we're reusing the prompt for all templates then that's okay.

Image

@zimeg

zimeg commented Apr 9, 2026

Copy link
Copy Markdown
MemberAuthor

@mwbrooks Let's check out 897d858 for possible changes? I updated the demo video in description with the latest 📸

Edit: This was kept consistent to avoid confusion between other create prompts but I understand the agent experience is unique enough to not stress about this right now.

@mwbrooksmwbrooks changed the title fix: separate inputs for more framework and agent adapter optionsfix: 'create agent' command to show template, bolt framework, and agent framework optionsApr 9, 2026

@mwbrooksmwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

✅ Woohoo! This is looking very good! Love the recent update and now the breadcrumbs are consistent throughout the create agent prompt journey.

@mwbrooks
mwbrooks merged commit 3ecb295 into mainApr 9, 2026
8 checks passed
@mwbrooks
mwbrooks deleted the zimeg-fix-create-inputs branch April 9, 2026 22:19
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bolt-jsRelated to github.com/slackapi/bolt-jsbugM-T: confirmed bug report. Issues are confirmed when the reproduction steps are documentedchangelogUse on updates to be included in the release notessemver:patchUse on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@zimeg@mwbrooks@srtaalej