X4
An agent PR you cannot verify is a liability, not leverage.
X4 gives humans and agents one operational layer for multi-repo workspaces, remote validation, private previews, and GitHub workflows. Every change ships with deterministic, machine-generated evidence, so review means reading proof instead of trusting prose.
Multi-repo agent work fragments fast.
Each agent invents its own worktree setup.
Each repo has different validation and preview habits.
PR evidence is hand-written and hard to trust.
Remote test infrastructure has no consistent state model.
Issue-to-PR automation runs without shared guardrails.
One bootstrap flow, shared branch naming, one status model.
Repo policy and registry files define validation per repo.
Evidence is generated by deterministic runs, then attached.
Control plane tracks leases, workers, submissions, and cleanup.
Humans, IDEs, and agents use the same commands and paths.
Three layers. Hard boundaries.
Mastra coordinates. X4 executes. The agent reasons. No layer reimplements another, which keeps the evidence auditable.
Mastra orchestrator
GitHub events, workflow state, issue planning, PR follow-up, comments, checks, and draft PRs.
Mastra overviewX4 CLI + control plane
Worktrees, sandboxes, tailnet previews, deterministic remote tests, evidence primitives, and worker leases.
Remote executionAgent and IDE adapters
Codex, Cursor, and VS Code inspect, edit, and operate through X4 instead of reinventing workflows.
IDE integrationA workflow built for stateful software.
Normalize the work item
Turn a PM spec, GitHub issue, or follow-up comment into a scoped X4 work item with repo set, policy, and risk level.
Prepare the workspace
Bootstrap all attached repos, name branches consistently, install dependencies, and generate agent context.
Run governed implementation
Agents and humans edit through the same CLI contract, with secrets, sandboxes, and service access controlled by X4.
Publish proof
Remote validation, preview URLs, logs, artifacts, and check runs become the evidence package for review.