Skip to content

agent-control

@fungi.computer/shiitake


@fungi.computer/shiitake / agent-control

AgentControlAgent = Readonly<{ agentId: string; name: string; }>

One existing Agent visible within the caller’s authorized project or Team.


AgentControlDirectory = Readonly<{ list: (signal) => Promise<readonly AgentControlAgent[]>; create?: (input, signal) => Promise<AgentControlAgent>>; open: (agentId, signal) => Promise<Readonly<{ agent: ShiitakeAgent; release: () => Promise<void>>; }>>; }>

Host-owned discovery and per-operation access to ordinary Agents.

waitForAgentTerminal(session, commandId, timeoutMs, signal, startedAt?): Promise<Readonly<{ commandId: string; outcome: "completed" | "failed" | "cancelled" | "interrupted"; }>>

Observe one durable terminal; timeout or abort closes observation, not the work.

ShiitakeSession

string

number

AbortSignal

number = ...

Promise<Readonly<{ commandId: string; outcome: "completed" | "failed" | "cancelled" | "interrupted"; }>>


createAgentControlSource(directory): CapabilitySource

Compose one authorized Agent-control projection for a single run lease.

AgentControlDirectory

CapabilitySource