Understand current flow
Detect routes, links, and observed runtime transitions so you can inspect the app that exists today instead of guessing from scattered prompts.
UX flow workspace for AI-built apps
AgentUX maps how screens connect right now, lets you shape the intended next flow, and exports that UX plan back into your coding agent as a structured spec.
npm install @yamparala27/agentux -D
Why AgentUX
Detect routes, links, and observed runtime transitions so you can inspect the app that exists today instead of guessing from scattered prompts.
Rearrange a journey semantically by deciding what should happen next, not just by moving boxes around for presentation.
Send a human-readable and machine-friendly flow spec back into your coding agent so the next build step follows a UX model, not fragmented instructions.
The product loop
Drop AgentUX into the project and let it inspect routes, edges, and runtime paths.
See where users enter, branch, stall, or fall into missing next steps.
Mark what the experience should become before asking AI to implement the next round.
Give your agent a structured flow handoff it can build against with much less drift.
Install
npm install @yamparala27/agentux -D
Add AgentUX as a dev dependency in the app you are actively building with AI.
import { AppMap } from '@yamparala27/agentux';
function App() {
return (
<>
<YourApp />
<AppMap />
</>
);
}
A floating button appears in development so you can inspect the current screen graph.
import { analyzeProject } from '@yamparala27/agentux/analysis';
const data = await analyzeProject('./');
Use static analysis when you want more complete route coverage before visiting every page.
Who it helps
Clean up the first-run path from landing page to signup, onboarding, bank connect, and dashboard.
Untangle settings, billing, team management, and audit flows before navigation turns into patchwork.
Compare guest checkout and signed-in checkout paths, then tell AI which flow should become the default.
Flow spec export
# AgentUX Flow Spec
## Product Goal
Help a user reach a useful dashboard after connecting their bank.
## Current Flow
- Home -> Sign up -> Dashboard
- Home -> Sign in -> Dashboard -> Budgets
## Intended Flow
- Home -> Sign up -> Onboarding -> Connect bank -> Dashboard
- Returning users: Home -> Sign in -> Dashboard
## Requested Changes
1. Add onboarding after first sign-up
2. Make bank connection mandatory before dashboard
3. Surface a clear next step on dashboard
```json
{
"nodes": ["home", "signup", "onboarding", "connect-bank", "dashboard"],
"edges": ["home->signup", "signup->onboarding", "onboarding->connect-bank"]
}
```
FAQ
No. The package is a React and TypeScript library that can be installed into Next.js or React Router apps.
It helps you see the app flow you have today, then define the intended flow you want next before prompting AI again.
No. AgentUX is for development-time UX understanding, not production session replay or funnel analytics.
Humans review the summary quickly, while coding agents work better when the same flow is also represented as stable node and edge data.