React 开发者工具

Agentic React

Agentic React: 给 coding agents 精确的 React context。

在浏览器里选择真实 UI,捕获 component names、selectors、source locations、snippets、owner traces 和本地 MCP tools,让 agents 不靠猜也能改对代码。

选择工作流

从像素移动到归属明确的 React source。

工具包覆盖真实应用,追踪被选中的 components,并把这些 context 打包给 agent。每一帧都来自官方 playground。

第 1 张,共 5 张:查看完整选择工作流

Agentic React 从浏览器 UI 到 coding agent 的单选工作流

01 / 05

查看完整选择工作流

选择 live React UI,并把它的精确 source context 交给 coding agent。

聚焦此轮播后,可使用左右方向键浏览。

为什么重要

在第一次编辑前移除歧义。

Agentic React 把视觉意图转成 source-aware evidence,让 agent 不用按描述搜索整个应用也能行动。

01

选择真实 UI

在运行中的应用里选择一个或多个元素,然后用 Done 确认 pending set。

02

捕获 source context

收集 component names、stable selectors、source locations、nearby code 和 owner traces。

03

发送 agent-ready evidence

复制结构化 text 或 JSON,或通过本地 MCP endpoint 暴露选择结果。

开发者工作流

指向界面。追踪到 source。保持编辑范围受控。

浏览器 runtime 理解 live React tree。bundler adapters 添加本地 source lookup 和 MCP transport,同时把 bridge 保持在 development tooling 内。

  1. 01

    安装一个 adapter

    选择与应用 bundler 匹配的 package。

  2. 02

    选择 UI

    使用浏览器内 overlay 捕获你指的 components,然后确认 pending selection。

  3. 03

    把 context 传给 agent

    通过 copy、JSON 或本地 MCP bridge 发送精确的 source-aware context。

选择 adapter

为应用现有 bundler 安装。

每个 adapter 都包含 core browser runtime,并添加自己的本地 development bridge。

Vite

pnpm install @agentic-react/vite -D

Webpack

pnpm install @agentic-react/webpack -D

Next.js

pnpm install @agentic-react/next -D

社区反馈

source-aware selection 解锁什么。

使用方向键浏览

第 1 条反馈,共 4 条,来自 chukeng

Agentic React 把“页面上那个东西”替换成精确的 component、selector 和 source location。我的 coding agent 从证据开始,而不是靠猜。

chukeng

@chukeng · GitHub Star 用户

查看个人资料
01 / 04

下一步

别再让 agents 猜你指的是哪个 component。

为你的 stack 安装 adapter,并把下一次 UI 编辑所需的精确 React context 交给它。