@aws/agent-inspector

中文文档
0.6.3发布于 2026/11/06Apache-2.0ES Module近 30 天下载 7.5万

A visual inspector for debugging and monitoring AI agents

原始使用文档
文档目录6 节
  1. Overview
  2. Features
  3. Getting Started
  4. Standalone Development
  5. Security
  6. License

AgentCore agent inspector

A visual inspector for debugging and monitoring agents

License

Overview

AgentCore agent inspector is a web-based UI for interacting with and inspecting AI agents during local development with the AgentCore CLI. It provides a chat interface, real-time trace visualization, tool call inspection, token usage tracking, and resource exploration, giving you full visibility into what your agent is doing and why.

Note: This package (@aws/agent-inspector) contains prebuilt static assets for the Agent Inspector web UI. It is intended to be served by the AgentCore CLI and is not designed to be used as a standalone application.

Features

  • Chat interface — Send messages to your agent and view streaming responses
  • Trace timeline — Visualize the full invocation timeline, including LLM calls and tool use
  • Tool inspection — Browse MCP tools and view tool call inputs/outputs
  • Token usage tracking — Monitor token consumption across invocations
  • Resource panel — Inspect agent resources (memory, credentials, etc.)
  • Agent selection — Switch between multiple agents in your project

Getting Started

Agent Inspector is bundled with the AgentCore CLI. When you run agentcore dev, the inspector UI is served automatically — no separate installation required.

Standalone Development

To develop the inspector UI itself:

# Install dependencies
npm install

# Start dev server
npm run dev

# Build for production
npm run build

# Run tests
npm test

# Lint and format
npm run lint
npm run format

## Run checks before commit
npm run check

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

版本与发布记录

@aws/agent-inspector 共发布 12 个版本,首次发布于 2026/04/17;过去 12 个月发布了 12 个版本。

版本发布日期距今
0.6.3latest2026/11/061 天前
0.6.22026/09/231 个月前
0.6.12026/06/234 个月前
0.6.02026/06/184 个月前
0.5.02026/06/045 个月前
0.4.22026/05/195 个月前

关于 @aws/agent-inspector 的常见问题

@aws/agent-inspector 是什么?

A visual inspector for debugging and monitoring AI agents

如何安装 @aws/agent-inspector?

在项目目录运行 npm install @aws/agent-inspector,或使用 pnpm add / yarn add / bun add。

@aws/agent-inspector 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/aws__agent-inspector 是否存在。

@aws/agent-inspector 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@aws/agent-inspector 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@aws/agent-inspector 可以商用吗?

@aws/agent-inspector 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@aws/agent-inspector 的下载量有多少?

根据 npm 官方下载统计,@aws/agent-inspector 在 2026/10/08 – 2026/11/06 这 30 天内被下载 75,106 次,日均约 2,504 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aws/agent-inspector 还在维护吗?

最新版本 0.6.3 发布于 2026/11/06(1 天前);至今共发布 12 个版本,其中过去 12 个月发布了 12 个;首次发布于 2026/04/17。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。