What to build
Track the native diagnostics API rollout for agent-device. The goal is a compact agent experience for native crash, issue, and performance evidence without creating a large command catalog or making every workflow look like a generic debug task.
Recommended taxonomy:
- Keep evidence primitives top-level:
logs, network, record, screenshot, perf, and react-devtools.
- Extend
perf into a native performance family: perf metrics, perf frames, perf cpu profile, perf memory snapshot, and perf trace.
- Preserve
perf --json and metrics --json as aliases for perf metrics.
- Treat
debug as optional workflow, bundle, and symbolication space only. Do not move low-level evidence collection under debug.
Prototype CLI shape:
agent-device perf metrics --json
agent-device perf frames --json
agent-device perf cpu sample --json
agent-device perf cpu profile start --out cpu.trace
agent-device perf cpu profile stop --out cpu.trace
agent-device perf memory sample --json
agent-device perf memory snapshot --out heap.artifact
agent-device perf trace start --kind perfetto --out app.perfetto-trace
agent-device perf trace start --kind xctrace --template "Time Profiler" --out app.trace
agent-device debug symbols --dsym MyApp.dSYM --artifact crash.log
Prototype structured input:
type PerfOptions = ClientCommandBaseOptions & {
area?: "metrics" | "frames" | "cpu" | "memory" | "trace";
action?: "sample" | "snapshot" | "profile-start" | "profile-stop" | "start" | "stop" | "report";
kind?: "simpleperf" | "perfetto" | "xctrace" | "heapprofd" | "memgraph";
template?: string;
sampleMs?: number;
durationMs?: number;
out?: string;
format?: "json" | "text";
includeRawArtifact?: boolean;
};
Acceptance criteria
Blocked by
None - tracking issue.
What to build
Track the native diagnostics API rollout for agent-device. The goal is a compact agent experience for native crash, issue, and performance evidence without creating a large command catalog or making every workflow look like a generic debug task.
Recommended taxonomy:
logs,network,record,screenshot,perf, andreact-devtools.perfinto a native performance family:perf metrics,perf frames,perf cpu profile,perf memory snapshot, andperf trace.perf --jsonandmetrics --jsonas aliases forperf metrics.debugas optional workflow, bundle, and symbolication space only. Do not move low-level evidence collection underdebug.Prototype CLI shape:
agent-device perf metrics --json agent-device perf frames --json agent-device perf cpu sample --json agent-device perf cpu profile start --out cpu.trace agent-device perf cpu profile stop --out cpu.trace agent-device perf memory sample --json agent-device perf memory snapshot --out heap.artifact agent-device perf trace start --kind perfetto --out app.perfetto-trace agent-device perf trace start --kind xctrace --template "Time Profiler" --out app.trace agent-device debug symbols --dsym MyApp.dSYM --artifact crash.logPrototype structured input:
Acceptance criteria
debugcommand.Blocked by
None - tracking issue.