Title: feat: persistent Ralph — wire squad watch + enable heartbeat cron · Issue #236 · github/squad · GitHub
Open Graph Title: feat: persistent Ralph — wire squad watch + enable heartbeat cron · Issue #236 · github/squad
X Title: feat: persistent Ralph — wire squad watch + enable heartbeat cron · Issue #236 · github/squad
Description: Feature: Persistent Ralph — continuous work monitoring between sessions Problem Ralph runs in a loop during a Copilot session but stops when the session ends. There's no way to keep Ralph monitoring between sessions. Additionally, squad ...
Open Graph Description: Feature: Persistent Ralph — continuous work monitoring between sessions Problem Ralph runs in a loop during a Copilot session but stops when the session ends. There's no way to keep Ralph monitorin...
X Description: Feature: Persistent Ralph — continuous work monitoring between sessions Problem Ralph runs in a loop during a Copilot session but stops when the session ends. There's no way to keep Ralph monit...
Opengraph URL: https://github.com/github/squad/issues/236
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: persistent Ralph — wire squad watch + enable heartbeat cron","articleBody":"## Feature: Persistent Ralph — continuous work monitoring between sessions\n\n### Problem\nRalph runs in a loop during a Copilot session but stops when the session ends. There's no way to keep Ralph monitoring between sessions. Additionally, `squad watch` is implemented (356 lines in watch.ts) but not wired into the CLI, so users can't invoke it.\n\n### Current State\nThree layers of Ralph exist but two are broken:\n\n| Layer | Status | Issue |\n|-------|--------|-------|\n| **In-session** | ✅ Works | Ralph loops while you're in a Copilot session |\n| **Local watchdog** (`squad watch`) | ❌ Not wired | `watch.ts` is built but `cli-entry.ts` logs \"pending\" instead of calling it |\n| **Cloud heartbeat** (GitHub Actions) | ❌ Cron disabled | `squad-heartbeat.yml` has the cron schedule commented out |\n\n### Proposed Solution\n\n**Phase 1: Wire `squad watch` into CLI** (same pattern as #224)\n- Route `watch` command in `cli-entry.ts` to the existing `watch.ts` implementation\n- Add `--interval N` flag (default 10 min) for polling frequency\n- Add help text entry\n\n**Phase 2: Enable heartbeat cron**\n- Uncomment cron schedule in `squad-heartbeat.yml` (default: every 30 min)\n- Document recommended intervals for different team sizes\n\n**Phase 3: Daemon/service support** (future)\n- PM2 integration for local persistent daemon\n- systemd unit file for Linux servers\n- Windows Task Scheduler support\n- Container-based deployment option\n\n### Approaches Considered\n\n| Approach | Pros | Cons |\n|----------|------|------|\n| `squad watch` (foreground) | Simple, portable, already built | Dies when terminal closes |\n| GitHub Actions cron | Free, no infra, already built | 30-min minimum interval, limited to GitHub repos |\n| PM2/systemd daemon | Survives reboots, proper service | Requires PM2/systemd knowledge |\n| OS scheduled task (cron/Task Scheduler) | Native, no dependencies | Platform-specific setup |\n| Docker container | Portable, isolated | Requires Docker |\n\n### Acceptance Criteria\n- [ ] `squad watch` works from CLI with `--interval` flag\n- [ ] Heartbeat cron is enabled with configurable schedule\n- [ ] Documentation covers all three Ralph layers\n- [ ] Ralph detects platform (GitHub/ADO) and uses correct commands\r\n","author":{"url":"https://github.com/tamirdresher","@type":"Person","name":"tamirdresher"},"datePublished":"2026-03-07T09:37:53Z","url":"https://github.com/github/squad/issues/236"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cde79e69-f771-d7ae-6cdc-07e6da38562d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1F8:13C1CF:E6DD6:136841:6B015FBB |
| html-safe-nonce | 51827f04e911db4a616cef6e4446f36cad534f7fa7134fefa7fb7b092cadbe0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUY4OjEzQzFDRjpFNkRENjoxMzY4NDE6NkIwMTVGQkIiLCJ2aXNpdG9yX2lkIjoiODc0NDEzNTA2MDg2NjgxNzk3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e4605f2a6c1adcfdd8d4473a33224c9d11914ac560ac16db4f2be83bfdb58f6e |
| hovercard-subject-tag | issue:4038055770 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/236/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3528995dd75dc4da4c512a907fb30a685db6dafa8f15cbce25a04a2c6dae1228/github/squad/issues/236 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3528995dd75dc4da4c512a907fb30a685db6dafa8f15cbce25a04a2c6dae1228/github/squad/issues/236 |
| og:image:alt | Feature: Persistent Ralph — continuous work monitoring between sessions Problem Ralph runs in a loop during a Copilot session but stops when the session ends. There's no way to keep Ralph monitorin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tamirdresher |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width