cline/cline · error
Teammate "${agentId}" was not found
Error message
Teammate "${agentId}" was not found What it means
Error "Teammate "${agentId}" was not found" thrown in cline/cline.
Source
Thrown at sdk/packages/core/src/extensions/tools/team/multi-agent.ts:910
modelId: config.modelId,
maxIterations: config.maxIterations,
runtimeAgentId: agent.getAgentId(),
conversationId: agent.getConversationId(),
parentAgentId: null,
},
});
return {
agentId: teammate.agentId,
role: teammate.role,
description: teammate.description,
status: teammate.status,
};
}
shutdownTeammate(agentId: string, reason?: string): void {
const member = this.members.get(agentId);
if (!member || member.role !== "teammate") {
throw new Error(`Teammate "${agentId}" was not found`);
}
try {
member.agent?.abort();
} catch (error) {
if (!isAbortLikeError(error)) {
throw error;
}
}
member.status = "stopped";
this.emitEvent({ type: TeamMessageType.TeammateShutdown, agentId, reason });
}
updateTeammateConnections(
overrides: Partial<Pick<AgentConfig, "apiKey" | "baseUrl" | "headers">>,
): void {
for (const member of this.members.values()) {
if (member.role !== "teammate" || !member.agent) {
continue;View on GitHub (pinned to 491b30b806)
When it happens
Trigger: Thrown at sdk/packages/core/src/extensions/tools/team/multi-agent.ts:910 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of cline/cline@491b30b806 (2026-08-25).
Data as JSON: /api/errors/9f0391eba9a467aa.
Report an issue: GitHub.