Skip to content

feat: seed default agents when creating a new company#331

Open
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/seed-agents-on-company-create
Open

feat: seed default agents when creating a new company#331
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/seed-agents-on-company-create

Conversation

@nap-liu
Copy link
Copy Markdown

@nap-liu nap-liu commented Apr 8, 2026

Summary

  • New seed_default_agents_for_tenant(db, tenant_id, creator_id) function
  • Creates Morty + Meeseeks with full config: permissions, workspace, skills, tools, relationships
  • Called from both self-create and admin create endpoints
  • Uses caller's db session (no separate commit)

Test plan

  • Create company → verified Morty + Meeseeks agents auto-created

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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