Support interactive TUI invocation for existing AgentCore Harnesses by ARN
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- aws, typescript
- Lĩnh vực
- cli
Hướng nghiên cứu
Payload không nêu tên tệp triển khai hoặc các bài kiểm thử. Hãy bắt đầu từ điểm vào agentcore invoke và nhánh --harness-arn hiện có, sau đó lần theo luồng streaming của InvokeHarness. Hoàn tất có nghĩa là các Harnesses được quản lý bên ngoài có thể mở một cuộc trò chuyện tương tác, sử dụng lại hoặc tiếp tục một session, hiển thị đầu ra streaming và báo cáo session ID khi thoát.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
AgentCore CLI should support opening the existing interactive chat/TUI experience against an already-deployed AgentCore Harness that was created outside the current AgentCore CLI project, such as a Harness created through the AWS Console, Terraform, CloudFormation, or the AgentCore control-plane API.
Today an externally managed Harness can be invoked with:
agentcore invoke \
--harness-arn arn:aws:bedrock-agentcore:us-west-2:123456789012:harness/example \
--region us-west-2 \
--session-id <session-id> \
"prompt"
However, --harness-arn is treated as a non-interactive option. Omitting the prompt results in:
No prompt provided. Usage: agentcore invoke --harness-arn <arn> --region <region> "your prompt"
This means users of externally managed Harnesses cannot use the CLI's interactive chat/TUI experience and instead have to repeatedly invoke the Harness with individual prompts or build their own frontend.
It would be useful to support something along the lines of:
agentcore invoke \
--harness-arn <arn> \
--region us-west-2 \
--interactive
or, if no prompt is supplied and stdin is a TTY, automatically enter interactive mode:
agentcore invoke \
--harness-arn <arn> \
--region us-west-2
The interactive session should reuse a single runtimeSessionId for the duration of the session and allow an explicitly supplied --session-id so an existing Harness session can be resumed.
This would make the AgentCore CLI useful as a general client for managed Harnesses without requiring the Harness infrastructure to be owned or deployed by an AgentCore CLI/CDK project.
This is especially valuable for organizations that manage AgentCore infrastructure centrally with Terraform or CloudFormation while individual developers authenticate using their own AWS credentials.
Acceptance Criteria
-
agentcore invokecan enter an interactive terminal chat experience when targeting a Harness with--harness-arn. -
The feature works without requiring an AgentCore CLI project or
agentcore deploy. -
The Harness may have been created by the AWS Console, Terraform, CloudFormation, or API.
-
An existing session can be resumed with:
agentcore invoke \ --harness-arn <arn> \ --region <region> \ --session-id <existing-session-id> \ --interactive -
Streaming assistant output is rendered interactively.
-
Exiting the TUI reports the session ID so the user can reconnect later.
Additional Context
A common deployment model is:
Terraform / CloudFormation / AWS Console
|
v
AgentCore Harness
^
|
InvokeHarness API
|
v
Developer CLI
In this model, the developer may have permission to invoke the Harness but intentionally does not have permission to deploy or modify it.
The existing CLI can already invoke such a Harness non-interactively:
agentcore invoke \
--harness-arn <arn> \
--region <region> \
--session-id <session-id> \
"prompt"
and --verbose exposes structured Harness streaming events such as toolUse and toolResult. The missing piece is an interactive frontend over the same invocation mechanism.
This would avoid teams having to build custom Harness clients solely to obtain a persistent terminal conversation and visibility into agent tool execution.
It would also make infrastructure ownership independent from developer UX: platform teams could manage Harnesses through their preferred IaC tooling while developers still get the native AgentCore interactive experience.
- Ngôn ngữ chính
- TypeScript
- Star
- 291
- Fork
- 96
- Merge trung bình
- 20 giờ 50 phút
- Pull request đã merge (30 ngày)
- 214
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws/agentcore-cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
aws/agentcore-cli#2395 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
aws/agentcore-cli#2392 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
aws/agentcore-cli#2267 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws/agentcore-cli#2258 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws/agentcore-cli#2176 ·
Tất cả issue của aws/agentcore-cli
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
motiondivision/motion#3849 ·
-
Add: S Play Event HD Đang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Improvement for contact popover Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
LiteLLM proxy response_cost (x-litellm-response-cost) is never applied to ChatModelOutput.cost Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
i-am-bee/beeai-framework#1697 · 1 reaction ·
-
Support bun dedupe Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
antfu/node-modules-inspector#214 ·