Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`add agent --type byo` requires `--framework`, but the BYO path never uses it

オープン 初心者向け
#2,076 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@rksharma-owg がすでに取り組んでいます。

2026年9月28日 から。

  • #2422 @rksharma-owg による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
cli

調査の方向性

まず docs/commands.md の BYO の例を再現し、次に src/cli/commands/add/validate.ts の非対話型バリデーションと、src/cli/primitives/AgentPrimitive.tsx のエントリーポイント handleByoPath を読みます。BYO コマンドが --framework なしで成功し、framework の値によって登録済みエージェントが変更されなければ完了です。--model-provider の独立した動作は維持または明確化してください。

索引モデルが issue の本文から書いたものです。

説明

bug
Description

Non-interactive agentcore add agent --type byo rejects the invocation with --framework is required (and then --model-provider is required), but the BYO path never consumes the framework value: it is not written to agentcore.json, not used for packaging, and has no effect on the deployed runtime. Any value satisfies the check, so users are forced to pick a framework that is meaningless for bring-your-own code. The BYO example in docs/commands.md — which omits --framework, reasonably — fails as written because of this.

Steps to Reproduce
  1. Create a project:
    agentcore create --name ByoRepro --no-agent
    cd ByoRepro
    
  2. Run the BYO example from docs/commands.md:
    agentcore add agent --name MyAgent --type byo --code-location ./my-agent --entrypoint main.py --language Python
    
  3. Observe --framework is required. Add any --framework value and observe the registered agent is identical regardless of which framework was given.
Expected Behavior

The BYO path accepts the invocation without --framework, as shown in the docs example. A flag that is required should influence the result; one that cannot is not asked for.

Actual Behavior

Validation fails with --framework is required (and --model-provider is required once a framework is supplied). Supplying e.g. --framework Strands vs --framework LangChain_LangGraph produces byte-identical agentcore.json entries.

CLI Version

0.27.1

Operating System

Linux

Additional Context

Cause: the non-interactive validation in src/cli/commands/add/validate.ts applies its "Non-MCP protocols: validate framework" block to the BYO path as well, while handleByoPath in src/cli/primitives/AgentPrimitive.tsx never reads options.framework. --model-provider has a marginal BYO use (non-Bedrock values set up an API-key credential), so it may deserve a default rather than removal — maintainer's call.

Related: #2075 (BYO ignores --language TypeScript) — independent defect, same code path.

主要言語
TypeScript
スター
302
フォーク
103
平均マージ
20時間 56分
マージ済み PR(30日)
192

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/agentcore-cli のほかの issue

aws/agentcore-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。