POC: Add Agent Creation and Editing Forms to Project Pages
Summary
Implement agent creation and editing forms directly within project pages to enable seamless integration with Duo Chat and improve the test run functionality.
Problem Statement
Currently, the "test run" feature from the explore catalog doesn't fully work as expected. The main limitation is that Duo Chat is not available on Explore pages - it's only accessible within Project pages. This creates a disjointed user experience when users want to test agents and prevents proper tools approval workflow.
Proposed Solution
Add "create" and "edit" agent forms directly to the project pages with the following workflow:
User Flow
- User navigates to a project
- Goes to Automate > Agents
- Clicks the "Add Agent" button
- Form renders without project selector (project context is already known)
- On submission, system makes two concurrent requests:
- Create the agent
- Add it as an item consumer to the project
- User can immediately start test run from there
- Test run integrates seamlessly with Duo Chat
- Tools approval workflow functions properly
Implementation Details
Phase 1: POC Implementation
-
Implement agent creation form in project context -
Implement agent editing form in project context -
Remove project selector from forms when in project context -
Implement dual request logic (create agent + add as consumer) -
Integrate test run trigger with Duo Chat -
Ensure tools approval workflow is functional
Acceptance Criteria
-
Agent creation form is accessible from project's Automate > Agents page -
Form automatically uses current project context (no project selector needed) -
Creating an agent simultaneously adds it as project item consumer -
No regression on existing explore page functionality
Follow Up
-
Change edit and duplicate actions in explore page to redirect users to product pages -
Test the Duo Chat integration
Out of Scope
- Changes to the Explore Page (this is a POC focused on project pages only)
- Migration of existing agents
- Flows
Notes
This is initially being implemented as a Proof of Concept to validate the approach before making broader changes to the explore catalog experience.
Edited by 🤖 GitLab Bot 🤖