MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isSwarmWorker

Function isSwarmWorker

src/utils/swarm/permissionSync.ts:596–601  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

594 * Check if the current agent is a worker in a swarm
595 */
596export function isSwarmWorker(): boolean {
597 const teamName = getTeamName()
598 const agentId = getAgentId()
599
600 return !!teamName && !!agentId && !isTeamLeader()
601}
602
603/**
604 * Delete a resolved permission file

Callers 3

REPLFunction · 0.85
useSwarmPermissionPollerFunction · 0.85

Calls 3

getTeamNameFunction · 0.85
getAgentIdFunction · 0.85
isTeamLeaderFunction · 0.85

Tested by

no test coverage detected