Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .claude/rules/constitution.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ Sim is the **AI workspace** where teams build and run AI agents. Not a workflow
| The product | "AI workspace" | "workflow tool", "automation platform", "agent framework" |
| Building | "build agents", "create agents" | "create workflows" (unless describing the workflow module specifically) |
| Visual builder | "workflow builder" or "visual builder" | "canvas", "graph editor" |
| Mothership | "Mothership" (capitalized) | "chat", "AI assistant", "copilot" |
| The agent | "Sim" — you talk to Sim | "Mothership", "copilot", "AI assistant" |
| The chat surface | "Chat" (capitalized, the module) | "Mothership", "copilot" |
| Deployment | "deploy", "ship" | "publish", "activate" |
| Audience | "teams", "builders" | "users", "customers" (in marketing copy) |
| What agents do | "automate real work" | "automate tasks", "automate workflows" |
Expand All @@ -50,7 +51,7 @@ When describing Sim, always lead with the most differentiated claim:

| Module | One-liner |
|--------|-----------|
| **Mothership** | Your AI command center. Build and manage everything in natural language. |
| **Chat** | Your AI command center. Talk to Sim — build and manage everything in natural language. |
| **Workflows** | The visual builder. Connect blocks, models, and integrations into agent logic. |
| **Knowledge Base** | Your agents' memory. Upload docs, sync sources, build vector databases. |
| **Tables** | A database, built in. Store, query, and wire structured data into agent runs. |
Expand All @@ -65,7 +66,8 @@ When describing Sim, always lead with the most differentiated claim:
- Never promise unshipped features
- Never use jargon ("RAG", "vector database", "MCP") without plain-English explanation on public pages
- Avoid "agentic workforce" as a primary term — use "AI agents"
- Never say "Mothership" or "copilot" — the agent is "Sim", the surface is "Chat" (in run logs the trigger reads "Sim agent")

## Vision

Sim becomes the default environment where teams build AI agents — not a tool you visit for one task, but a workspace you live in. Workflows are one module; Mothership is another. The workspace is the constant; the interface adapts.
Sim becomes the default environment where teams build AI agents — not a tool you visit for one task, but a workspace you live in. Workflows are one module; Chat is another. The workspace is the constant; the interface adapts.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
<a href="https://deepwiki.com/simstudioai/sim" target="_blank" rel="noopener noreferrer"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a> <a href="https://cursor.com/link/prompt?text=Help%20me%20set%20up%20Sim%20locally.%20Follow%20these%20steps%3A%0A%0A1.%20First%2C%20verify%20Docker%20is%20installed%20and%20running%3A%0A%20%20%20docker%20--version%0A%20%20%20docker%20info%0A%0A2.%20Clone%20the%20repository%3A%0A%20%20%20git%20clone%20https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim.git%0A%20%20%20cd%20sim%0A%0A3.%20Start%20the%20services%20with%20Docker%20Compose%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20up%20-d%0A%0A4.%20Wait%20for%20all%20containers%20to%20be%20healthy%20(this%20may%20take%201-2%20minutes)%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20ps%0A%0A5.%20Verify%20the%20app%20is%20accessible%20at%20http%3A%2F%2Flocalhost%3A3000%0A%0AIf%20there%20are%20any%20errors%2C%20help%20me%20troubleshoot%20them.%20Common%20issues%3A%0A-%20Port%203000%2C%203002%2C%20or%205432%20already%20in%20use%0A-%20Docker%20not%20running%0A-%20Insufficient%20memory%20(needs%2012GB%2B%20RAM)%0A%0AFor%20local%20AI%20models%20with%20Ollama%2C%20use%20this%20instead%20of%20step%203%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.ollama.yml%20--profile%20setup%20up%20-d"><img src="https://img.shields.io/badge/Set%20Up%20with-Cursor-000000?logo=cursor&logoColor=white" alt="Set Up with Cursor"></a>
</p>

### Build everything in Mothership
Your AI command center. Describe what you want in plain language. Mothership knows your entire workspace and takes action: building agents, running them, querying data, and more.
### Build everything in Chat
Your AI command center. Describe what you want in plain language. Sim knows your entire workspace and takes action: building agents, running them, querying data, and more.

<p align="center">
<img src="apps/sim/public/static/mothership.gif" alt="Mothership building and running an agent from chat" width="800"/>
<img src="apps/sim/public/static/mothership.gif" alt="Sim building and running an agent from chat" width="800"/>
</p>

