Agentic React

给 coding agents 精确的 React context。

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

Context
感知 component 和 source
选择
单个或多个 targets
Adapters
Vite、Webpack、Next.js
Transport
Copy、JSON 或本地 MCP

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

浏览器 runtime 读取 live React tree,bundler adapters 补上 source lookup 和 MCP。

  1. 01

    安装一个 adapter

    选择与应用 bundler 匹配的 package。

  2. 02

    选择 UI

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

  3. 03

    把 context 传给 agent

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

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

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

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

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

  1. 选择真实 UI

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

  2. 捕获 source context

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

  3. 发送 agent-ready evidence

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

为应用现有 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

仅用于开发的 bridge

Adapters 把本地 source lookup 和 MCP transport 保持在 development tooling 内。

  • core runtime 处理浏览器选择和 React inspection。
  • Adapters 把 runtime 连接到本地 source files、持久化 settings 和 MCP endpoint。
  • Production bundles 不需要本地 source bridge。

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

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