Skip to content

feat: add copilot kit frontend option for agui protocol#1240

Closed
avi-alpert wants to merge 3 commits into
aws:mainfrom
avi-alpert:aalpert/copilot
Closed

feat: add copilot kit frontend option for agui protocol#1240
avi-alpert wants to merge 3 commits into
aws:mainfrom
avi-alpert:aalpert/copilot

Conversation

@avi-alpert

@avi-alpert avi-alpert commented May 13, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a CopilotKit frontend scaffolding option for agents using the AG-UI protocol. When users create an AGUI agent with --frontend copilotkit (or select it in the TUI wizard), a React chat UI is scaffolded alongside the agent that connects via the AG-UI streaming protocol.

This is supported for all AG-UI compatible frameworks:

  • Strands
  • LangChain / LangGraph
  • Google ADK

TUI experience: During the interactive create/add-agent wizard, after selecting the AG-UI protocol, users are presented with a "Frontend" step asking them to choose between:

  • Yes — CopilotKit — Chat UI with AG-UI streaming
  • No — No frontend scaffolded

The scaffolded frontend includes:

  • A Vite + React app with CopilotKit's chat component
  • A bridge server (Hono + @copilotkit/runtime) that translates between CopilotKit and the AG-UI agent endpoint
  • npm run dev runs both the bridge and UI concurrently

CLI usage:

agentcore create --name MyAgent --protocol AGUI --framework Strands --frontend copilotkit

Then:

agentcore dev --logs        # Terminal 1: start agent on :8080
cd app/MyAgent/frontend
npm install && npm run dev  # Terminal 2: UI on :3000, bridge on :3001

Related Issue

Closes #900

Type of Change

  • New feature

Testing

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

@github-actions github-actions Bot added the size/l PR size: L label May 13, 2026
@github-actions github-actions Bot added the agentcore-harness-reviewing AgentCore Harness review in progress label May 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.13.1.tgz

How to install

npm install https://github.com/aws/agentcore-cli/releases/download/pr-1240-tarball/aws-agentcore-0.13.1.tgz

@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label May 13, 2026
@github-actions github-actions Bot added size/l PR size: L and removed size/l PR size: L labels May 13, 2026
@github-actions github-actions Bot added size/l PR size: L and removed size/l PR size: L labels May 13, 2026
@avi-alpert avi-alpert marked this pull request as ready for review May 13, 2026 21:36
@avi-alpert avi-alpert requested a review from a team May 13, 2026 21:36
@avi-alpert avi-alpert closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/l PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding CopilotKit/AG-UI to AgentCore CLI

1 participant