### Create files and documents
Generate documents, reports, and presentations from a single prompt, grounded in your workspace data.

<p align="center">
<img src="apps/sim/public/static/files.gif" alt="Mothership generating a document from a prompt" width="800"/>
<img src="apps/sim/public/static/files.gif" alt="Sim generating a document from a prompt" width="800"/>
</p>

### Ground agents in your knowledge
Expand All @@ -50,7 +50,7 @@ A database, built in. Store, query, and wire structured data into agent runs.
</p>

### Build visually with Workflows
Prefer a canvas? Design agents block by block in the visual builder, and let Copilot generate blocks, wire variables, and fix errors from natural language.
Prefer a canvas? Design agents block by block in the visual builder, and let Sim generate blocks, wire variables, and fix errors from natural language.

<p align="center">
<img src="apps/sim/public/static/workflow.gif" alt="Workflow builder demo" width="800"/>
Expand Down Expand Up @@ -138,11 +138,11 @@ bun run dev:full # Starts Next.js app and realtime socket server

Or run separately: `bun run dev` (Next.js) and `cd apps/sim && bun run dev:sockets` (realtime).

## Copilot API Keys
## Chat API Keys

Copilot is a Sim-managed service. To use Copilot on a self-hosted instance:
Chat is a Sim-managed service. To use Chat on a self-hosted instance:

- Go to https://sim.ai → Settings → Copilot and generate a Copilot API key
- Go to https://sim.ai → Settings → Chat keys and generate a Chat API key
- Set `COPILOT_API_KEY` environment variable in your self-hosted apps/sim/.env file to that value

## Environment Variables
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/en/integrations/incidentio.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: incidentio
title: incident.io
description: Manage incidents with incident.io
---

