AI Agent Workspace
motiq/ai-agent-workspaceFreeBlock
A composed, app-controlled AI agent workspace that composes Agent Run Timeline + Tool Call Activity + AI Response Stream + Source Citation Rail into one realistic full page; the app owns every state and it never simulates a model.
Live preview
live · rendered by the registry
Rendered by motiq on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.motiq.dev/r/ai-agent-workspace.jsonSource
1"use client";23import * as React from "react";45import { cn } from "@/lib/utils";6import {7 getStatusMeta,8 statusVars,9 useControllableState,10 type StatusTone,11} from "@/lib/motiq";12import {13 AgentRunTimeline,14 type AgentRun,15 type RunStep,16 type RunStage,17 type StepStatus,18} from "@/components/motiq/agent-run-timeline";19import {20 ToolCallActivity,21 type ToolCall,22 type ToolCallStatus,23} from "@/components/motiq/tool-call-activity";24import {25 AiResponseStream,26 type ResponseSegment,27 type StreamState,28 type StreamSource,29} from "@/components/motiq/ai-response-stream";30import {31 SourceCitationRail,32 CitationMarker,33 type CitationSource,34} from "@/components/motiq/source-citation-rail";3536/**37 * AiAgentWorkspace — a composed, full-page AI agent workspace built from four38 * released Motiq components:39 * • AgentRunTimeline — the run, step-by-step, with approval + retry controls40 * • ToolCallActivity — the same run seen as a live tool-call inspector41 * • AiResponseStream — the streamed answer, with inline citations42 * • SourceCitationRail — interactive, claim-level source attribution43 *44 * It is strictly a *presentation* composition. It never talks to a model, never45 * executes an agent, never retrieves anything, and never fabricates a result.46 * The application owns the workspace state end to end; this block simply renders47 * whatever `phase` + `dataset` it is given and reports user intent48 * (approve / reject / retry / cancel / stop) back by moving the phase. It ships49 * with clearly-fictional inline demo data so it renders standalone, and every50 * override is a prop so a host app can drive the exact same UI from real state.51 *52 * The demo state machine has six required states — Idle · Running · Waiting for53 * approval · Completed · Failed · Cancelled — each of which fully determines the54 * state of all four child components. Callbacks transition between phases:55 * approve → completed reject → cancelled56 * retry → running cancel → cancelled stop → cancelled57 *58 * Hydration-safe: there is no `Date.now()` / `Math.random()` / `new Date()` at59 * module scope, during render, or in a state initializer — every timestamp is a60 * fixed epoch constant, so the server and client render identical markup.61 * Reduced-motion, forced-colors, and dark mode are all inherited from the62 * children. Clean-room original.63 */6465// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from motiq
All 100 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Agent Operations Heroagent-operations-hero | motiq | Blocks | Free | 1 dep | |
| AI Interface Packai-interface-pack | motiq | Blocks | Free | 1 dep | |
| Collaboration Packcollaboration-pack | motiq | Blocks | Free | 1 dep | |
| Collaborative Launch Herocollaborative-launch-hero | motiq | Blocks | Free | 1 dep | |
| Collaborative Review Workspacecollaborative-review-workspace | motiq | Blocks | Free | 1 dep | |
| Data Motion Packdata-motion-pack | motiq | Blocks | Free | 1 dep | |
| Deployment Command Centerdeployment-command-center | motiq | Blocks | Free | 1 dep | |
| Deployment Control Herodeployment-control-hero | motiq | Blocks | Free | 1 dep |
