# Crate Wait States > Open-source React components for the time between sending an AI prompt and receiving a finished answer. `useAgentStatus` reads a Vercel AI SDK v5+ `useChat` return value and automatically maps thinking, reasoning, sources, tool use, streaming, stalled, error, and done states. Made by [One Roll Studios](https://onerollstudios.com). MIT licensed. Install everything: `npx shadcn@latest add https://crate.onerollstudios.com/r/all.json` ## Start Here - [useAgentStatus](https://crate.onerollstudios.com/llms/use-agent-status.md): Maps AI SDK status, reasoning, sources, text, and tool parts to wait states. - [AgentState](https://crate.onerollstudios.com/llms/agent-state.md): A state wrapper that renders and transitions the complete wait-state set. - [CrateProvider](https://crate.onerollstudios.com/llms/crate-provider.md): Sets labels and locale for every crate wait state, so all text can be replaced or translated. ## Components - [Thinking](https://crate.onerollstudios.com/llms/thinking.md): Pulsing dots with time-based thinking and cancel states. - [Streaming](https://crate.onerollstudios.com/llms/streaming.md): Streaming text with a soft cursor. - [ToolCall](https://crate.onerollstudios.com/llms/tool-call.md): Animated single or multi-step tool activity. - [Stalled](https://crate.onerollstudios.com/llms/stalled.md): A calm state for streams with no new content. - [ErrorState](https://crate.onerollstudios.com/llms/error.md): An error message with an accessible retry action. - [Done](https://crate.onerollstudios.com/llms/done.md): A quiet completion check that fades away. - [ReasoningTrace](https://crate.onerollstudios.com/llms/reasoning-trace.md): A collapsible streaming reasoning trace. - [Sources](https://crate.onerollstudios.com/llms/sources.md): Progressively revealed citation chips. - [AgentPlan](https://crate.onerollstudios.com/llms/agent-plan.md): A self-updating plan with progress and failures. - [Approval](https://crate.onerollstudios.com/llms/approval.md): A human approval prompt with optional expiry. - [Queue](https://crate.onerollstudios.com/llms/queue.md): Queue position and rate-limit countdown states. - [FileProcessing](https://crate.onerollstudios.com/llms/file-processing.md): File upload and processing stage progress. ## Stream Adapters - [AgentStream](https://crate.onerollstudios.com/llms/agent-stream.md): Streams any AI backend into useAgentStatus: one small event format, server-sent events in and out (including a raw SSE adapter), and the useAgentStream hook. - [OpenAI Agents SDK Adapter](https://crate.onerollstudios.com/llms/openai-agents-adapter.md): Converts a streamed OpenAI Agents SDK run into agent stream events for useAgentStatus. - [LangChain Adapter](https://crate.onerollstudios.com/llms/langchain-adapter.md): Converts LangChain and LangGraph streamEvents into agent stream events for useAgentStatus. ## For Coding Agents - [Crate Agent Skill](https://crate.onerollstudios.com/llms/crate-skill.md): Teaches coding agents (Claude Code, Cursor, Codex) when to use each Crate component, how to install it, and how to wire it to the app's AI stream. ## Registry - [Crate Wait States](https://crate.onerollstudios.com/r/all.json): Every wait-state component and the useAgentStatus hook. - [thinking](https://crate.onerollstudios.com/r/thinking.json) - [streaming](https://crate.onerollstudios.com/r/streaming.json) - [tool-call](https://crate.onerollstudios.com/r/tool-call.json) - [stalled](https://crate.onerollstudios.com/r/stalled.json) - [error](https://crate.onerollstudios.com/r/error.json) - [done](https://crate.onerollstudios.com/r/done.json) - [reasoning-trace](https://crate.onerollstudios.com/r/reasoning-trace.json) - [sources](https://crate.onerollstudios.com/r/sources.json) - [agent-plan](https://crate.onerollstudios.com/r/agent-plan.json) - [approval](https://crate.onerollstudios.com/r/approval.json) - [queue](https://crate.onerollstudios.com/r/queue.json) - [file-processing](https://crate.onerollstudios.com/r/file-processing.json) - [crate-provider](https://crate.onerollstudios.com/r/crate-provider.json) - [agent-state](https://crate.onerollstudios.com/r/agent-state.json) - [use-agent-status](https://crate.onerollstudios.com/r/use-agent-status.json) - [agent-stream](https://crate.onerollstudios.com/r/agent-stream.json) - [openai-agents-adapter](https://crate.onerollstudios.com/r/openai-agents-adapter.json) - [langchain-adapter](https://crate.onerollstudios.com/r/langchain-adapter.json) - [crate-skill](https://crate.onerollstudios.com/r/crate-skill.json)