🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@nyosegawa/agent-ui-react

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nyosegawa/agent-ui-react

React hooks and components for Agent UI.

latest
Source
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

@nyosegawa/agent-ui-react

React preset, headless controllers, and transcript-first UI primitives for Agent UI.

Use this package when a host application wants to compose Agent UI in a React surface while keeping runtime ownership in the host.

Install

bun add @nyosegawa/agent-ui-react @nyosegawa/agent-ui-core @nyosegawa/agent-ui-codex

Import the public stylesheet once:

import "@nyosegawa/agent-ui-react/styles.css";

Common Imports

Use caseImport
Default provider and chat presetimport { AgentProvider, AgentChat } from "@nyosegawa/agent-ui-react";
Preset replacement map and defaultsimport { defaultAgentComponents, type AgentComponents } from "@nyosegawa/agent-ui-react";
Visual building blocksimport { AgentThreadView, AgentComposer } from "@nyosegawa/agent-ui-react/primitives";
Host-owned controllersimport { useAgentChatController } from "@nyosegawa/agent-ui-react/headless";
Bundled stylesheetimport "@nyosegawa/agent-ui-react/styles.css";

Transcript display policy is controlled with transcriptDisplay, not block-kind conditionals. The same semantic policy works on AgentChat, AgentThreadView, AgentMessageList, and useAgentTranscriptController():

<AgentChat transcriptMode="answer-focused" />

Use an explicit policy when the host needs category or role-specific behavior:

<AgentChat
  transcriptDisplay={{
    byCategory: {
      reasoning: { visibility: "hidden" },
      command: { density: "expanded", visibility: "collapsed" },
    },
    default: { density: "comfortable", visibility: "visible" },
  }}
/>

Package Boundary

This package provides three public entrypoints:

  • @nyosegawa/agent-ui-react for the default AgentProvider / AgentChat preset.
  • @nyosegawa/agent-ui-react/primitives for visual building blocks.
  • @nyosegawa/agent-ui-react/headless for hooks, controllers, and stable input/resource types.

It does not own routing, persistence, credentials, process lifecycle, or host-specific product workflows.

Customize the preset through public props, the components prop, primitives, headless controllers, and tokens. Import @nyosegawa/agent-ui-react/styles.css once; do not depend on private style chunks, internal .aui-* selectors, source modules, or generated Codex payloads as React API.

See the repository docs for current package exports and integration guidance: https://github.com/nyosegawa/agent-ui

FAQs

Package last updated on 01 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts