Skip to content

Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.

Call them coworkers, everywhere (#11)

David McKay68cc78d8a30c
diff --git a/.env.example b/.env.example
index 231933bf..89d8a399 100644
--- a/.env.example
+++ b/.env.example
@@ -128,7 +128,7 @@ AGENT_COMPUTER_ALLOW_PRIVATE_HOSTS=true
# EGRESS_PROXY_SALES_BOT=http://sales.proxy.internal:8080
-# The managed teammate AG-UI endpoint. Required: use an HTTP(S) URL.
+# The managed coworker AG-UI endpoint. Required: use an HTTP(S) URL.
MANAGED_AGENT_AG_UI_URL=http://localhost:4200/ag-ui
# The second Bot in the box runs on http://localhost:4201/ag-ui, on a framework rather than
diff --git a/README.md b/README.md
index c2005c19..710310fe 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
# OpenBot
-**AI teammates you can hand real work to, and actually trust with the access.** Each gets a computer of its own: a real browser with its own logins, its own files, and only the tools you grant. Every action decided before it happens and recorded after.
+**AI coworkers you can hand real work to, and actually trust with the access.** Each gets a computer of its own: a real browser with its own logins, its own files, and only the tools you grant. Every action decided before it happens and recorded after.
[**copilotkit.ai/openbot**](https://copilotkit.ai/openbot) · [**Quick start**](#quick-start) · [**Features**](#features) · [**Bring your own agent**](#bring-your-own-agent) · [**Architecture**](#architecture) · [**Docs**](docs/README.md)
@@ -18,7 +18,7 @@ https://github.com/user-attachments/assets/535ef7ee-1631-4a69-b839-564c56cf90b4
<div align="center">
Bring any AG-UI agent, written on a framework or by hand, and it arrives as a
-teammate with a channel of its own. Watch it work on its own screen, take the
+coworker with a channel of its own. Watch it work on its own screen, take the
wheel when it reaches something it should not do alone, then hand it back. It
answers with components rather than only prose, and the whole thing runs on
your own machine.
@@ -33,7 +33,7 @@ your own machine.
An agent platform that runs inside your own infrastructure. Docker Compose brings up every part of it, the data sits in your PostgreSQL, and the model is yours to choose: no model ships in the box, and an administrator supplies the credential, which is encrypted at rest and never logged.
-Three teammates ship in the example package, and they are configuration rather than code: **General Assistant** for everyday work, **Knowledge** for company questions, **Risk Analyst** for risk and compliance. Add your own by editing `agents.yaml` or from `/agents` in the UI.
+Three coworkers ship in the example package, and they are configuration rather than code: **General Assistant** for everyday work, **Knowledge** for company questions, **Risk Analyst** for risk and compliance. Add your own by editing `agents.yaml` or from `/agents` in the UI.
Anything a Bot does to a computer, a file, an MCP server or a component goes through one gateway that decides and records it. That is the difference between an agent that can use your tools and an agent you can let near them.
@@ -101,15 +101,15 @@ A Bot is any endpoint speaking [AG-UI](https://github.com/ag-ui-protocol/ag-ui),
- Open `/bot` and ask: `Open news.ycombinator.com and tell me the top story.`
- Ask the Bot to fill out <https://httpbin.org/forms/post>, then inspect `/admin/audit`.
- Open `/admin/boundaries`, add a deny rule or preset, and retry the same browser action.
-- Create a teammate from `/agents`, give it a standing role, and start a channel with it.
+- Create a coworker from `/agents`, give it a standing role, and start a channel with it.
## Main surfaces
| Route | Purpose |
| -------------------- | ------------------------------------------------------------------ |
| `/` | Start and browse channels. |
-| `/agents` | Create, edit, duplicate, hide, delete, and launch teammates. |
-| `/channel/:id` | Converse with one teammate and view its live screen/profile panel. |
+| `/agents` | Create, edit, duplicate, hide, delete, and launch coworkers. |
+| `/channel/:id` | Converse with one coworker and view its live screen/profile panel. |
| `/bot` | Direct chat with a Bot; `?agent=<id>` selects one. |
| `/skills` | Create and enable personal skills. |
| `/settings` | User preferences. |
@@ -142,21 +142,21 @@ A Bot is any endpoint speaking [AG-UI](https://github.com/ag-ui-protocol/ag-ui),
Any AG-UI endpoint can be a Bot.
-From `/agents`, create a teammate with:
+From `/agents`, create a coworker with:
- name, title, and role description;
- private or public visibility;
- optional AG-UI endpoint;
- optional write-only authorization header.
-The server validates agent endpoints with the same target checks used for browser navigation. If no custom endpoint is set, product-created teammates use `MANAGED_AGENT_AG_UI_URL`.
+The server validates agent endpoints with the same target checks used for browser navigation. If no custom endpoint is set, product-created coworkers use `MANAGED_AGENT_AG_UI_URL`.
Tenant package agents are declared in `agents.yaml` as either:
- `built-in`, with a system prompt; or
- `remote-ag-ui`, with an endpoint.
-See [docs/configuration.md](docs/configuration.md) and [docs/teammates.md](docs/teammates.md).
+See [docs/configuration.md](docs/configuration.md) and [docs/coworkers.md](docs/coworkers.md).
## Configuration
@@ -191,7 +191,7 @@ Full reference: [docs/configuration.md](docs/configuration.md).
| Service | Port | Purpose |
| ------------------------ | -------------------------- | ------------------------------------------------------------------------------------------------ |
| `app` | 3010 | React/Vite UI. |
-| `server` | 3001 | Hono API, CopilotKit runtime, auth, policy, audit, plugins, components, teammates, and channels. |
+| `server` | 3001 | Hono API, CopilotKit runtime, auth, policy, audit, plugins, components, coworkers, and channels. |
| `agent-computer` | 4100 | Chromium plus `/workspace` and browser profile. |
| `agent-bot` | 4200 | Proof-of-concept AG-UI Bot. |
| `agent-langgraph` | 4201 | LangGraph AG-UI Bot. |
@@ -258,7 +258,7 @@ Use `bash scripts/start.sh` for the whole stack. Use `bun run dev` only when you
- [docs/architecture.md](docs/architecture.md)
- [docs/configuration.md](docs/configuration.md)
- [docs/development.md](docs/development.md)
-- [docs/teammates.md](docs/teammates.md)
+- [docs/coworkers.md](docs/coworkers.md)
## Contributing
diff --git a/app/src/components/agents/abstract-avatar.tsx b/app/src/components/agents/abstract-avatar.tsx
index b65b039e..9ca98450 100644
--- a/app/src/components/agents/abstract-avatar.tsx
+++ b/app/src/components/agents/abstract-avatar.tsx
@@ -16,7 +16,7 @@ export function AbstractAvatar({
className="inline-flex shrink-0 overflow-hidden rounded-full"
style={{ height: size, width: size }}
>
- {/* The drawing carries its own role; hidden so the teammate is announced once, by name. */}
+ {/* The drawing carries its own role; hidden so the coworker is announced once, by name. */}
<span aria-hidden="true" className="contents">
<Avatar name={seed} size={size} />
</span>
diff --git a/app/src/components/agents/agent-fields.tsx b/app/src/components/agents/agent-fields.tsx
index ccc0b8fd..752a816c 100644
--- a/app/src/components/agents/agent-fields.tsx
+++ b/app/src/components/agents/agent-fields.tsx
@@ -33,7 +33,7 @@ export function AgentFields({
onCancel,
}: {
defaultValues: AgentFormValues;
- /** Whether this teammate already has a key, so the field can say so without showing it. */
+ /** Whether this coworker already has a key, so the field can say so without showing it. */
hasAuth?: boolean;
submitLabel: string;
onSubmit: (values: AgentFormValues) => Promise<unknown>;
diff --git a/app/src/components/agents/agent-profile.tsx b/app/src/components/agents/agent-profile.tsx
index c0b18245..e6fcfe19 100644
--- a/app/src/components/agents/agent-profile.tsx
+++ b/app/src/components/agents/agent-profile.tsx
@@ -54,7 +54,7 @@ function ProfileSkeleton() {
export function AgentProfile({ agentId }: { agentId: string }) {
const queryClient = useQueryClient();
const navigate = useNavigate();
- // State is keyed by teammate id because this panel can remain open while its target changes.
+ // State is keyed by coworker id because this panel can remain open while its target changes.
const [editingId, setEditingId] = useState<string | null>(null);
const [confirmingDeleteId, setConfirmingDeleteId] = useState<string | null>(
null,
@@ -76,7 +76,7 @@ export function AgentProfile({ agentId }: { agentId: string }) {
if (agent.error || !agent.data) {
return (
<p className="p-8 text-sm text-destructive" role="alert">
- Could not load this teammate.
+ Could not load this coworker.
</p>
);
}
diff --git a/app/src/components/agents/new-agent.tsx b/app/src/components/agents/new-agent.tsx
index f4c8f222..c99bb222 100644
--- a/app/src/components/agents/new-agent.tsx
+++ b/app/src/components/agents/new-agent.tsx
@@ -12,9 +12,9 @@ export function NewAgent() {
return (
<div className="mx-auto flex w-full max-w-xl flex-col gap-6 p-8">
<header>
- <h1 className="text-2xl font-semibold">New teammate</h1>
+ <h1 className="text-2xl font-semibold">New coworker</h1>
<p className="mt-1 text-sm text-muted-foreground">
- The role you write here applies in every channel this teammate works
+ The role you write here applies in every channel this coworker works
in.
</p>
</header>
@@ -23,12 +23,12 @@ export function NewAgent() {
defaultValues={emptyAgentForm}
error={createAgent.error}
onSubmit={async (values) => {
- // The panel swaps from the form to the new teammate's profile, and the roster behind it
+ // The panel swaps from the form to the new coworker's profile, and the roster behind it
// picks up the new card: the next thing to do is start a channel with it.
const agent = await createAgent.mutateAsync(agentInputFrom(values));
await navigate({ search: { agent: agent.id }, to: "/agents" });
}}
- submitLabel="Create teammate"
+ submitLabel="Create coworker"
/>
</div>
);
diff --git a/app/src/components/channels/channel-chat.tsx b/app/src/components/channels/channel-chat.tsx
index 8f26fa7c..8f4546a2 100644
--- a/app/src/components/channels/channel-chat.tsx
+++ b/app/src/components/channels/channel-chat.tsx
@@ -27,9 +27,9 @@ import { useSkillCommands } from "@/lib/plugins/skill-commands";
const SEND_WITHOUT_JOIN_AFTER_MS = 1500;
/**
- * One channel's conversation with one teammate.
+ * One channel's conversation with one coworker.
*
- * The local agent id is channel-scoped so two channels with the same teammate keep separate
+ * The local agent id is channel-scoped so two channels with the same coworker keep separate
* durable threads.
*/
export function ChannelChat({
@@ -132,7 +132,7 @@ export function ChannelChat({
};
}, [copilotkit, agent, isReady, channel.threadId, runtimeAgentId]);
- // Tool calls from this conversation act on this teammate's own computer.
+ // Tool calls from this conversation act on this coworker's own computer.
useActiveBot(runtimeAgentId);
const skillCommands = useSkillCommands(runtimeAgentId);
@@ -301,14 +301,14 @@ export function ChannelChat({
) : null}
{channel.active ? null : (
<p className="pb-2 text-sm text-muted-foreground" role="status">
- This teammate has been deleted. The conversation stays readable,
+ This coworker has been deleted. The conversation stays readable,
but it can no longer reply.
</p>
)}
</>
}
onSubmit={async (draft) => {
- // `draft.agentId` carries the @mentioned teammate, but nothing routes on it yet: this
+ // `draft.agentId` carries the @mentioned coworker, but nothing routes on it yet: this
// channel is pinned to one `runtimeAgentId` for the life of its thread, so honouring a
// per-message mention is a change to that binding, not to the composer.
//
diff --git a/app/src/components/channels/compose-state.ts b/app/src/components/channels/compose-state.ts
index 1010a2d3..cdf31544 100644
--- a/app/src/components/channels/compose-state.ts
+++ b/app/src/components/channels/compose-state.ts
@@ -10,13 +10,13 @@ export type Recipient = {
};
/**
- * One teammate per channel.
+ * One coworker per channel.
*
- * Matches the chat screen's current one-teammate render contract.
+ * Matches the chat screen's current one-coworker render contract.
*/
export const MAX_RECIPIENTS = 1;
-/** Add a teammate, replacing the oldest once the channel recipient cap is reached. */
+/** Add a coworker, replacing the oldest once the channel recipient cap is reached. */
export function addRecipient(
current: readonly Recipient[],
next: Recipient,
diff --git a/app/src/components/channels/composer/composer.tsx b/app/src/components/channels/composer/composer.tsx
index 5a1584f0..7ce029b1 100644
--- a/app/src/components/channels/composer/composer.tsx
+++ b/app/src/components/channels/composer/composer.tsx
@@ -47,7 +47,7 @@ export type ComposerProps = {
onStop?: () => void;
/**
* The conversation cannot take another message at all, which is a property of the conversation
- * rather than of the moment: a channel whose teammate was deleted. This is the only thing that
+ * rather than of the moment: a channel whose coworker was deleted. This is the only thing that
* stops a person typing.
*/
disabled?: boolean;
diff --git a/app/src/components/channels/recipient-field.tsx b/app/src/components/channels/recipient-field.tsx
index 46a90f00..bb33f113 100644
--- a/app/src/components/channels/recipient-field.tsx
+++ b/app/src/components/channels/recipient-field.tsx
@@ -19,7 +19,7 @@ import { agentListQueryOptions } from "@/lib/agents/queries";
* Who a conversation that does not exist yet is with.
*
* Uses the same recipient list model as compose state, even while channels are capped at one
- * teammate.
+ * coworker.
*/
export function RecipientField({
recipients,
@@ -61,9 +61,9 @@ export function RecipientField({
{isFull ? null : (
<InputGroup className="h-8 w-56 border-none bg-transparent">
<InputGroupInput
- aria-label="Choose a teammate"
+ aria-label="Choose a coworker"
onChange={(event) => setSearch(event.target.value)}
- placeholder="Choose a teammate…"
+ placeholder="Choose a coworker…"
value={search}
/>
<InputGroupAddon />
@@ -96,7 +96,7 @@ export function RecipientField({
))}
{matches.length === 0 ? (
<li className="px-2 py-1.5 text-sm text-muted-foreground">
- No teammate by that name.
+ No coworker by that name.
</li>
) : null}
</ul>
diff --git a/app/src/lib/agents/form.ts b/app/src/lib/agents/form.ts
index fa531b38..b08fa6a7 100644
--- a/app/src/lib/agents/form.ts
+++ b/app/src/lib/agents/form.ts
@@ -1,7 +1,7 @@
import { z } from "zod";
/**
- * Browser-side teammate form contract. Limits match the server parser so validation errors can be
+ * Browser-side coworker form contract. Limits match the server parser so validation errors can be
* shown next to fields before submit.
*/
export const agentFormSchema = z.object({
@@ -22,7 +22,7 @@ export const agentFormSchema = z.object({
.max(1000, "Role description must be 1000 characters or fewer."),
visibility: z.enum(["public", "private"]),
/**
- * The AG-UI endpoint this teammate runs on. Empty means the Bot in the box.
+ * The AG-UI endpoint this coworker runs on. Empty means the Bot in the box.
*
* Only URL shape is checked here; deployment allow/deny rules are server-side.
*/
diff --git a/app/src/lib/agents/mutations.ts b/app/src/lib/agents/mutations.ts
index f71768a3..a8f8eeff 100644
--- a/app/src/lib/agents/mutations.ts
+++ b/app/src/lib/agents/mutations.ts
@@ -6,7 +6,7 @@ export type AgentInput = {
title: string;
roleDescription: string;
visibility: AgentVisibility;
- /** Where this teammate runs. Empty means the Bot in the box. */
+ /** Where this coworker runs. Empty means the Bot in the box. */
endpoint?: string;
/** Write-only auth value; omitted when the user leaves the key field empty. */
auth?: { header: string; value: string };
@@ -28,7 +28,7 @@ async function agentRequest(
.json()
.then((body: { error?: string }) => body.error)
.catch(() => undefined);
- throw new Error(message ?? "Teammate operation failed");
+ throw new Error(message ?? "Coworker operation failed");
}
return response;
}
diff --git a/app/src/lib/agents/queries.ts b/app/src/lib/agents/queries.ts
index 2e9d5476..91c52247 100644
--- a/app/src/lib/agents/queries.ts
+++ b/app/src/lib/agents/queries.ts
@@ -3,7 +3,7 @@ import { queryOptions } from "@tanstack/react-query";
export type AgentVisibility = "public" | "private";
/**
- * A teammate as the browser sees it.
+ * A coworker as the browser sees it.
*
* `canManage` and `systemOwned` are server-decided authorization facts; components render from the
* returned flags rather than recomputing ownership rules.
@@ -15,7 +15,7 @@ export type AgentProfile = {
roleDescription: string;
avatarSeed: string;
visibility: AgentVisibility;
- /** Where this teammate runs. Null for the Bot in the box. */
+ /** Where this coworker runs. Null for the Bot in the box. */
endpoint: string | null;
/** Whether a key is set for it. Never the key itself. */
hasAuth: boolean;
@@ -23,9 +23,9 @@ export type AgentProfile = {
systemOwned: boolean;
canManage: boolean;
/**
- * Whether the signed-in person created this teammate.
+ * Whether the signed-in person created this coworker.
*
- * Separate from `canManage`, which is also true for administrators on everybody's teammates. Split
+ * Separate from `canManage`, which is also true for administrators on everybody's coworkers. Split
* a roster on `canManage` and an administrator's "mine" fills up with other people's work.
*/
mine: boolean;
@@ -47,7 +47,7 @@ export function agentListQueryOptions(hidden = false) {
credentials: "include",
},
);
- if (!response.ok) throw new Error("Could not load teammates");
+ if (!response.ok) throw new Error("Could not load coworkers");
return ((await response.json()) as { agents: AgentProfile[] }).agents;
},
});
@@ -60,7 +60,7 @@ export function agentQueryOptions(agentId: string) {
const response = await fetch(`/api/agents/${agentId}`, {
credentials: "include",
});
- if (!response.ok) throw new Error("Could not load this teammate");
+ if (!response.ok) throw new Error("Could not load this coworker");
return ((await response.json()) as { agent: AgentProfile }).agent;
},
});
diff --git a/app/src/lib/channels/mutations.ts b/app/src/lib/channels/mutations.ts
index c48821cb..776756cf 100644
--- a/app/src/lib/channels/mutations.ts
+++ b/app/src/lib/channels/mutations.ts
@@ -2,7 +2,7 @@ import { mutationOptions, type QueryClient } from "@tanstack/react-query";
import { type AgentChannel, channelKeys } from "./queries";
/**
- * Start a new channel with one or more teammates.
+ * Start a new channel with one or more coworkers.
*
* Deliberately not idempotent: every call creates a channel with its own thread.
*/
diff --git a/app/src/lib/channels/queries.ts b/app/src/lib/channels/queries.ts
index b332223a..7a58550b 100644
--- a/app/src/lib/channels/queries.ts
+++ b/app/src/lib/channels/queries.ts
@@ -3,8 +3,8 @@ import { queryOptions } from "@tanstack/react-query";
/**
* A channel as the browser sees it.
*
- * `threadId` is what makes two channels with the same teammate independent conversations, and
- * `active` is false once a linked teammate has been deleted: the transcript stays readable, but
+ * `threadId` is what makes two channels with the same coworker independent conversations, and
+ * `active` is false once a linked coworker has been deleted: the transcript stays readable, but
* nothing more can be said in it.
*/
export type AgentChannel = {
diff --git a/app/src/routes/_authed/_app/agents/index.tsx b/app/src/routes/_authed/_app/agents/index.tsx
index 6259c761..436b7769 100644
--- a/app/src/routes/_authed/_app/agents/index.tsx
+++ b/app/src/routes/_authed/_app/agents/index.tsx
@@ -12,7 +12,7 @@ import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
import { agentListQueryOptions } from "@/lib/agents/queries";
/**
- * Creating and inspecting a teammate are search-parameter states so the roster remains mounted and
+ * Creating and inspecting a coworker are search-parameter states so the roster remains mounted and
* Back closes the detail pane.
*/
const agentsSearchSchema = z.object({
diff --git a/app/src/routes/_authed/_app/channel/$channelId.tsx b/app/src/routes/_authed/_app/channel/$channelId.tsx
index 717d33b6..5af2dfaa 100644
--- a/app/src/routes/_authed/_app/channel/$channelId.tsx
+++ b/app/src/routes/_authed/_app/channel/$channelId.tsx
@@ -60,7 +60,7 @@ function RouteComponent() {
const isSettingsOpen = settings === true;
const prefersReducedMotion = useReducedMotion();
const isWatching = watch === true;
- /** Channel routing currently supports one teammate. */
+ /** Channel routing currently supports one coworker. */
const agentId = channel.data?.agentIds[0];
/** Needs-you state is rendered by the screen when the screen is already open. */
const needsYou = useNeedsYou(agentId, !isWatching);
@@ -178,7 +178,7 @@ function RouteComponent() {
) : null}
</Button>
<Button
- aria-label="Channel teammate"
+ aria-label="Channel coworker"
aria-pressed={isSettingsOpen}
className={isSettingsOpen ? "bg-foreground/5" : undefined}
disabled={agentId === undefined}
@@ -201,7 +201,7 @@ function RouteComponent() {
}
/**
- * A channel holds exactly one teammate. More than one is not supported yet, and rendering a shared
+ * A channel holds exactly one coworker. More than one is not supported yet, and rendering a shared
* transcript for several agents before the runtime can route between them would look like it works.
*/
function ChannelBody({
@@ -231,7 +231,7 @@ function ChannelBody({
if (!runtimeAgentId) {
return (
<p className="p-8 text-sm text-muted-foreground">
- This channel has more than one teammate, which is not supported yet.
+ This channel has more than one coworker, which is not supported yet.
</p>
);
}
diff --git a/app/src/routes/_authed/_app/channel/new.tsx b/app/src/routes/_authed/_app/channel/new.tsx
index 0d95b76d..0c15c6af 100644
--- a/app/src/routes/_authed/_app/channel/new.tsx
+++ b/app/src/routes/_authed/_app/channel/new.tsx
@@ -23,7 +23,7 @@ import { useStartChannel } from "@/lib/channels/start";
import { useSkillCommands } from "@/lib/plugins/skill-commands";
/**
- * Creates the channel on first send. The selected teammate stays in the URL so profile links and
+ * Creates the channel on first send. The selected coworker stays in the URL so profile links and
* reloads preserve the pending recipient without creating an empty channel.
*/
export const Route = createFileRoute("/_authed/_app/channel/new")({
@@ -46,8 +46,8 @@ function RouteComponent() {
// Stale or private `?agent=` values are ignored because the roster is permission-filtered.
const listed = profiles?.find((profile) => profile.id === agent);
/**
- * Hidden teammates are omitted from the roster but may still be valid recipients from a profile
- * link, so fetch the URL-selected teammate when it is absent from the visible list.
+ * Hidden coworkers are omitted from the roster but may still be valid recipients from a profile
+ * link, so fetch the URL-selected coworker when it is absent from the visible list.
*/
const { data: fetched } = useQuery({
...agentQueryOptions(agent ?? ""),
@@ -84,7 +84,7 @@ function RouteComponent() {
value={chosen ?? null}
>
<ComboboxInput
- placeholder="Choose a teammate…"
+ placeholder="Choose a coworker…"
// InputGroup owns focus rings via `has-[…:focus-visible]`; disable that wrapper ring here.
className="border-none w-full bg-transparent! text-sm has-[[data-slot=input-group-control]:focus-visible]:ring-0"
/>
diff --git a/app/src/routes/_authed/_app/index.tsx b/app/src/routes/_authed/_app/index.tsx
index e75d3481..e54b08a3 100644
--- a/app/src/routes/_authed/_app/index.tsx
+++ b/app/src/routes/_authed/_app/index.tsx
@@ -36,7 +36,7 @@ function RouteComponent() {
className="w-full max-w-2xl"
disabled={!fallback}
onSubmit={async (draft) => {
- // A channel is pinned to one teammate for the life of its thread.
+ // A channel is pinned to one coworker for the life of its thread.
const agentId = draft.agentId ?? fallback?.id;
if (!agentId) return;
diff --git a/app/tests/agents.test.ts b/app/tests/agents.test.ts
index 5c335ae6..2a0cad6b 100644
--- a/app/tests/agents.test.ts
+++ b/app/tests/agents.test.ts
@@ -3,7 +3,7 @@ import { agentFormSchema } from "@/lib/agents/form";
import { agentKeys } from "@/lib/agents/queries";
import { channelKeys } from "@/lib/channels/queries";
-describe("teammate query keys", () => {
+describe("coworker query keys", () => {
test("separates the visible roster from the hidden one", () => {
expect(agentKeys.list()).toEqual(["agents", "list", { hidden: false }]);
expect(agentKeys.list(true)).toEqual(["agents", "list", { hidden: true }]);
@@ -17,7 +17,7 @@ describe("teammate query keys", () => {
});
});
-describe("teammate form validation", () => {
+describe("coworker form validation", () => {
test("accepts the fields a person fills in", () => {
expect(
agentFormSchema.parse({
diff --git a/app/tests/compose-state.test.ts b/app/tests/compose-state.test.ts
index 33234cda..cfb9492c 100644
--- a/app/tests/compose-state.test.ts
+++ b/app/tests/compose-state.test.ts
@@ -15,11 +15,11 @@ describe("addRecipient", () => {
});
test("replaces rather than appends once the cap is reached", () => {
- // One teammate per channel today; a second pick replaces the first.
+ // One coworker per channel today; a second pick replaces the first.
expect(addRecipient([KNOWLEDGE], RISK)).toEqual([RISK]);
});
- test("adding the teammate already chosen is a no-op", () => {
+ test("adding the coworker already chosen is a no-op", () => {
expect(addRecipient([KNOWLEDGE], KNOWLEDGE)).toEqual([KNOWLEDGE]);
});
});
diff --git a/assets/architecture-dark.svg b/assets/architecture-dark.svg
index ba83dc99..8c927864 100644
--- a/assets/architecture-dark.svg
+++ b/assets/architecture-dark.svg
@@ -30,7 +30,7 @@
<text x="82" y="688" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="13" font-weight="400" fill="#98a3b0" text-anchor="start" >and hand it back</text>
<path d="M372.66621589244374 296.113936231446 C472.135099323839 294.18999407969784, 573.4626744626171 293.81774314049494, 847.5364319760095 295.2817677900874 M372.24244511832126 295.9468995267602 C534.9349017423283 296.6148733090316, 698.1762702448312 296.7009495838577, 848.2497789713334 295.80987227311334 M849.1369309403922 296.56044935135645 C850.056186801107 378.3564538642972, 852.0590960553928 463.11466890126127, 848.8262762519998 599.3279800450027 M848.2609713273171 295.5274586002608 C851.0322105410625 381.47048719763814, 849.9805697025621 467.87784025456625, 848.6835504474409 600.3399499011036 M848.6640543357665 601.0064121040998 C715.9015159861755 603.3054752482482, 584.8079464264672 602.0103013666235, 372.8168763928478 599.4291859554755 M848.3734663323435 600.3746715931871 C749.184542848704 598.5892555184859, 650.1334649223106 598.9945010763978, 371.91340987297275 600.1832966287982 M371.5698358894083 599.0543529881606 C373.879922371359 492.7903756964529, 372.02787776462924 388.1307250962686, 373.06425273796907 294.5759009061038 M372.0840445313832 600.8101141179719 C369.066405300502 529.7116726961306, 369.75944933813446 460.5921184700899, 372.7269533599055 295.70492091979145" fill="none" stroke="#e9edf2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<text x="394" y="332" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="18" font-weight="700" fill="#e9edf2" text-anchor="start" >server :3001</text>
-<text x="394" y="354" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="13" font-weight="400" fill="#98a3b0" text-anchor="start" >CopilotKit runtime, auth, roles, teammates</text>
+<text x="394" y="354" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="13" font-weight="400" fill="#98a3b0" text-anchor="start" >CopilotKit runtime, auth, roles, coworkers</text>
<path d="M392.99490505291766 377.1790007470653 C519.3360949498855 374.0940089685583, 643.5004716145095 372.98248862387567, 825.3126639961062 378.20087315801743 M394.64713985393547 377.6755641991004 C558.9012461603247 383.00060959921046, 724.2774428466357 382.76585394104393, 825.3510824832397 377.3081348621009 M823.4570766448975 380.54672584533694 C826.7098966163635 436.62927570343015, 827.2525846046448 494.80909118652346, 823.5976406097412 572.5098728179931 M826.9837327957154 378.56578197479246 C827.6427371284485 436.46261138916014, 827.5880923530578 494.99518299102783, 825.4635484695434 571.3481733322144 M825.7097201331227 572.3462659663915 C719.0456922334889 573.7884970780856, 612.0911418715114 573.8587154449655, 395.1979898666237 571.1646588320311 M826.1879792775048 571.6315735545155 C739.2576037778392 569.25899671261, 651.7875863130956 569.1295028161624, 394.17050143915276 571.5799295026721 M394.91144676208495 569.2466526031494 C388.6894978355408 516.6690221786499, 391.21734207382207 465.31365737915036, 395.4074794769287 379.24183082580566 M394.23955554962157 571.5859357833863 C394.84703612899784 500.40575675964357, 394.5435632286072 428.8988199234009, 394.77288684844973 378.8210615158081" fill="none" stroke="#f0b429" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
<text x="412" y="410" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="16" font-weight="700" fill="#f0b429" text-anchor="start" >the gateway</text>
<text x="412" y="440" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="13.5" font-weight="400" fill="#98a3b0" text-anchor="start" >1. resolve the target</text>
diff --git a/assets/architecture-light.svg b/assets/architecture-light.svg
index 35a25885..31df535f 100644
--- a/assets/architecture-light.svg
+++ b/assets/architecture-light.svg
@@ -30,7 +30,7 @@
<text x="82" y="688" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="13" font-weight="400" fill="#5b6570" text-anchor="start" >and hand it back</text>
<path d="M372.66621589244374 296.113936231446 C472.135099323839 294.18999407969784, 573.4626744626171 293.81774314049494, 847.5364319760095 295.2817677900874 M372.24244511832126 295.9468995267602 C534.9349017423283 296.6148733090316, 698.1762702448312 296.7009495838577, 848.2497789713334 295.80987227311334 M849.1369309403922 296.56044935135645 C850.056186801107 378.3564538642972, 852.0590960553928 463.11466890126127, 848.8262762519998 599.3279800450027 M848.2609713273171 295.5274586002608 C851.0322105410625 381.47048719763814, 849.9805697025621 467.87784025456625, 848.6835504474409 600.3399499011036 M848.6640543357665 601.0064121040998 C715.9015159861755 603.3054752482482, 584.8079464264672 602.0103013666235, 372.8168763928478 599.4291859554755 M848.3734663323435 600.3746715931871 C749.184542848704 598.5892555184859, 650.1334649223106 598.9945010763978, 371.91340987297275 600.1832966287982 M371.5698358894083 599.0543529881606 C373.879922371359 492.7903756964529, 372.02787776462924 388.1307250962686, 373.06425273796907 294.5759009061038 M372.0840445313832 600.8101141179719 C369.066405300502 529.7116726961306, 369.75944933813446 460.5921184700899, 372.7269533599055 295.70492091979145" fill="none" stroke="#1f2328" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<text x="394" y="332" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="18" font-weight="700" fill="#1f2328" text-anchor="start" >server :3001</text>
-<text x="394" y="354" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="13" font-weight="400" fill="#5b6570" text-anchor="start" >CopilotKit runtime, auth, roles, teammates</text>
+<text x="394" y="354" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="13" font-weight="400" fill="#5b6570" text-anchor="start" >CopilotKit runtime, auth, roles, coworkers</text>
<path d="M392.99490505291766 377.1790007470653 C519.3360949498855 374.0940089685583, 643.5004716145095 372.98248862387567, 825.3126639961062 378.20087315801743 M394.64713985393547 377.6755641991004 C558.9012461603247 383.00060959921046, 724.2774428466357 382.76585394104393, 825.3510824832397 377.3081348621009 M823.4570766448975 380.54672584533694 C826.7098966163635 436.62927570343015, 827.2525846046448 494.80909118652346, 823.5976406097412 572.5098728179931 M826.9837327957154 378.56578197479246 C827.6427371284485 436.46261138916014, 827.5880923530578 494.99518299102783, 825.4635484695434 571.3481733322144 M825.7097201331227 572.3462659663915 C719.0456922334889 573.7884970780856, 612.0911418715114 573.8587154449655, 395.1979898666237 571.1646588320311 M826.1879792775048 571.6315735545155 C739.2576037778392 569.25899671261, 651.7875863130956 569.1295028161624, 394.17050143915276 571.5799295026721 M394.91144676208495 569.2466526031494 C388.6894978355408 516.6690221786499, 391.21734207382207 465.31365737915036, 395.4074794769287 379.24183082580566 M394.23955554962157 571.5859357833863 C394.84703612899784 500.40575675964357, 394.5435632286072 428.8988199234009, 394.77288684844973 378.8210615158081" fill="none" stroke="#f59e0b" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
<text x="412" y="410" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="16" font-weight="700" fill="#f59e0b" text-anchor="start" >the gateway</text>
<text x="412" y="440" font-family='ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif' font-size="13.5" font-weight="400" fill="#5b6570" text-anchor="start" >1. resolve the target</text>
diff --git a/docs/README.md b/docs/README.md
index 6ac24393..7be1ff69 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -5,6 +5,6 @@ Start with the root [README](../README.md), then use these references:
- [Architecture](architecture.md): services, ports, browser governance, computers, components, plugins, knowledge, and security boundaries.
- [Configuration](configuration.md): environment variables and tenant package YAML.
- [Development](development.md): local setup, migrations, ports, and quality checks.
-- [Teammates](teammates.md): durable Bot profiles, channels, visibility, deletion, and external AG-UI registration.
+- [Coworkers](coworkers.md): durable Bot profiles, channels, visibility, deletion, and external AG-UI registration.
Do not include credential values, customer data, transcripts, or local-only notes in public docs.
diff --git a/docs/architecture.md b/docs/architecture.md
index c6d184bc..90b52c14 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -14,7 +14,7 @@ Regenerate it with `bun run diagram` after changing anything it shows.
| Component | Port | Responsibility |
| ------------------------ | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `app` | 3010 | React/Vite interface for channels, Bot chat, live screen, settings, and admin pages. |
-| `server` | 3001 | API, CopilotKit runtime, auth, roles, tenant package, teammates, channels, policy, audit, credentials, plugins, components, and connectors. |
+| `server` | 3001 | API, CopilotKit runtime, auth, roles, tenant package, coworkers, channels, policy, audit, credentials, plugins, components, and connectors. |
| `agent-computer` | 4100 | Chromium, `/workspace`, browser profile, screenshots, snapshots, and file tools. |
| `agent-bot` | 4200 | Proof-of-concept AG-UI Bot. |
| `agent-langgraph` | 4201 | LangGraph AG-UI Bot. |
@@ -29,7 +29,7 @@ The compose file also defines optional SPIRE services. `start.sh` does not start
## Runtime flow
1. The app opens a channel or direct Bot session.
-2. The server resolves the signed-in actor and selected teammate.
+2. The server resolves the signed-in actor and selected coworker.
3. CopilotKit runtime sends the turn to the configured AG-UI endpoint.
4. The surface registers available frontend tools: browser tools, MCP tools, and components granted to that Bot.
5. Acting browser/file/MCP calls return to the server for authorization and audit.
@@ -85,17 +85,17 @@ While a person controls the browser, Bot actions are refused rather than queued.
Secret entry is separate from chat content. The audit trail records that a secret was requested or supplied and the character count, not the secret value.
-## Teammates and channels
+## Coworkers and channels
-A teammate is a durable Bot profile:
+A coworker is a durable Bot profile:
- `agents` stores runtime identity and endpoint/key reference.
- `agent_profiles` stores name, title, role, owner, visibility, and deletion state.
- `agent_preferences` stores per-user roster state.
-A channel is a conversation with one teammate and a CopilotKit Intelligence thread mapping. Starting a new channel creates a new thread.
+A channel is a conversation with one coworker and a CopilotKit Intelligence thread mapping. Starting a new channel creates a new thread.
-See [teammates.md](teammates.md).
+See [coworkers.md](coworkers.md).
## Components
diff --git a/docs/configuration.md b/docs/configuration.md
index 0aa48bd2..b3b67fb8 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -20,7 +20,7 @@ bash scripts/start.sh
| ----------------------------- | ----------------------------------------------------------------------------------------------------- |
| `DATABASE_URL` | PostgreSQL connection string. |
| `KEY_ENCRYPTION_KEY` | Base64-encoded 32-byte key for encrypted stored credentials. Generate with `openssl rand -base64 32`. |
-| `MANAGED_AGENT_AG_UI_URL` | Default AG-UI endpoint for teammates created in the product. Must be HTTP(S). |
+| `MANAGED_AGENT_AG_UI_URL` | Default AG-UI endpoint for coworkers created in the product. Must be HTTP(S). |
| `INTELLIGENCE_API_URL` | CopilotKit Intelligence API URL. |
| `INTELLIGENCE_GATEWAY_WS_URL` | CopilotKit Intelligence realtime gateway URL. |
| `INTELLIGENCE_API_KEY` | Runtime key for the Intelligence project. |
diff --git a/docs/teammates.md b/docs/coworkers.md
similarity index 80%
rename from docs/teammates.md
rename to docs/coworkers.md
index b7024967..47ab2fe3 100644
--- a/docs/teammates.md
+++ b/docs/coworkers.md
@@ -1,6 +1,6 @@
-# Teammates
+# Coworkers
-A teammate is a Bot with a durable profile and standing role. The role is sent with every run so the user does not have to restate the job in each channel.
+A coworker is a Bot with a durable profile and standing role. The role is sent with every run so the user does not have to restate the job in each channel.
## Data model
@@ -9,14 +9,14 @@ A teammate is a Bot with a durable profile and standing role. The role is sent w
| Runtime agent | `agents` | AG-UI endpoint and optional key reference. |
| Profile | `agent_profiles` | Name, title, role, avatar seed, owner, visibility, and soft deletion. |
| Personal roster | `agent_preferences` | Per-user hidden state. |
-| Channel | `channels` | Conversation membership and teammate binding. |
+| Channel | `channels` | Conversation membership and coworker binding. |
| Intelligence mapping | `intelligence_channel_mappings` | Channel-to-thread mapping. |
-Package-provided agents are public and ownerless. User-created teammates are owned by the creator.
+Package-provided agents are public and ownerless. User-created coworkers are owned by the creator.
## Standing role
-Remote teammates receive a system message derived from their title and role description:
+Remote coworkers receive a system message derived from their title and role description:
```text
You are Expense Manager, Finance Operations.
@@ -39,19 +39,19 @@ Filtering happens in server/database queries. Package-provided agents cannot be
## Channels
-Starting a channel creates a new conversation and Intelligence thread. Two channels with the same teammate stay separate.
+Starting a channel creates a new conversation and Intelligence thread. Two channels with the same coworker stay separate.
-Each channel routes through a channel-local proxy agent id, pinned to that channel's thread id, then forwards to the teammate runtime id.
+Each channel routes through a channel-local proxy agent id, pinned to that channel's thread id, then forwards to the coworker runtime id.
## Deleting and hiding
-Deleting is soft. The teammate stops running, but existing channels remain readable for their members and restore as tombstones.
+Deleting is soft. The coworker stops running, but existing channels remain readable for their members and restore as tombstones.
-Hiding is personal roster state. It removes the teammate from one user's list without disabling the teammate for anyone else.
+Hiding is personal roster state. It removes the coworker from one user's list without disabling the coworker for anyone else.
## Default endpoint
-Product-created teammates use:
+Product-created coworkers use:
```dotenv
MANAGED_AGENT_AG_UI_URL=http://localhost:4200/ag-ui
@@ -73,7 +73,7 @@ agents:
endpoint: http://risk.internal/ag-ui
```
-In the product, create or edit a teammate from `/agents` and set:
+In the product, create or edit a coworker from `/agents` and set:
- name;
- title;
@@ -88,7 +88,7 @@ Endpoint registration uses target checks. Cloud metadata addresses are refused u
## Capabilities
-A teammate's role does not grant capabilities. Capabilities are governed separately:
+A coworker's role does not grant capabilities. Capabilities are governed separately:
- browser and file actions go through the computer gateway policy;
- components are published deployment-wide and can be withheld per Bot;
diff --git a/examples/mastra-bot/src/index.ts b/examples/mastra-bot/src/index.ts
index 88057059..c5d5f715 100644
--- a/examples/mastra-bot/src/index.ts
+++ b/examples/mastra-bot/src/index.ts
@@ -20,7 +20,7 @@ const PORT = Number.parseInt(process.env.PORT ?? "4400", 10);
const MODEL = process.env.BOT_MODEL ?? "gpt-5.5";
const bot = new Agent({
- name: "OpenBot Mastra teammate",
+ name: "OpenBot Mastra coworker",
instructions:
"You are a Bot running on Mastra inside OpenBot. You have a real web browser available through " +
"the tools you are given.\n\n" +
diff --git a/scripts/architecture-diagram.ts b/scripts/architecture-diagram.ts
index 510198eb..3b42ebcb 100644
--- a/scripts/architecture-diagram.ts
+++ b/scripts/architecture-diagram.ts
@@ -321,7 +321,7 @@ function render(t: Theme): string {
weight: 700,
fill: t.ink,
});
- text(svX + 22, svY + 58, "CopilotKit runtime, auth, roles, teammates", {
+ text(svX + 22, svY + 58, "CopilotKit runtime, auth, roles, coworkers", {
size: 13,
fill: t.muted,
});
diff --git a/scripts/start.sh b/scripts/start.sh
index 2df03e4c..5f8ad639 100755
--- a/scripts/start.sh
+++ b/scripts/start.sh
@@ -108,7 +108,7 @@ for table in agent_profiles agent_preferences; do
exit 1
fi
done
-green " teammate tables migrated"
+green " coworker tables migrated"
MANAGED_URL="$(grep -E '^MANAGED_AGENT_AG_UI_URL=' "$ROOT/.env" | tail -1 | cut -d= -f2-)"
if [ -z "$MANAGED_URL" ]; then
@@ -116,7 +116,7 @@ if [ -z "$MANAGED_URL" ]; then
red " See .env.example."
exit 1
fi
-green " managed teammate endpoint: $MANAGED_URL"
+green " managed coworker endpoint: $MANAGED_URL"
info "2/4 Server"
require_free_or_ours "$SERVER_PORT" server
@@ -164,7 +164,7 @@ $(green "Ready. http://localhost:$APP_PORT")
Next steps:
- Direct Bot chat: http://localhost:$APP_PORT/bot
- - Teammates: http://localhost:$APP_PORT/agents
+ - Coworkers: http://localhost:$APP_PORT/agents
- Audit trail: http://localhost:$APP_PORT/admin/audit
- Boundaries/policy: http://localhost:$APP_PORT/admin/boundaries
- Setup docs: README.md
@@ -173,7 +173,7 @@ Next steps:
Try:
1. Open /bot and ask: Open news.ycombinator.com and tell me the top story.
- 2. Create a teammate in /agents and start a channel with it.
+ 2. Create a coworker in /agents and start a channel with it.
3. Review browser/file actions in /admin/audit.
4. Add a deny rule in /admin/boundaries, then retry the same action.
diff --git a/server/drizzle.config.ts b/server/drizzle.config.ts
index 93327a52..24e6775d 100644
--- a/server/drizzle.config.ts
+++ b/server/drizzle.config.ts
@@ -20,7 +20,7 @@ export default defineConfig({
schema: [
"./src/db/schema/core.ts",
"./src/db/schema/computer.ts",
- "./src/db/schema/teammate.ts",
+ "./src/db/schema/coworker.ts",
"./src/db/schema/components.ts",
"./src/db/schema/plugins.ts",
],
diff --git a/server/src/agents/profile-store.ts b/server/src/agents/profile-store.ts
index 8ddfcfc7..02c97553 100644
--- a/server/src/agents/profile-store.ts
+++ b/server/src/agents/profile-store.ts
@@ -132,7 +132,7 @@ function mapProfile(
}
/**
- * The AG-UI address this teammate runs on, read back out of its stored configuration.
+ * The AG-UI address this coworker runs on, read back out of its stored configuration.
*
* Needed so an edit does not destroy it. The edit form is the same form as create, so without the
* current endpoint to fill it with, saving a change of title would submit an empty endpoint and
diff --git a/server/src/agents/profile-types.ts b/server/src/agents/profile-types.ts
index 7aa34f59..ad2e2f63 100644
--- a/server/src/agents/profile-types.ts
+++ b/server/src/agents/profile-types.ts
@@ -16,7 +16,7 @@ export type AgentProfile = {
systemOwned: boolean;
hidden: boolean;
deletedAt: Date | null;
- /** Where this teammate runs. Null for the Bot in the box. */
+ /** Where this coworker runs. Null for the Bot in the box. */
endpoint: string | null;
/** Whether a key is set for it. Never the key. */
hasAuth: boolean;
diff --git a/server/src/agents/routes.ts b/server/src/agents/routes.ts
index 835fc512..303ec8e4 100644
--- a/server/src/agents/routes.ts
+++ b/server/src/agents/routes.ts
@@ -347,7 +347,7 @@ function agentDto(actor: AgentActor, agent: AgentProfile) {
hasAuth: agent.hasAuth,
canManage: canManageAgent(actor, agent),
// Ownership, kept separate from permission. `canManage` is also true for an administrator on
- // another user's teammate, so a roster that split "mine" on it would file other people's work
+ // another user's coworker, so a roster that split "mine" on it would file other people's work
// under yours, and only for administrators, who are the least likely to notice.
mine: agent.ownerUserId === actor.id,
};
diff --git a/server/src/agents/runtime-agents.ts b/server/src/agents/runtime-agents.ts
index 4228b2a9..257900c6 100644
--- a/server/src/agents/runtime-agents.ts
+++ b/server/src/agents/runtime-agents.ts
@@ -14,7 +14,7 @@ import type { AgentActor } from "./profile-types";
/**
* Read the agents one person may run, on every request.
*
- * The filtering is in the query, not in JavaScript afterwards: a private teammate must never be
+ * The filtering is in the query, not in JavaScript afterwards: a private coworker must never be
* read into the process for an actor who cannot see it, and "we fetched it but did not show it" is
* the shape most accidental disclosures take.
*/
@@ -87,11 +87,11 @@ function selectActiveAgents(database: Database, actor: AgentActor) {
}
/**
- * Deleted teammates the caller still has history with.
+ * Deleted coworkers the caller still has history with.
*
* Registered so Intelligence can restore the thread the person is reading. Membership of a channel
* the agent worked in is what authorizes this, not the profile's visibility, which is why deleting
- * a teammate leaves its conversations readable instead of erasing them.
+ * a coworker leaves its conversations readable instead of erasing them.
*/
function selectTombstoneAgents(database: Database, actor: AgentActor) {
return database
diff --git a/server/src/copilot.ts b/server/src/copilot.ts
index c555edaf..5c00e36c 100644
--- a/server/src/copilot.ts
+++ b/server/src/copilot.ts
@@ -46,7 +46,7 @@ type RegisteredRemoteAgent = {
};
/**
- * A teammate the caller may see but may not run: its profile was deleted while a channel it worked
+ * A coworker the caller may see but may not run: its profile was deleted while a channel it worked
* in still exists. It is registered so Intelligence can restore that thread and the person can read
* what was said; every run is refused here, without contacting the endpoint.
*/
@@ -66,7 +66,7 @@ type AgentRunInput = Parameters<AbstractAgent["run"]>[0];
type AgentMessage = AgentRunInput["messages"][number];
export type StandingRoleMessage = Extract<AgentMessage, { role: "system" }>;
-/** The durable part of a teammate: who it is and what its standing job is. */
+/** The durable part of a coworker: who it is and what its standing job is. */
export type AgentStandingProfile = {
id: string;
name: string;
@@ -75,7 +75,7 @@ export type AgentStandingProfile = {
};
/**
- * The teammate's job, as one system message.
+ * The coworker's job, as one system message.
*
* It is an ordinary AG-UI system message rather than `forwardedProps` or framework-specific state
* because the endpoint on the other side may be LangGraph, Mastra, ADK or a hand-written server, and
@@ -217,7 +217,7 @@ function buildAgent(
* A remote AG-UI agent that states its standing role on every run.
*
* This is standard AG-UI middleware rather than a request transformation on one provider's client,
- * so the same teammate works against any endpoint that speaks the protocol. Any copy of the standing
+ * so the same coworker works against any endpoint that speaks the protocol. Any copy of the standing
* message already in the conversation is dropped: the endpoint must receive exactly one, first,
* however many times the thread has been replayed.
*/
@@ -251,7 +251,7 @@ class UnavailableAgent extends AbstractAgent {
this.reason = agent.reason;
}
- // Refused here rather than at the endpoint: a deleted teammate has no endpoint worth contacting,
+ // Refused here rather than at the endpoint: a deleted coworker has no endpoint worth contacting,
// and the person is owed the reason rather than a transport error.
run(): never {
throw new Error(this.reason);
@@ -287,8 +287,8 @@ export type LoadAgentsForActor = (
/**
* Build the runtime's per-request agent factory.
*
- * Resolution is per request, not per boot, because who may run a teammate is a property of the
- * person asking: a private teammate must be absent for everybody else, and a role edited a moment
+ * Resolution is per request, not per boot, because who may run a coworker is a property of the
+ * person asking: a private coworker must be absent for everybody else, and a role edited a moment
* ago must apply to the next run without a restart. Both fall out of rebuilding the map here.
*/
export function createRequestAgents(
@@ -339,7 +339,7 @@ export function mountCopilotRuntime(
}),
licenseToken: intelligence.licenseToken,
// `identifyUser` is the Intelligence projection of the same person `identifyActor` returns:
- // one resolver decides both whose threads these are and whose teammates exist.
+ // one resolver decides both whose threads these are and whose coworkers exist.
agents: createRequestAgents(
identifyActor,
loadAgents,
diff --git a/server/src/db/schema/computer.ts b/server/src/db/schema/computer.ts
index df679f4e..517384e0 100644
--- a/server/src/db/schema/computer.ts
+++ b/server/src/db/schema/computer.ts
@@ -2,7 +2,7 @@
* Computer tables: agent computers, sessions, computer-use audit.
*
* Split by owner so two people can add tables all day without touching the same lines. Add tables
- * here; never edit core.ts or teammate.ts to do it.
+ * here; never edit core.ts or coworker.ts to do it.
*/
import { pgTable, text, timestamp } from "drizzle-orm/pg-core";
diff --git a/server/src/db/schema/teammate.ts b/server/src/db/schema/coworker.ts
similarity index 96%
rename from server/src/db/schema/teammate.ts
rename to server/src/db/schema/coworker.ts
index 13f8ea74..8438f33b 100644
--- a/server/src/db/schema/teammate.ts
+++ b/server/src/db/schema/coworker.ts
@@ -1,5 +1,5 @@
/**
- * Teammate tables: bots, skills, routines, bot-to-bot handoff.
+ * Coworker tables: bots, skills, routines, bot-to-bot handoff.
*
* Split by owner so two people can add tables all day without touching the same lines. Add tables
* here; never edit core.ts or computer.ts to do it.
diff --git a/server/src/db/schema/index.ts b/server/src/db/schema/index.ts
index d0421cab..b924af64 100644
--- a/server/src/db/schema/index.ts
+++ b/server/src/db/schema/index.ts
@@ -4,4 +4,4 @@ export * from "./components";
export * from "./computer";
export * from "./core";
export * from "./plugins";
-export * from "./teammate";
+export * from "./coworker";
diff --git a/server/src/index.ts b/server/src/index.ts
index 4b01f814..2d72bca9 100644
--- a/server/src/index.ts
+++ b/server/src/index.ts
@@ -47,8 +47,8 @@ import {
* Who is asking, for a CopilotKit request.
*
* One resolver, because a run has two questions to answer about the same person: whose threads and
- * memory these are, and which teammates they may run. Answering them from different places is how
- * one person ends up running another's private teammate, or reading their thread.
+ * memory these are, and which coworkers they may run. Answering them from different places is how
+ * one person ends up running another's private coworker, or reading their thread.
*/
async function resolveRequestActor(request: Request): Promise<{
id: string;
diff --git a/server/src/plugins/store.ts b/server/src/plugins/store.ts
index 4e31b36a..b4caf395 100644
--- a/server/src/plugins/store.ts
+++ b/server/src/plugins/store.ts
@@ -512,7 +512,7 @@ export function createPluginStore(options: PluginStoreOptions) {
/**
* Whose a Bot is, or `undefined` if there is no such Bot.
*
- * Read here rather than through the teammate store because the only question this file asks is
+ * Read here rather than through the coworker store because the only question this file asks is
* "may this person put their skill on that Bot", and a whole profile is more than that needs.
*/
async agentOwner(agentId: string): Promise<string | null | undefined> {
diff --git a/server/tests/agent-profile-store.integration.test.ts b/server/tests/agent-profile-store.integration.test.ts
index 704de6cf..a3d0691a 100644
--- a/server/tests/agent-profile-store.integration.test.ts
+++ b/server/tests/agent-profile-store.integration.test.ts
@@ -289,7 +289,7 @@ describe("agent profile store integration", () => {
visibility: "public",
id: "forged-id",
// The endpoint IS editable, and is the one field in this hostile payload that lands. A service
- // moves host, and the alternative is deleting the teammate and losing its conversations. It
+ // moves host, and the alternative is deleting the coworker and losing its conversations. It
// reaches here already validated by the same check that guards creation.
endpoint: "https://moved.example.test/ag-ui",
ownerUserId: "forged-owner",
diff --git a/server/tests/agent-routes.test.ts b/server/tests/agent-routes.test.ts
index 0bb7589b..b05774ea 100644
--- a/server/tests/agent-routes.test.ts
+++ b/server/tests/agent-routes.test.ts
@@ -398,8 +398,8 @@ describe("agent lifecycle routes", () => {
await appFor(store, requireAdministrator).request("http://openbot.test/"),
)) as { agents: { id: string; canManage: boolean; mine: boolean }[] };
- // An administrator may manage everybody's teammates but only created their own. A roster that
- // split on `canManage` would file somebody else's private teammate under theirs.
+ // An administrator may manage everybody's coworkers but only created their own. A roster that
+ // split on `canManage` would file somebody else's private coworker under theirs.
expect(body.agents).toEqual([
expect.objectContaining({ id: "theirs", canManage: true, mine: false }),
expect.objectContaining({ id: "ours", canManage: true, mine: true }),
diff --git a/server/tests/copilot.test.ts b/server/tests/copilot.test.ts
index 8369571d..a35764d5 100644
--- a/server/tests/copilot.test.ts
+++ b/server/tests/copilot.test.ts
@@ -10,7 +10,7 @@ import {
standingRoleMessage,
} from "../src/copilot";
-// Every agent row now joins its profile, so the row a teammate is built from always names it.
+// Every agent row now joins its profile, so the row a coworker is built from always names it.
const assistantRow = {
id: "general-assistant",
name: "General Assistant",
@@ -225,9 +225,9 @@ describe("registered Copilot agents", () => {
});
/**
- * A teammate's job is durable: it lives on the profile, not in the conversation. Every run of a
+ * A coworker's job is durable: it lives on the profile, not in the conversation. Every run of a
* remote agent therefore carries a standing role message the person never has to retype, and the
- * runtime resolves which agents exist per request so one person's private teammate is not another's.
+ * runtime resolves which agents exist per request so one person's private coworker is not another's.
*/
describe("standing agent roles", () => {
const profile = {
@@ -293,7 +293,7 @@ describe("standing agent roles", () => {
expect(JSON.stringify(sent?.state ?? {})).not.toContain("standing-role");
});
- test("resolves a deleted teammate as a tombstone that never reaches its endpoint", async () => {
+ test("resolves a deleted coworker as a tombstone that never reaches its endpoint", async () => {
await using endpoint = fakeAgUiEndpoint();
const agents = buildAgents(
[
@@ -330,7 +330,7 @@ describe("standing agent roles", () => {
},
async (actor) => {
seen.actors.push(actor);
- return [remoteAgent("http://teammate.internal/ag-ui")];
+ return [remoteAgent("http://coworker.internal/ag-ui")];
},
{ provider: "openai", defaultModel: "gpt-4.1" },
async () => null,
@@ -349,7 +349,7 @@ describe("standing agent roles", () => {
const factory = createRequestAgents(
async () => ({ id: "user-7", role: "user" as const }),
async () => [
- remoteAgent("http://teammate.internal/ag-ui", { roleDescription }),
+ remoteAgent("http://coworker.internal/ag-ui", { roleDescription }),
],
{ provider: "openai", defaultModel: "gpt-4.1" },
async () => null,
diff --git a/server/tests/runtime-agents.integration.test.ts b/server/tests/runtime-agents.integration.test.ts
index bff85340..0756a337 100644
--- a/server/tests/runtime-agents.integration.test.ts
+++ b/server/tests/runtime-agents.integration.test.ts
@@ -68,7 +68,7 @@ async function createUser(role: AgentActor["role"] = "user") {
return { id, role } satisfies AgentActor;
}
-async function createTeammate(
+async function createCoworker(
owner: AgentActor,
overrides: { name?: string; visibility?: "public" | "private" } = {},
) {
@@ -88,14 +88,14 @@ function idsOf(loaded: Awaited<ReturnType<typeof loadAgents>>) {
}
/**
- * Which teammates exist is a per-person question, answered on every request. These assertions are
+ * Which coworkers exist is a per-person question, answered on every request. These assertions are
* against the database rather than a fake, because the whole point of resolving here is that the
* filtering happens in the query and not in JavaScript after every row has already been read.
*/
describe("runtime agent loading", () => {
- test("carries the owner's teammate with its standing role and managed endpoint", async () => {
+ test("carries the owner's coworker with its standing role and managed endpoint", async () => {
const owner = await createUser();
- const profile = await createTeammate(owner);
+ const profile = await createCoworker(owner);
const loaded = await loadAgents(owner);
@@ -114,21 +114,21 @@ describe("runtime agent loading", () => {
});
});
- test("hides a private teammate from everybody but its owner and administrators", async () => {
+ test("hides a private coworker from everybody but its owner and administrators", async () => {
const owner = await createUser();
const otherUser = await createUser();
const administrator = await createUser("admin");
- const profile = await createTeammate(owner);
+ const profile = await createCoworker(owner);
expect(idsOf(await loadAgents(owner))).toContain(profile.id);
expect(idsOf(await loadAgents(otherUser))).not.toContain(profile.id);
expect(idsOf(await loadAgents(administrator))).toContain(profile.id);
});
- test("shares a public teammate with everybody", async () => {
+ test("shares a public coworker with everybody", async () => {
const owner = await createUser();
const otherUser = await createUser();
- const profile = await createTeammate(owner, {
+ const profile = await createCoworker(owner, {
name: "Company Helper",
visibility: "public",
});
@@ -136,19 +136,19 @@ describe("runtime agent loading", () => {
expect(idsOf(await loadAgents(otherUser))).toContain(profile.id);
});
- test("drops a deleted teammate that has no history to restore", async () => {
+ test("drops a deleted coworker that has no history to restore", async () => {
const owner = await createUser();
- const profile = await createTeammate(owner);
+ const profile = await createCoworker(owner);
await profileStore.softDelete(owner, profile.id);
expect(idsOf(await loadAgents(owner))).not.toContain(profile.id);
});
- test("keeps a deleted teammate as a tombstone for a channel member", async () => {
+ test("keeps a deleted coworker as a tombstone for a channel member", async () => {
const owner = await createUser();
const otherUser = await createUser();
- const profile = await createTeammate(owner);
+ const profile = await createCoworker(owner);
const channel = await channelStore.create(owner, [profile.id]);
createdChannelIds.push(channel.id);
@@ -167,7 +167,7 @@ describe("runtime agent loading", () => {
test("applies an edited role to the next load without a restart", async () => {
const owner = await createUser();
- const profile = await createTeammate(owner);
+ const profile = await createCoworker(owner);
await profileStore.update(owner, profile.id, {
name: "Expense Manager",