What is Veya?
Veya is an agent development environment: the runtime an agent uses to understand, experience, evaluate and improve the software it is writing.
An agent that wrote a screen can still be unable to answer basic questions about it:
- What is this component for?
- What state is it in, and what put it there?
- Which request feeds it?
- Why did it stay in a loading state?
- Which file should I change?
A screenshot carries pixels. A source tree carries intent. Neither carries what the product actually did. Veya closes that gap by making the running application the subject.
The three gaps
- Intent. A screenshot does not say what a screen was supposed to do.
- Diagnosis. A failed state does not say which component, request, state transition or source line produced it.
- Verification. After a change, did the product actually behave differently?
Veya answers all three in one environment because the app hosts the browser, the evidence store, the signal rules and the agent interface.
What runs where
| Surface | Package or app | What it does |
|---|---|---|
| Desktop app | apps/desktop | Hosts the human and agent product windows, console, hub, MCP endpoint and CDP connections. |
| Runtime SDK | @veya/runtime, @veya/react, @veya/vite-plugin | Development-only sensors inside the page: components, state, interactions, network, errors and source locations. |
| Agent interface | @veya/mcp | Ten MCP tools over Streamable HTTP at http://127.0.0.1:7317/mcp. |
| Quality | @veya/signals | Deterministic rules R001–R008 with evidence. |
The product windows are real Chromium windows owned by the app. The human window uses the default profile; the agent window uses its own persistent profile. CDP reports what each page is; the runtime SDK reports what it means. The hub joins both channels into one session per window.
The loop
click in the product
→ interaction.started runtime, with a trace id
→ network.request.completed runtime, status and duration
→ state.changed runtime, only the keys that moved
→ snapshot component tree with source locations
↓
hub evidence store (JSONL + artefacts)
↓
signals R001–R008 (deterministic, evidence attached)
↓
context compiler — budgeted brief, cursor for the next diff
↓
MCP → the agent reads the chain and edits the sourceA trace is every event sharing a traceId, ordered by sequence. It is the causal chain an agent reads when it asks why the product did something.
Who it is for
- Developers running coding agents who are tired of an agent declaring a UI finished from a screenshot.
- Agent tooling authors who need a stable runtime protocol instead of reverse engineering a browser.
- Teams who want deterministic, evidence-backed product checks in the same loop as code generation.
What v0.1 does
- Opens a human product window and an agent product window with separate persistent profiles.
- Registers each instrumented Vite + React page as a session tagged
humanoragent. - Reports components with source locations, business state, interactions, network, errors and diagnostics.
- Captures CDP evidence: screenshots, geometry, accessibility names and viewport probes.
- Stores events and artefacts, and evaluates R001–R008.
- Exposes ten MCP tools over HTTP.
- Verifies an ordered click-and-expect step list as one action result.
- Compiles a budgeted context brief with incremental diffs.
- Renders a console with session, timeline, components, agent context and signals.
What v0.1 does not do
- It is not a Chromium fork and does not drive your everyday browser profile.
- Only Vite + React apps with the plugin create a session in v0.1. A page without the runtime can load in either product window, but it has no component tree, state, events or source mapping to inspect.
- There is no LLM visual or UX judge. Signals are deterministic; judgement is a later, separate layer.
- There is no scenario DSL, fault injection or state-space exploration yet.
- There is no packaged, signed desktop build and no published npm package.
- There is no shipped CLI in this checkout. The app is the entry point; MCP is the agent interface.
- There is no Fast Refresh: Vite+ inlines Vite, so
@vitejs/plugin-reactcannot resolve against it and the Veya plugin stays self-contained. Saving a file reloads the page.
Design records and shipped behaviour
The design documents record the architecture and the decisions behind it. The user guide describes what the current code actually does. When they differ, treat this guide as the behaviour reference and the decision log as the design record.