Goal
Provide one command that diagnoses the common causes of a bridge installation failing before the user has to inspect launchd logs or webhook traffic.
Proposed interface
Checks
- Supported Node version
- Claude Code/runtime availability and login state where safely detectable
- Required Linear application configuration
- OAuth redirect URI consistency
- Refresh-token store presence, shape, and permissions
KB_PATH existence and readability
- Session/inbox/outbox store writability
- Local health endpoint
- Public HTTPS webhook URL configuration
- Tailscale status when Tailscale is selected
Acceptance criteria
- Every check prints pass, warning, or fail with a remediation step.
- The command never prints access tokens, refresh tokens, client secrets, prompts, or issue contents.
- Exit status is nonzero for blocking failures.
- Checks are testable without contacting real Linear or Anthropic services.
Linear execution plan
GitHub remains the public source of truth. Private prioritization, dependencies, and agent execution are tracked in the Linear Agent Bridge OSS project.
Parent: MPI-1431
- MPI-1432 — Build a testable doctor command framework with safe output
- MPI-1433 — Add local runtime, OAuth, path, and store doctor checks
- MPI-1434 — Add health, webhook ingress, and Tailscale doctor checks
Implementation tickets are labeled agent-ready in Linear and include scope, acceptance criteria, dependencies, repository constraints, and required verification evidence. Public decisions and completion status should be mirrored back to this issue.
Goal
Provide one command that diagnoses the common causes of a bridge installation failing before the user has to inspect launchd logs or webhook traffic.
Proposed interface
Checks
KB_PATHexistence and readabilityAcceptance criteria
Linear execution plan
GitHub remains the public source of truth. Private prioritization, dependencies, and agent execution are tracked in the Linear Agent Bridge OSS project.
Parent: MPI-1431
Implementation tickets are labeled
agent-readyin Linear and include scope, acceptance criteria, dependencies, repository constraints, and required verification evidence. Public decisions and completion status should be mirrored back to this issue.