Skip to main content
IntermediateOptional IntegrationsEst. Time: 10-15 min

Optional Android Companion Remote Monitoring

Monitor active AI agent sessions, build status, and machine fleet health in real-time from a secondary Android tablet or phone.

The Problem

Developers switching windows constantly lose sight of background test builds, long-running agent tasks, or fleet machine states.

Who It Is For

Developers with a desk-mounted tablet, secondary Android phone, or multi-device workstation setup.

Prerequisites & Tools

Prerequisites Checklist:
  • Android device running Android 10+
  • DevWorkflow Companion APK installed
  • Tailscale or local Wi-Fi connectivity
Tool / CommandTypeRole in Tutorial
devwf paircliGenerate encrypted pairing challenge for Android device
devwf doctorcliVerify monitor service connectivity

Example Task Contract

Exact start_task payload representing this workflow in DevWorkflow local-first governance.

AI Tool Call: start_task payload
{
  "description": "Pair Xiaomi Pad 6 tablet as dedicated live engineering monitor cockpit",
  "type": "other",
  "plan": [
    "Generate pairing code on main developer workstation",
    "Input pairing challenge on Xiaomi Pad 6 Companion app",
    "Verify live session and build telemetry updates"
  ],
  "definitionOfDone": [
    "Android device displays green LIVE connection indicator",
    "Active session cards reflect real-time plan step changes",
    "Companion runs in read-only telemetry mode with zero impact on workstation performance"
  ]
}

Step-by-Step Tutorial Workflow

Follow these sequential actions with validated copyable commands and expected outputs.

1

Generate Pairing Challenge

Run devwf pair from your workstation terminal to generate an encrypted pairing challenge.

Copyable Command
Terminal Command
devwf pair --url http://192.168.1.50:3100 --json
Expected Terminal Output
{
  "pairingCode": "DW-8492-7104",
  "qrPayload": "devwf://pair?server=http%3A%2F%2F192.168.1.50%3A3100&code=DW-8492-7104",
  "expiresIn": 300
}
2

Pair Device in Companion App

Open the DevWorkflow Companion app on your Android device and scan the QR code or enter the pairing code.

Code / Tool Payload
Execution Payload
// On Android Tablet:
// 1. Open DevWorkflow Companion
// 2. Tap "Pair New Workstation"
// 3. Scan QR code or enter code DW-8492-7104
3

Live Cockpit Monitoring

The companion displays active sessions, build progress, test outcomes, and connected machines in real time.

Copyable Command
Terminal Command
devwf list --json
Expected Terminal Output
{"activeSessions": 3, "connectedMachines": ["workstation-main", "workstation-mac", "workstation-server"]}

Verification Steps

Verify that your work genuinely satisfies the task contract before closing.

Check companion screen to confirm live session card shows active task
Trigger test run on workstation and observe progress bar updating on tablet

Limitations & Troubleshooting

Issue: Android app goes to sleep when running in background
Resolution: Configure MIUI/Android Battery Saver settings to 'No restrictions' for the DevWorkflow Companion app.