@re-agentation/probe
v0.2.1
Published
React Native dev-only probe overlay — tap a component, annotate it, batch into a single AI edit request. Part of Re-agentation.
Maintainers
Readme
@re-agentation/probe
Tap a component in your React Native simulator, describe the change in plain language, and Claude edits the right file — while your app is still running.
The in-app overlay for Re-agentation — a dev-only probe + Metro middleware + MCP server. This package is the on-device piece: the floating probe, tap-to-capture, the comment/batch sheets, the change History (search · before/after · Undo/Redo/Delete), and the magic-dust apply effect.
👉 See the root README for the full story, architecture, and setup.
Install
pnpm add -D @re-agentation/probe @re-agentation/metro @re-agentation/mcpPeer deps: react ≥ 18, react-native ≥ 0.76 (New Architecture / Fabric), react-native-svg ≥ 13. Optional: react-native-image-picker ≥ 7 (image/video attachments).
Use
// App.tsx — gate the require behind __DEV__ so the probe is tree-shaken
// out of production builds entirely.
const AgentationProbe: () => React.ReactElement | null = __DEV__
? require('@re-agentation/probe').AgentationProbe
: () => null
export default function App() {
return (
<>
<YourApp />
{__DEV__ && <AgentationProbe />}
</>
)
}Then add the @re-agentation/metro middleware and run the re-agentation-apply watcher (or drive it from Claude Code over MCP). Full setup in the root README.
Production safety
Dev-only by construction: the probe returns null when __DEV__ is false, the __DEV__ ? require(...) pattern lets Metro tree-shake the package out of release bundles, and its backend only exists in the Metro dev server. Zero telemetry.
Compatibility
- React Native 0.76+ · New Architecture (Fabric) · React 18 & 19
- Hermes & JSC · iOS Simulator + Android Emulator (real device works with a LAN host)
License
MIT © Jaehwa Jung & Re-agentation contributors
