Add Railway project safety section to AGENTS.md#962
Conversation
Registers the Railway MCP server (railway mcp via npx @railway/cli) in .mcp.json so Claude Code sessions pick it up automatically. Requires RAILWAY_API_TOKEN (or railway login) at runtime for the server to start. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016UrrzgrBtQRXvshDhvz3Hs
…-code-global-9ioe8n
Addresses review: unpinned npx would fetch the latest CLI from npm at runtime. Pin to the version verified against the MCP handshake. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016UrrzgrBtQRXvshDhvz3Hs
….0.0.1:41729/git/BigSimmo/Database into claude/install-claude-code-global-9ioe8n
Documents the canonical repo-to-Railway link (project Database, 5deaad0b-675a-4c13-978e-5ca2b5b877f9, psychiatry.tools) in the agent-loaded instructions, mirroring the Supabase project safety section: stale clinical-kb project warning, token conventions, and the provider confirmation boundary for deploys. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016UrrzgrBtQRXvshDhvz3Hs
…already merged)
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
📝 WalkthroughWalkthrough
ChangesRailway project safety documentation
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@AGENTS.md`:
- Line 196: Update the Railway authentication guidance in AGENTS.md to match
.env.example: describe RAILWAY_API_TOKEN as account- or workspace-scoped, and
describe RAILWAY_TOKEN as supporting CI or remote-agent deploys, redeploys, and
logs rather than only CI deploys; preserve the existing MCP registration
guidance.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 362da071-d076-4677-8417-870a7d2215e3
📒 Files selected for processing (1)
AGENTS.md
| - Production services `Database` (Next.js app tier, serves `https://psychiatry.tools`) and `worker` (ingestion) auto-deploy from `BigSimmo/Database` pushes to `main`; the `staging` environment runs the `app` service. | ||
| - The older Railway project `clinical-kb` (`4361c04f-dd3c-4ee9-9e97-49e4e5707b70`) is superseded with zero active deployments; treat it as stale — never `railway link` to it or deploy there. | ||
| - The similarly named Supabase project `Clinical KB Database` is the database/auth tier, not a Railway project; see "Supabase project safety" above. | ||
| - Railway CLI/MCP auth uses `RAILWAY_API_TOKEN` (personal account token; see `.env.example`). The project-scoped `RAILWAY_TOKEN` is for CI deploys only and cannot list or link projects. The project-scoped Railway MCP server is registered in `.mcp.json`. |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win
Match the token wording to .env.example.
.env.example documents RAILWAY_API_TOKEN as account- or workspace-scoped, not strictly a personal account token, and documents RAILWAY_TOKEN for CI/remote-agent deploys, redeploys, and logs—not only CI deploys. Please align this guidance to avoid incorrect credential selection.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@AGENTS.md` at line 196, Update the Railway authentication guidance in
AGENTS.md to match .env.example: describe RAILWAY_API_TOKEN as account- or
workspace-scoped, and describe RAILWAY_TOKEN as supporting CI or remote-agent
deploys, redeploys, and logs rather than only CI deploys; preserve the existing
MCP registration guidance.
Summary
AGENTS.md, mirroring the existing "Supabase project safety" section, so every agent session loads the canonical repo↔Railway link instead of rediscovering it:Database(5deaad0b-675a-4c13-978e-5ca2b5b877f9), servicesDatabase(→psychiatry.tools) andworkeronmainauto-deploy,stagingenv runsapp— with a pointer todocs/deployment-architecture.md§1 for full topology.clinical-kb(4361c04f…) is superseded, never link or deploy to it.Clinical KB Database.RAILWAY_API_TOKENfor CLI/MCP vs project-scopedRAILWAY_TOKENfor CI) and a reminder that Railway mutations fall under the repo's provider confirmation boundary.BigSimmo/Database@main), and the psychiatry.tools deployment (SUCCESS, HTTP 200) all matchdocs/deployment-architecture.md.Note on branch history: PR #909 previously merged from this branch name; the branch was restarted from latest
mainper repo convention, and the pre-squash history is tied off with anours-strategy merge (content unchanged) because force-push is not permitted in this session. The diff vsmainis exactly the 13-line AGENTS.md addition.Verification
AGENTS.md(13 added lines); no source, test, config, or build surface is touched, so the local verification gates do not apply.Risk and rollout
Clinical Governance Preflight
Not applicable — no ingestion, answer generation, search/ranking, source rendering, document access, privacy, production env, or clinical output is touched.
Notes
intelligent-joyRailway project has all six services failing their latest builds, and four dormant June projects (Forms, Yarning, Therapy, Medications) account for ~70% of the current Railway bill.🤖 Generated with Claude Code
https://claude.ai/code/session_016UrrzgrBtQRXvshDhvz3Hs
Generated by Claude Code
Summary by CodeRabbit