agent-stream
Installation
SKILL.md
Work on agent streaming: $ARGUMENTS
Before Starting
- Search OpenAI docs for streaming patterns:
- Use
mcp__openai-docs__search_openai_docswith query "Agents SDK streaming" for RunStreamEvent types - Use
mcp__openai-docs__search_openai_docswith query "Agents SDK RunStreamEvent" for event shape reference
- Use
- Read the streaming infrastructure across repos:
/Users/joshuashepherd/Desktop/dev/repos/ai-lab-agent/src/agents/shared/chatkit-bridge.ts—createStreamResponse()(SSE) +createPlainTextStreamResponse()(text)/Users/joshuashepherd/Desktop/dev/repos/ai-lab-agent/src/agents/shared/stream-utils.ts—extractTextDelta()from RunStreamEventsrc/agents/shared/enhanced-agent-bridge.ts— bridge streaming pipelinesrc/agents/shared/chatkit-bridge.ts— local ChatKit bridge
- Read the client-side transport:
src/hooks/custom/use-standalone-chat.ts—TextStreamChatTransport, session ID capture, 90s timeout fallback
Dual Stream Formats
SSE (Server-Sent Events) — Primary
Content-Type: text/event-stream