Skip to content

feat(cli): rebuild the TUI around AgentInstances - #2605

Merged
EItanya merged 5 commits into
kagent-dev:mainfrom
codyhartsook:api-v2-cli-pr2
Aug 29, 2026
Merged

feat(cli): rebuild the TUI around AgentInstances#2605
EItanya merged 5 commits into
kagent-dev:mainfrom
codyhartsook:api-v2-cli-pr2

Conversation

@codyhartsook

@codyhartsook codyhartsook commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Rebuilds the TUI around API v2 AgentTemplate and AgentInstance discovery
  • Loads persisted task history and continues chat through the same upstream A2A path as invoke
  • Adds AgentInstance browsing, selection, and conversation panels
  • Hardens streaming cancellation and workspace interaction behavior
tui-recording-pr.mp4

This is the second of three related CLI PRs and builds on #2559.

Related to #2366 and the K13 CLI cutover in docs/plans/api-v2-execution-plan.md.

Test plan

  • make -C go test
  • go test ./core/cli/...
  • make -C go lint
  • make -C go build
  • AgentInstance TUI smoke test against a local installation

@codyhartsook
codyhartsook requested a review from a team as a code owner August 27, 2026 20:45
@github-actions github-actions Bot added the enhancement New feature or request label Aug 27, 2026
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Aug 27, 2026
EItanya added a commit that referenced this pull request Aug 29, 2026
## Summary

- Adds API v2 CLI commands for AgentTemplate discovery and AgentInstance
lifecycle and invocation
- Adds typed AgentInstance and upstream A2A clients over the shared gRPC
connection
- Connects through configured gRPC or a temporary controller
port-forward, with optional TLS
- Removes the legacy client-side agent project workflow while retaining
`mcp`

Note that of the 64 files changed, 35 were removals from the legacy CLI
project workflow ; no server-side APIs or controllers are removed.

This is the first of three related CLI PRs:

1. [#2559](#2559) : API v2 CLI
foundation: template/instance discovery, create/delete,
invoke/streaming, JSON output, and quarantining legacy commands.
2. [#2605](#2605) : TUI: browse
AgentInstances, load history, and chat through the same A2A path as
invoke.
3. [#2606](#2606) : Cleanup:
simplify `main.go` and align the command structure with agentregistry.

Suspend and resume are deliberately not exposed by this CLI work.

Related to #2366 and the K13 CLI cutover in
`docs/plans/api-v2-execution-plan.md`.

## Test plan

- [x] `make -C go test`
- [x] `go test ./core/cli/...`
- [x] `make -C go lint`
- [x] `make -C go build`
- [x] AgentTemplate and AgentInstance CLI smoke test against a local
installation

---------

Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Co-authored-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
Signed-off-by: Cody Hartsook <cody.hartsook@solo.io>
@EItanya
EItanya merged commit 648959e into kagent-dev:main Aug 29, 2026
41 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants