{
  "slug": "railway-ca-ssh-auto-creates-an-agent-when-none-exist-07aa5d988103",
  "title": "railway ca ssh auto-creates an agent when none exist",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-11T07:38:35.000Z",
  "announced_at": "2026-08-11T07:38:35.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When the account has no cloud agents and a default project is configured, run `railway ca ssh` to create an agent and open a shell. Use `--environment <environment>` to scope the command; if no default project is configured, set one up with `ca create` or `ca setup`.",
    "examples": [
      "railway ca ssh",
      "railway ca ssh <agent>",
      "railway ca setup"
    ],
    "gotchas": [
      "Version: v5.37.0",
      "<agent>: Agent selector; names or IDs are accepted. The guide documents this selector for opening a shell.",
      "--environment <environment>: The release note says it scopes first-agent auto-creation. The CLI guide does not document this flag for `ca ssh`.",
      "Prerequisite: Cloud Agents access is required.",
      "Auto-creation applies only when the account has no agents; a mistyped agent name still fails.",
      "A default project must be configured unless `--environment` scopes the command."
    ]
  },
  "why_it_matters": "Start a cloud agent session with Railway CLI when the account has no agents and a default project is configured.",
  "before": "The release note says `railway ca ssh` previously errored and told users to create an agent with `railway ca create`.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v5.37.0",
    "https://github.com/railwayapp/cli/pull/1078",
    "https://github.com/railwayapp/cli/blob/master/docs/cloud-agents.md"
  ],
  "rank": 0.93034,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-3f5ad2645c011dd0-0:gate",
    "evidence_hash": "97ace99fb563b4430607a7ccefb172b3fcd9cc8bbf7dab92e61847d780b197de"
  },
  "review": {
    "draft_hash": "48155e40b23f5eb19137ce0b610d5dea89b91cfbab265b16367b4c68115f0933",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.70 (>= 0.6 needed)."
  }
}
