Skip to content

CMP-1 Add durable custom agent builder - #25

Draft
ripgrim wants to merge 8 commits into
trycompai:mainfrom
ripgrim:rg/agent-builder
Draft

CMP-1 Add durable custom agent builder#25
ripgrim wants to merge 8 commits into
trycompai:mainfrom
ripgrim:rg/agent-builder

Conversation

@ripgrim

@ripgrim ripgrim commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds an agent-first workspace where reps privately collaborate with Eve to design, review, deploy, and monitor durable team automations.

  • Keeps builder chats private while deployed agents and their run history are team-visible
  • Uses the existing Eve stack, Vercel AI Gateway, and isolated agent sandboxes
  • Integrates with the organization-aware /:org-slug app routing now on upstream main
  • Includes the project-local AI and interface skill pack used to guide continued implementation

Problem

The CRM already supports record-specific research agents, but it has no general workspace for turning plain-language requests into reusable team automations. There is also no durable model for agent versions, access, triggers, runs, actions, approvals, private builder conversations, or auditable deployment.

UX Flow

/:org-slug/agents
├─ Start or resume a private background chat
├─ Ask about CRM records and connected integrations
└─ /Create agent
   ├─ Eve gathers context and drafts the automation
   ├─ User reviews scope, access, and behavior
   └─ Deploy to the team
      ├─ Run manually or from a trigger
      ├─ Inspect every run and external action
      ├─ Pause or resume the agent
      └─ Delete an agent with explicit confirmation

Mobile navigation
└─ Open one drawer with the CRM rail and agent chat history side by side

Solution

Introduces persistent builder conversations with unread state, sharing, command routing, and background continuation. Adds team agent, version, access, trigger, run, event, action, approval, and audit models with tRPC services for lifecycle management and immutable activity history.

The Eve service separates research, builder, and runner session purposes; delegates creation and execution to dedicated subagents; constrains sandbox and tool access; and records run outcomes and external actions. The Next.js app adds the responsive Agents workspace, recency-grouped private chat navigation, creation/review/deploy surfaces, team run/activity detail views, agent deletion, and consistent async feedback while preserving the CRM design system.

The branch is merged with current upstream organization routing. Agent landing, private chats, shared links, team-agent detail, redirects, and both desktop/mobile navigation all generate organization-scoped URLs through the shared workspace URL helpers.

Validated with the full monorepo lint, typecheck, and test suites, a frozen-lockfile install, and a production Next.js build covering every /:org-slug agent and CRM route.

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

@ripgrim is attempting to deploy a commit to the Comp AI - PoC Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crm-agent Ready Ready Preview Aug 4, 2026 6:15pm
crm-api Ready Ready Preview Aug 4, 2026 6:15pm
crm-app Ready Ready Preview Aug 4, 2026 6:15pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant