{
  "slug": "railway-setup-agent-configures-railway-agent-tooling-81f1c52d64b1",
  "title": "railway setup agent configures Railway agent tooling",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-07T06:30:35.000Z",
  "announced_at": "2026-05-07T06:30:35.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When Railway agent tooling is not configured, run `railway setup agent -y` to configure detected tools and skip prompts. Use `--agent <name>` to target a tool or `--remote` for the CLI-authenticated hosted MCP setup; MCP can also be installed separately.",
    "examples": [
      "railway setup agent -y",
      "railway setup agent -y --remote",
      "railway mcp install --agent <agent> --remote"
    ],
    "gotchas": [
      "Version: v4.48.0",
      "-y, --yes: Skip prompts and accept detected defaults; also used automatically when stdout is not a terminal.",
      "--agent <agent>: Select a coding tool to configure.",
      "--remote: Connect to `mcp.railway.com` through the CLI using the `railway login` session; documented as the default and a compatibility alias in current docs.",
      "Prerequisite: Install the Railway CLI before running setup.",
      "Prerequisite: Run `railway login` if not authenticated; setup skips the interactive login flow in non-interactive mode.",
      "`-y/--yes` performs detected-only, non-interactive setup.",
      "Non-interactive setup is auto-engaged when stdout is not a TTY.",
      "Codex is skipped under `--remote` because it is stdio-only.",
      "The interactive harness picker includes Claude Code, Cursor, OpenAI Codex, OpenCode, and the universal `.agents` fallback.",
      "Docs conflict: Current Railway setup documentation says `--remote` is the default compatibility alias; the v4.48.0 release note describes it as selecting remote MCP instead of local stdio. Current docs may describe newer behavior."
    ]
  },
  "why_it_matters": "Set up Railway agent tooling for a coding environment that has not been configured yet.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v4.48.0",
    "https://github.com/railwayapp/cli/pull/872",
    "https://docs.railway.com/cli/setup",
    "https://github.com/railwayapp/cli"
  ],
  "rank": 0.96049,
  "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-182ff820b07ec0a8-0:gate",
    "evidence_hash": "2f7957bada144702d2e2c6da10bd9fd358684560ae4aa9335008a09b8f8c8d52"
  },
  "review": {
    "draft_hash": "743f84e11ff8facc8cf99efbb858d26edc5a383be8d8f4e1ecc404b7de9ba367",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