Expand Down
6 changes: 3 additions & 3 deletions apps/sim/app/(landing)/components/features/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ interface FeatureTab {

const FEATURE_TABS: FeatureTab[] = [
{
label: 'Mothership',
label: 'Chat',
color: '#FA4EDF',
title: 'Your AI command center',
description:
'Direct your entire AI workforce from one place. Build agents, spin up workflows, query tables, and manage every resource across your workspace — in natural language.',
cta: 'Explore mothership',
cta: 'Explore chat',
segments: [
[0.3, 8],
[0.25, 10],
Expand Down Expand Up @@ -186,7 +186,7 @@ export default function Features() {
Workspace
</Badge>
<p className='sr-only'>
Sim's workspace includes four core features: Mothership, an AI command center for
Sim's workspace includes four core features: Chat, an AI command center for
natural-language control of your entire workspace; Tables, a built-in database for
filtering, sorting, and wiring data directly into workflows; Files, a shared document
store for uploading, creating, and sharing documents, spreadsheets, and media across
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/(landing)/components/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface FooterItem {
}

const PRODUCT_LINKS: FooterItem[] = [
{ label: 'Mothership', href: 'https://docs.sim.ai/mothership', external: true },
{ label: 'Chat', href: 'https://docs.sim.ai/mothership', external: true },
{ label: 'Workflows', href: 'https://docs.sim.ai', external: true },
{ label: 'Knowledge Base', href: 'https://docs.sim.ai/knowledgebase', external: true },
{ label: 'Tables', href: 'https://docs.sim.ai/tables', external: true },
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/(landing)/components/hero/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function Hero() {
Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. Connect
1,000+ integrations and every major LLM, including OpenAI, Anthropic Claude, Google Gemini,
Mistral, and xAI Grok, to create agents that automate real work. Build agents visually with
the workflow builder, conversationally through Mothership, or programmatically with the API.
the workflow builder, conversationally through Chat, or programmatically with the API.
Trusted by over 100,000 builders at startups and Fortune 500 companies. SOC2 compliant.
</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const LandingPreviewHome = memo(function LandingPreviewHome({
<Blimp className='h-[16px] w-[16px]' style={{ color: C.TEXT_ICON }} />
</div>
<span className='text-sm' style={{ color: C.TEXT_BODY }}>
Mothership
Sim
</span>
<ChevronDown
className='h-[7px] w-[9px] transition-transform duration-150'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const EDITOR_BLOCK_ICONS: Record<string, React.ComponentType<{ className?: strin
}

const TABS_WITH_TOOLBAR: { id: PanelTab | 'toolbar'; label: string; disabled?: boolean }[] = [
{ id: 'copilot', label: 'Copilot' },
{ id: 'copilot', label: 'Chat' },
{ id: 'toolbar', label: 'Toolbar', disabled: true },
{ id: 'editor', label: 'Editor' },
]
Expand Down Expand Up @@ -68,10 +68,10 @@ interface LandingPreviewPanelProps {
}

/**
* Workspace panel replica with switchable Copilot / Editor tabs.
* Workspace panel replica with switchable Chat / Editor tabs.
*
* On every workflow switch (`animationKey` change):
* 1. Resets to Copilot tab.
* 1. Resets to Chat tab.
* 2. Waits for blocks + edges to finish animating.
* 3. Slides the tab indicator to Editor and types the agent's prompt.
* 4. Highlights the agent block with the blue ring on the canvas.
Expand Down
8 changes: 4 additions & 4 deletions apps/sim/app/(landing)/components/structured-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default function StructuredData() {
],
featureList: [
'AI workspace for teams',
'Mothership — natural language agent creation',
'Chat — natural language agent creation',
'Visual workflow builder',
'1,000+ integrations',
'LLM orchestration (OpenAI, Anthropic, Google, xAI, Mistral, Perplexity)',
Expand Down Expand Up @@ -191,15 +191,15 @@ export default function StructuredData() {
name: 'What is the best AI agent builder?',
acceptedAnswer: {
'@type': 'Answer',
text: 'Sim is the open-source AI workspace trusted by over 100,000 builders for creating, deploying, and managing AI agents. Build agents visually with the workflow builder, conversationally through Mothership, or programmatically with the API. Sim connects to 1,000+ integrations and all major LLMs (OpenAI, Anthropic, Google, xAI, Mistral), and includes knowledge bases, tables, real-time collaboration, and enterprise governance. Free tier available. SOC2 compliant. Self-hostable.',
text: 'Sim is the open-source AI workspace trusted by over 100,000 builders for creating, deploying, and managing AI agents. Build agents visually with the workflow builder, conversationally through Chat, or programmatically with the API. Sim connects to 1,000+ integrations and all major LLMs (OpenAI, Anthropic, Google, xAI, Mistral), and includes knowledge bases, tables, real-time collaboration, and enterprise governance. Free tier available. SOC2 compliant. Self-hostable.',
},
},
{
'@type': 'Question',
name: 'What is Sim?',
acceptedAnswer: {
'@type': 'Answer',
text: 'Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. Connect 1,000+ integrations and every major LLM to create agents that automate real work — visually, conversationally, or with code. The workspace includes Mothership for natural-language creation, a visual workflow builder, knowledge bases, tables, and full observability. Trusted by over 100,000 builders. SOC2 compliant.',
text: 'Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. Connect 1,000+ integrations and every major LLM to create agents that automate real work — visually, conversationally, or with code. The workspace includes Chat for natural-language creation, a visual workflow builder, knowledge bases, tables, and full observability. Trusted by over 100,000 builders. SOC2 compliant.',
},
},
{
Expand All @@ -223,7 +223,7 @@ export default function StructuredData() {
name: 'Do I need coding skills to use Sim?',
acceptedAnswer: {
'@type': 'Answer',
text: 'No coding skills are required. Sim provides multiple ways to build agents: a visual workflow builder for drag-and-drop creation, Mothership for building in natural language, and templates for common use cases. Developers can also use custom functions, the API, and the CLI/SDK for advanced use cases.',
text: 'No coding skills are required. Sim provides multiple ways to build agents: a visual workflow builder for drag-and-drop creation, Chat for building in natural language, and templates for common use cases. Developers can also use custom functions, the API, and the CLI/SDK for advanced use cases.',
},
},
{
Expand Down
6 changes: 3 additions & 3 deletions apps/sim/app/api/files/presigned/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,18 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
expirationSeconds: 3600,
})
} catch (error) {
throw new ValidationError(getErrorMessage(error, 'Copilot validation failed'))
throw new ValidationError(getErrorMessage(error, 'Chat validation failed'))
}
} else if (uploadType === 'mothership') {
const workspaceId = request.nextUrl.searchParams.get('workspaceId')
if (!workspaceId?.trim()) {
throw new ValidationError('workspaceId query parameter is required for mothership uploads')
throw new ValidationError('workspaceId query parameter is required for chat uploads')
}

const permission = await getUserEntityPermissions(sessionUserId, 'workspace', workspaceId)
if (permission !== 'write' && permission !== 'admin') {
return NextResponse.json(
{ error: 'Write or Admin access required for mothership uploads' },
{ error: 'Write or Admin access required for chat uploads' },
{ status: 403 }
)
}
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/api/files/upload/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
// Handle mothership context (chat-scoped uploads to workspace S3)
if (context === 'mothership') {
if (!workspaceId) {
throw new InvalidRequestError('Mothership context requires workspaceId parameter')
throw new InvalidRequestError('Chat context requires workspaceId parameter')
}

logger.info(`Uploading mothership file: ${originalName}`)
Expand Down
12 changes: 6 additions & 6 deletions apps/sim/app/api/mothership/execute/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export const POST = withRouteHandler(async (req: NextRequest) => {
allowExplicitAbort = false

if (lifecycleAbortController.signal.aborted) {
send({ type: 'error', error: 'Mothership execution aborted' })
send({ type: 'error', error: 'Sim execution aborted' })
return
}

Expand All @@ -274,7 +274,7 @@ export const POST = withRouteHandler(async (req: NextRequest) => {
)
send({
type: 'error',
error: result.error || 'Mothership execution failed',
error: result.error || 'Sim execution failed',
content: result.content || '',
})
return
Expand All @@ -296,7 +296,7 @@ export const POST = withRouteHandler(async (req: NextRequest) => {
: 'Mothership execute aborted',
{ requestId }
)
send({ type: 'error', error: 'Mothership execution aborted' })
send({ type: 'error', error: 'Sim execution aborted' })
return
}

Expand Down Expand Up @@ -350,7 +350,7 @@ export const POST = withRouteHandler(async (req: NextRequest) => {

if (lifecycleAbortController.signal.aborted || req.signal.aborted) {
reqLogger.info('Mothership execute aborted after lifecycle completion')
return NextResponse.json({ error: 'Mothership execution aborted' }, { status: 499 })
return NextResponse.json({ error: 'Sim execution aborted' }, { status: 499 })
}

if (!result.success) {
Expand All @@ -368,7 +368,7 @@ export const POST = withRouteHandler(async (req: NextRequest) => {
)
return NextResponse.json(
{
error: result.error || 'Mothership execution failed',
error: result.error || 'Sim execution failed',
content: result.content || '',
},
{ status: 500 }
Expand All @@ -394,7 +394,7 @@ export const POST = withRouteHandler(async (req: NextRequest) => {
}
)

return NextResponse.json({ error: 'Mothership execution aborted' }, { status: 499 })
return NextResponse.json({ error: 'Sim execution aborted' }, { status: 499 })
}

if (isWorkspaceAccessDeniedError(error)) {
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/llms.txt/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function GET() {

> Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. Connect 1,000+ integrations and every major LLM to create agents that automate real work.

Sim lets teams create agents visually with the workflow builder, conversationally through Mothership, or programmatically with the API. The workspace includes knowledge bases, tables, files, and full observability.
Sim lets teams create agents visually with the workflow builder, conversationally through Chat, or programmatically with the API. The workspace includes knowledge bases, tables, files, and full observability.

## Preferred URLs

Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/playground/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export default function PlaygroundPage() {
toast.error('Workflow Validation', {
description:
'Usage limit exceeded: $0.00 used of $5.00 limit. Please upgrade your plan to continue running this workflow.',
action: { label: 'Fix in Copilot', onClick: () => {} },
action: { label: 'Fix in Chat', onClick: () => {} },
})
}
>
Expand Down
1 change: 1 addition & 0 deletions apps/sim/app/workspace/[workspaceId]/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export type { ErrorBoundaryProps, ErrorStateProps } from './error'
export { ErrorShell, ErrorState } from './error'
export { InlineRenameInput } from './inline-rename-input'
export { MessageActions } from './message-actions'
export { FloatingOverflowText } from './resource/components/floating-overflow-text'
export { ownerCell } from './resource/components/owner-cell'
export {
type ChromeActionSpec,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function ResourceChromeFallback({
sort={hasSort ? { options: [], active: null, onSort: noop } : undefined}
filter={hasFilter ? { content: null } : undefined}
/>
{columns ? <Resource.Table columns={columns} rows={[]} isLoading /> : null}
{columns ? <Resource.Table columns={columns} rows={[]} /> : null}
</Resource>
)
}
Loading
Loading