Tier 2: Remote Debugging
Tier 2: Remote Debugging
Section titled “Tier 2: Remote Debugging”Tier 2 lets the agent investigate remote or production-like failures without asking you to SSH in and paste logs.
You Provide / Confirm
Section titled “You Provide / Confirm”- Create or select the target Host in the desktop app.
- Choose the install path: generate a command to run on the target machine, or push the install over SSH.
- Provide hints for the target service and logs, such as service name, port, log file, journalctl unit, or start command.
- Approve the remote deployment and log source config generated by the agent.
Generated install commands encode host identity and bootstrap details such as --host-id, --transport direct|tunnel, --bind-address, --port, --bootstrap-token, and --require-auth. If you choose SSH push, the desktop app uses that Host’s SSH credentials to install and start superdev-agent.
Host ID Discipline
Section titled “Host ID Discipline”When writing remote host_ids, the agent must first call list_hosts. It may only use non-local hosts[].id values where is_self=false. Display names, SSH hostnames, IPs, and user-provided labels are not stable IDs.
The Agent Does
Section titled “The Agent Does”- Produces remote deployment / log source config from the Host plus service and log hints, previews it before writing, and waits for approval when required.
- Reads remote logs through the same
tail_logs,search_logs, andget_log_contexttools. - Uses
diagnose_service,analyze_trace_logs, andsummarize_error_windowto collect deterministic evidence. - Writes a root-cause explanation with evidence, reasoning, confidence, and the next verification step.
Boundary
Section titled “Boundary”The remote debugging path is not “Agent tells the human to SSH and tail.” SuperDev exists so the agent and human see the same aggregated runtime evidence.