rdc 0.3.0__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. rdc-0.4.0/.github/workflows/ci.yml +40 -0
  2. {rdc-0.3.0 → rdc-0.4.0}/.gitignore +7 -1
  3. rdc-0.4.0/PKG-INFO +363 -0
  4. rdc-0.4.0/README.md +298 -0
  5. {rdc-0.3.0 → rdc-0.4.0}/SETUP.md +12 -3
  6. {rdc-0.3.0 → rdc-0.4.0}/docs/ai-agent-guide.md +21 -1
  7. {rdc-0.3.0 → rdc-0.4.0}/docs/architecture/autonomous-mode.md +14 -14
  8. {rdc-0.3.0 → rdc-0.4.0}/docs/configuration.md +16 -11
  9. {rdc-0.3.0 → rdc-0.4.0}/docs/human-guide.md +117 -50
  10. {rdc-0.3.0 → rdc-0.4.0}/docs/visual-streaming-quickstart.md +1 -1
  11. {rdc-0.3.0 → rdc-0.4.0}/docs/visual-streaming.md +6 -6
  12. {rdc-0.3.0 → rdc-0.4.0}/frontend/package.json +1 -1
  13. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/App.tsx +18 -12
  14. rdc-0.4.0/frontend/src/components/chat-scope-chip.tsx +46 -0
  15. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/collection-picker.tsx +16 -2
  16. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/project-bar.tsx +15 -6
  17. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/browser/browser-panel.tsx +22 -6
  18. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/browser/floating-agent-panel.tsx +2 -6
  19. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/browser/unified-browser-panel.tsx +25 -237
  20. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/channels/channel-messages.tsx +1 -1
  21. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/channels/channel-panel.tsx +5 -3
  22. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/channels/channel-settings.tsx +137 -4
  23. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/channels/channel-sidebar.tsx +113 -36
  24. rdc-0.4.0/frontend/src/features/channels/floating-channel-panel.tsx +224 -0
  25. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/channels/mobile-channel-panel.tsx +106 -6
  26. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/channels/mobile-workspace-selector.tsx +53 -22
  27. rdc-0.4.0/frontend/src/features/command-bar/command-bar.tsx +296 -0
  28. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/activity-sheet.tsx +27 -0
  29. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/chat-card.tsx +3 -32
  30. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/contexts-card.tsx +24 -3
  31. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/hamburger-sheet.tsx +17 -0
  32. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/mobile-command-bar.tsx +1 -34
  33. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/processes-card.tsx +10 -4
  34. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/project-sheet.tsx +4 -2
  35. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/terminals-card.tsx +38 -80
  36. rdc-0.4.0/frontend/src/features/modals/collections-manager.tsx +372 -0
  37. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/modals/pair-device.tsx +2 -2
  38. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/modals/project-settings.tsx +188 -6
  39. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/modals/system-settings.tsx +167 -294
  40. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/right-tabs/right-tabs.tsx +118 -35
  41. rdc-0.4.0/frontend/src/features/sessions/agent-mode-workspace.tsx +976 -0
  42. rdc-0.4.0/frontend/src/features/sessions/evidence-setup.tsx +47 -0
  43. rdc-0.4.0/frontend/src/features/sessions/loop-status.ts +35 -0
  44. rdc-0.4.0/frontend/src/features/sessions/project-bootstrap.tsx +470 -0
  45. rdc-0.4.0/frontend/src/features/sessions/provider-setup.tsx +525 -0
  46. rdc-0.4.0/frontend/src/features/sessions/semantic-timeline.tsx +656 -0
  47. rdc-0.4.0/frontend/src/features/sessions/session-viewer.tsx +1563 -0
  48. rdc-0.4.0/frontend/src/features/sessions/session-workspace.tsx +19 -0
  49. rdc-0.4.0/frontend/src/features/sessions/sessions-card.tsx +1990 -0
  50. rdc-0.4.0/frontend/src/features/sessions/sessions-hub.tsx +295 -0
  51. rdc-0.4.0/frontend/src/features/sessions/welcome-onboarding.tsx +217 -0
  52. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/terminal/embedded-terminal.tsx +31 -58
  53. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/terminal/terminal-view.tsx +4 -6
  54. rdc-0.4.0/frontend/src/features/voice/homebase-voice-panel.tsx +387 -0
  55. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/hooks/use-browser-agent.ts +3 -97
  56. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/hooks/use-orchestrator.ts +113 -11
  57. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/hooks/use-voice.ts +2 -4
  58. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/index.css +196 -72
  59. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/layouts/desktop.tsx +111 -171
  60. rdc-0.4.0/frontend/src/layouts/kiosk.tsx +940 -0
  61. rdc-0.4.0/frontend/src/layouts/mobile.tsx +766 -0
  62. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/lib/agent-presets.ts +1 -8
  63. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/lib/api.ts +7 -0
  64. rdc-0.4.0/frontend/src/lib/speak.ts +165 -0
  65. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/lib/ws.ts +31 -2
  66. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/channel-store.ts +10 -0
  67. rdc-0.4.0/frontend/src/stores/chat-scope-store.ts +49 -0
  68. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/project-store.ts +7 -1
  69. rdc-0.4.0/frontend/src/stores/terminal-presets-store.ts +69 -0
  70. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/ui-store.ts +62 -2
  71. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/types/index.ts +5 -0
  72. {rdc-0.3.0 → rdc-0.4.0}/install.sh +17 -16
  73. {rdc-0.3.0 → rdc-0.4.0}/pyproject.toml +10 -9
  74. rdc-0.4.0/scripts/live_session_smoke.py +72 -0
  75. {rdc-0.3.0 → rdc-0.4.0}/scripts/rdc-launch.sh +2 -12
  76. rdc-0.4.0/scripts/seed_demo_db.py +322 -0
  77. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/__init__.py +1 -1
  78. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/cli.py +216 -57
  79. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/llm.py +67 -11
  80. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/mcp/server.py +157 -2
  81. rdc-0.4.0/src/remote_dev_ctrl/project_detection.py +149 -0
  82. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/scaffold.py +62 -7
  83. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/actions.py +6 -0
  84. rdc-0.4.0/src/remote_dev_ctrl/server/agent_herd.py +1187 -0
  85. rdc-0.4.0/src/remote_dev_ctrl/server/agent_registry.py +1811 -0
  86. rdc-0.4.0/src/remote_dev_ctrl/server/agent_stream.py +580 -0
  87. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/agents/manager.py +6 -0
  88. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/app.py +4156 -992
  89. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/auth.py +79 -0
  90. rdc-0.4.0/src/remote_dev_ctrl/server/brief.py +441 -0
  91. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/channel_manager.py +39 -2
  92. rdc-0.4.0/src/remote_dev_ctrl/server/channels/telegram.py +1030 -0
  93. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/collections_page.py +18 -3
  94. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/config.py +23 -1
  95. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/connection.py +2 -0
  96. rdc-0.4.0/src/remote_dev_ctrl/server/db/migrations/rdc/20260710000016_extend_sessions_for_supervision.sql +73 -0
  97. rdc-0.4.0/src/remote_dev_ctrl/server/db/migrations/rdc/20260711000017_add_collection_role.sql +6 -0
  98. rdc-0.4.0/src/remote_dev_ctrl/server/db/migrations/rdc/20261104000018_add_collection_default_agent.sql +5 -0
  99. rdc-0.4.0/src/remote_dev_ctrl/server/db/migrations/rdc/20261104000019_add_session_worktree_and_lineage.sql +10 -0
  100. rdc-0.4.0/src/remote_dev_ctrl/server/db/migrations/rdc/20261105000020_unclassified_display_name.sql +8 -0
  101. rdc-0.4.0/src/remote_dev_ctrl/server/db/migrations/rdc/20261105000021_add_collection_archived_at.sql +5 -0
  102. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/models.py +3 -0
  103. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/repositories.py +115 -12
  104. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/debug_page.py +3 -3
  105. rdc-0.4.0/src/remote_dev_ctrl/server/decision.py +568 -0
  106. rdc-0.4.0/src/remote_dev_ctrl/server/evidence_providers.py +105 -0
  107. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/intent.py +299 -256
  108. rdc-0.4.0/src/remote_dev_ctrl/server/knowledge_bridge.py +810 -0
  109. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/middleware.py +104 -20
  110. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/orchestrator.py +35 -2
  111. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/process_discovery.py +86 -27
  112. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/processes.py +16 -14
  113. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/pty_relay.py +6 -0
  114. rdc-0.4.0/src/remote_dev_ctrl/server/recipes.py +479 -0
  115. rdc-0.4.0/src/remote_dev_ctrl/server/session_controls.py +203 -0
  116. rdc-0.4.0/src/remote_dev_ctrl/server/session_loop.py +876 -0
  117. rdc-0.4.0/src/remote_dev_ctrl/server/session_manager.py +1129 -0
  118. rdc-0.4.0/src/remote_dev_ctrl/server/session_notifier.py +188 -0
  119. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/state_machine.py +1 -13
  120. rdc-0.4.0/src/remote_dev_ctrl/server/supervised_sessions.py +762 -0
  121. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/terminal.py +28 -29
  122. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/tts.py +74 -33
  123. rdc-0.4.0/src/remote_dev_ctrl/server/worktree.py +245 -0
  124. rdc-0.4.0/tests/conftest.py +27 -0
  125. rdc-0.4.0/tests/test_agent_herd.py +345 -0
  126. rdc-0.4.0/tests/test_agent_stream.py +355 -0
  127. rdc-0.4.0/tests/test_attention_state_mapping.py +168 -0
  128. rdc-0.4.0/tests/test_auth_policy.py +125 -0
  129. rdc-0.4.0/tests/test_collection_links.py +487 -0
  130. rdc-0.4.0/tests/test_db_state_reconciliation.py +235 -0
  131. rdc-0.4.0/tests/test_decision_and_wrappers.py +274 -0
  132. rdc-0.4.0/tests/test_evidence_providers.py +43 -0
  133. rdc-0.4.0/tests/test_homebase_brief.py +433 -0
  134. rdc-0.4.0/tests/test_knowledge_bridge.py +835 -0
  135. rdc-0.4.0/tests/test_project_import_pipeline.py +165 -0
  136. rdc-0.4.0/tests/test_recipes_and_routing.py +192 -0
  137. rdc-0.4.0/tests/test_server_lifecycle.py +53 -0
  138. rdc-0.4.0/tests/test_session_loop.py +481 -0
  139. rdc-0.4.0/tests/test_session_notifier.py +90 -0
  140. rdc-0.4.0/tests/test_session_supervision.py +855 -0
  141. rdc-0.4.0/tests/test_supervised_sessions.py +440 -0
  142. rdc-0.4.0/tests/test_telegram_flows.py +215 -0
  143. rdc-0.4.0/tests/test_tts.py +108 -0
  144. {rdc-0.3.0 → rdc-0.4.0}/tests/test_visual_streaming.py +5 -3
  145. rdc-0.4.0/tests/test_worktree_lifecycle.py +376 -0
  146. rdc-0.4.0/uv.lock +7199 -0
  147. rdc-0.3.0/.ai/browser-context-design.md +0 -58
  148. rdc-0.3.0/.ai/context.md +0 -123
  149. rdc-0.3.0/.ai/learnings.md +0 -67
  150. rdc-0.3.0/.ai/worker-design.md +0 -62
  151. rdc-0.3.0/CLAUDE.md +0 -205
  152. rdc-0.3.0/PKG-INFO +0 -298
  153. rdc-0.3.0/README.md +0 -231
  154. rdc-0.3.0/TODO.md +0 -37
  155. rdc-0.3.0/design_knowledge_system.md +0 -293
  156. rdc-0.3.0/design_orchestrator.md +0 -727
  157. rdc-0.3.0/design_persistent_memory_and_voice.md +0 -373
  158. rdc-0.3.0/docs/VISUAL_STREAMING_COMPLETE.md +0 -252
  159. rdc-0.3.0/docs/architecture/phone-calling.md +0 -186
  160. rdc-0.3.0/docs/architecture/security-audit-findings.md +0 -62
  161. rdc-0.3.0/docs/architecture/security-audit.md +0 -425
  162. rdc-0.3.0/docs/architecture/v2-next-session.md +0 -91
  163. rdc-0.3.0/docs/frontend-live-spec.md +0 -426
  164. rdc-0.3.0/docs/one-loop-dev-cycle.md +0 -146
  165. rdc-0.3.0/docs/remote-desktop-agent-plan.md +0 -63
  166. rdc-0.3.0/frontend/src/features/browser/pinchtab-panel.tsx +0 -523
  167. rdc-0.3.0/frontend/src/features/channels/floating-channel-panel.tsx +0 -207
  168. rdc-0.3.0/frontend/src/features/command-bar/command-bar.tsx +0 -203
  169. rdc-0.3.0/frontend/src/features/mobile/pinchtab-card.tsx +0 -71
  170. rdc-0.3.0/frontend/src/features/mobile/pinchtab-overlay.tsx +0 -219
  171. rdc-0.3.0/frontend/src/features/modals/collections-manager.tsx +0 -216
  172. rdc-0.3.0/frontend/src/features/sessions/session-viewer.tsx +0 -291
  173. rdc-0.3.0/frontend/src/features/sessions/sessions-card.tsx +0 -183
  174. rdc-0.3.0/frontend/src/layouts/kiosk.tsx +0 -707
  175. rdc-0.3.0/frontend/src/layouts/mobile.tsx +0 -585
  176. rdc-0.3.0/frontend/src/stores/pinchtab-store.ts +0 -215
  177. rdc-0.3.0/frontend/src/stores/terminal-presets-store.ts +0 -68
  178. rdc-0.3.0/src/remote_dev_ctrl/server/channels/phone.py +0 -872
  179. rdc-0.3.0/src/remote_dev_ctrl/server/channels/telegram.py +0 -877
  180. rdc-0.3.0/src/remote_dev_ctrl/server/recipes.py +0 -153
  181. rdc-0.3.0/src/remote_dev_ctrl/server/session_manager.py +0 -607
  182. rdc-0.3.0/uv.lock +0 -3708
  183. {rdc-0.3.0 → rdc-0.4.0}/.github/workflows/publish.yml +0 -0
  184. {rdc-0.3.0 → rdc-0.4.0}/LICENSE +0 -0
  185. {rdc-0.3.0 → rdc-0.4.0}/docs/architecture/data-layer.md +0 -0
  186. {rdc-0.3.0 → rdc-0.4.0}/docs/architecture/state-machine.md +0 -0
  187. {rdc-0.3.0 → rdc-0.4.0}/docs/mcp-setup.md +0 -0
  188. {rdc-0.3.0 → rdc-0.4.0}/frontend/.gitignore +0 -0
  189. {rdc-0.3.0 → rdc-0.4.0}/frontend/README.md +0 -0
  190. {rdc-0.3.0 → rdc-0.4.0}/frontend/components.json +0 -0
  191. {rdc-0.3.0 → rdc-0.4.0}/frontend/eslint.config.js +0 -0
  192. {rdc-0.3.0 → rdc-0.4.0}/frontend/index.html +0 -0
  193. {rdc-0.3.0 → rdc-0.4.0}/frontend/package-lock.json +0 -0
  194. {rdc-0.3.0 → rdc-0.4.0}/frontend/pnpm-lock.yaml +0 -0
  195. {rdc-0.3.0 → rdc-0.4.0}/frontend/public/rrweb.min.js +0 -0
  196. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/global-text-input.tsx +0 -0
  197. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/toast.tsx +0 -0
  198. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/ui/badge.tsx +0 -0
  199. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/ui/button.tsx +0 -0
  200. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/ui/card.tsx +0 -0
  201. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/ui/input.tsx +0 -0
  202. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/ui/scroll-area.tsx +0 -0
  203. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/ui/separator.tsx +0 -0
  204. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/ui/tabs.tsx +0 -0
  205. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/ui/textarea.tsx +0 -0
  206. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/components/ui/tooltip.tsx +0 -0
  207. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/activity/activity-feed.tsx +0 -0
  208. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/agent/agent-run-panel.tsx +0 -0
  209. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/auth/pair-approve.tsx +0 -0
  210. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/browser/recording-player.tsx +0 -0
  211. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/channels/message-renderer.tsx +0 -0
  212. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/chat/chat-fab.tsx +0 -0
  213. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/chat/chat-panel.tsx +0 -0
  214. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/chat/chat-renderer.tsx +0 -0
  215. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/logs/logs-panel.tsx +0 -0
  216. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/add-project-sheet.tsx +0 -0
  217. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/attention-card.tsx +0 -0
  218. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/browser-card.tsx +0 -0
  219. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/create-task-sheet.tsx +0 -0
  220. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/dictation-card.tsx +0 -0
  221. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/paired-devices-sheet.tsx +0 -0
  222. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/process-log-overlay.tsx +0 -0
  223. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/project-card.tsx +0 -0
  224. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/sheet.tsx +0 -0
  225. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/task-output-overlay.tsx +0 -0
  226. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/tasks-card.tsx +0 -0
  227. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/mobile/terminal-overlay.tsx +0 -0
  228. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/modals/browser-preview.tsx +0 -0
  229. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/modals/context-viewer.tsx +0 -0
  230. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/modals/port-assignments.tsx +0 -0
  231. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/modals/screenshots.tsx +0 -0
  232. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/output/output-panel.tsx +0 -0
  233. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/processes/add-action-form.tsx +0 -0
  234. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/processes/process-list.tsx +0 -0
  235. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/stats/stats-grid.tsx +0 -0
  236. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/tasks/create-task-form.tsx +0 -0
  237. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/tasks/task-list.tsx +0 -0
  238. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/tasks/task-panel.tsx +0 -0
  239. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/features/terminal/bottom-panel.tsx +0 -0
  240. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/hooks/use-channel-send.ts +0 -0
  241. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/hooks/use-file-upload.ts +0 -0
  242. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/hooks/use-mount-effect.ts +0 -0
  243. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/hooks/use-workstream-voice.ts +0 -0
  244. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/lib/chat-catalog.ts +0 -0
  245. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/lib/chat-components.tsx +0 -0
  246. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/lib/client-id.ts +0 -0
  247. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/lib/orchestrator-dispatch.ts +0 -0
  248. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/lib/utils.ts +0 -0
  249. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/main.tsx +0 -0
  250. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/agent-run-store.ts +0 -0
  251. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/auth-store.ts +0 -0
  252. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/browser-store.ts +0 -0
  253. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/dictation-store.ts +0 -0
  254. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/logs-store.ts +0 -0
  255. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/process-store.ts +0 -0
  256. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/state-store.ts +0 -0
  257. {rdc-0.3.0 → rdc-0.4.0}/frontend/src/stores/terminal-store.ts +0 -0
  258. {rdc-0.3.0 → rdc-0.4.0}/frontend/tsconfig.app.json +0 -0
  259. {rdc-0.3.0 → rdc-0.4.0}/frontend/tsconfig.json +0 -0
  260. {rdc-0.3.0 → rdc-0.4.0}/frontend/tsconfig.node.json +0 -0
  261. {rdc-0.3.0 → rdc-0.4.0}/frontend/vite.config.ts +0 -0
  262. {rdc-0.3.0 → rdc-0.4.0}/mcp-config.json +0 -0
  263. {rdc-0.3.0 → rdc-0.4.0}/rdc.yml +0 -0
  264. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/__init__.py +0 -0
  265. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/__main__.py +0 -0
  266. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/classify.py +0 -0
  267. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/client.py +0 -0
  268. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/executor.py +0 -0
  269. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/orchestrator.py +0 -0
  270. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/planner.py +0 -0
  271. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/prompts.py +0 -0
  272. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/tools.py +0 -0
  273. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/types.py +0 -0
  274. {rdc-0.3.0 → rdc-0.4.0}/src/gwd/verifier.py +0 -0
  275. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/mcp/__init__.py +0 -0
  276. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/__init__.py +0 -0
  277. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/agents/__init__.py +0 -0
  278. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/agents/gwd_provider.py +0 -0
  279. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/agents/provider.py +0 -0
  280. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/agents/terminal_provider.py +0 -0
  281. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/agents/tools.py +0 -0
  282. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/agents/web_provider.py +0 -0
  283. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/audit.py +0 -0
  284. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/browser.py +0 -0
  285. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/browser_use.py +0 -0
  286. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/caddy.py +0 -0
  287. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/channels/__init__.py +0 -0
  288. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/channels/email.py +0 -0
  289. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/chrome.py +0 -0
  290. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/context_synthesizer.py +0 -0
  291. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/conversation.py +0 -0
  292. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/dashboard.py +0 -0
  293. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/__init__.py +0 -0
  294. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrate.py +0 -0
  295. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/logs/20260210000001_create_schema.sql +0 -0
  296. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260210000001_create_schema.sql +0 -0
  297. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260210000002_add_project_description.sql +0 -0
  298. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260210000003_runtime_state_tables.sql +0 -0
  299. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260212000004_add_collections.sql +0 -0
  300. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260213000005_add_agent_sessions.sql +0 -0
  301. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260222000006_browser_nullable_process_id.sql +0 -0
  302. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260222000007_add_recordings.sql +0 -0
  303. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260305000008_add_recipes.sql +0 -0
  304. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260312000009_add_project_tags.sql +0 -0
  305. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260316000010_add_actions.sql +0 -0
  306. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260403000011_add_channels.sql +0 -0
  307. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260404000012_add_channel_collection.sql +0 -0
  308. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260406000013_add_sessions.sql +0 -0
  309. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260406000014_session_multi_terminal.sql +0 -0
  310. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/rdc/20260410000015_add_email_threads.sql +0 -0
  311. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/db/migrations/tasks/20260210000001_create_schema.sql +0 -0
  312. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/event_store.py +0 -0
  313. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/events/__init__.py +0 -0
  314. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/events/bus.py +0 -0
  315. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/pinchtab.py +0 -0
  316. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/ports.py +0 -0
  317. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/queue/__init__.py +0 -0
  318. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/recording.py +0 -0
  319. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/scrubber.py +0 -0
  320. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/static/rrweb.min.js +0 -0
  321. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/static/shared.css +0 -0
  322. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/static/vendor/tailwind.js +0 -0
  323. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/static/vendor/xstate.js +0 -0
  324. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/static/vendor/xterm-addon-fit.js +0 -0
  325. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/static/vendor/xterm-addon-unicode11.js +0 -0
  326. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/static/vendor/xterm-addon-web-links.js +0 -0
  327. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/static/vendor/xterm.css +0 -0
  328. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/static/vendor/xterm.js +0 -0
  329. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/streaming.py +0 -0
  330. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/utils.py +0 -0
  331. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/vault.py +0 -0
  332. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/vnc.py +0 -0
  333. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/voice_agent.py +0 -0
  334. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/voice_runtime.py +0 -0
  335. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/worker.py +0 -0
  336. {rdc-0.3.0 → rdc-0.4.0}/src/remote_dev_ctrl/server/workstream_context.py +0 -0
@@ -0,0 +1,40 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: astral-sh/setup-uv@v6
13
+ with:
14
+ # uv.lock was generated by this version. Unpinned latest rejects it under --locked.
15
+ version: "0.13.6"
16
+ enable-cache: true
17
+ - uses: pnpm/action-setup@v4
18
+ with:
19
+ version: 10
20
+ - uses: actions/setup-node@v4
21
+ with:
22
+ node-version: 22
23
+ cache: pnpm
24
+ cache-dependency-path: frontend/pnpm-lock.yaml
25
+ - name: Install Python dependencies
26
+ run: uv sync --extra dev --extra knowledge --locked
27
+ - name: Install dbmate
28
+ run: |
29
+ curl -fsSL -o "${RUNNER_TEMP}/dbmate" \
30
+ https://github.com/amacneil/dbmate/releases/download/v2.37.0/dbmate-linux-amd64
31
+ chmod +x "${RUNNER_TEMP}/dbmate"
32
+ echo "${RUNNER_TEMP}" >> "${GITHUB_PATH}"
33
+ - name: Run isolated Python tests
34
+ run: uv run pytest -q
35
+ - name: Install frontend dependencies
36
+ working-directory: frontend
37
+ run: pnpm install --frozen-lockfile
38
+ - name: Build frontend
39
+ working-directory: frontend
40
+ run: pnpm run build
@@ -32,11 +32,17 @@ node_modules/
32
32
  .idea/
33
33
  *.sw?
34
34
 
35
- # Agent config (personal)
35
+ # Agent config & AI harnesses (personal/internal)
36
+ .ai/
36
37
  AGENTS.md
38
+ CLAUDE.md
37
39
  GEMINI.md
38
40
  rdc.yaml
39
41
 
42
+ # Working documents & internal designs (excluded from open source output)
43
+ workingdoc/
44
+ workingdocs/
45
+
40
46
  # OS
41
47
  .DS_Store
42
48
  Thumbs.db
rdc-0.4.0/PKG-INFO ADDED
@@ -0,0 +1,363 @@
1
+ Metadata-Version: 2.5
2
+ Name: rdc
3
+ Version: 0.4.0
4
+ Summary: Command center for AI-assisted development. Manage multiple AI coding agents from any device.
5
+ Project-URL: Homepage, https://github.com/dawalama/remote-dev-control
6
+ Project-URL: Repository, https://github.com/dawalama/remote-dev-control
7
+ Project-URL: Issues, https://github.com/dawalama/remote-dev-control/issues
8
+ Author: Dawa
9
+ License: MIT
10
+ License-File: LICENSE
11
+ Keywords: agents,ai,claude,cursor,development,remote,terminal
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Web Environment
14
+ Classifier: Framework :: FastAPI
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Software Development :: Build Tools
22
+ Classifier: Topic :: System :: Monitoring
23
+ Requires-Python: >=3.11
24
+ Requires-Dist: aiofiles>=25.1.0
25
+ Requires-Dist: duckdb>=1.4.4
26
+ Requires-Dist: fastapi>=0.109.0
27
+ Requires-Dist: httpx>=0.27.0
28
+ Requires-Dist: mcp>=1.0.0
29
+ Requires-Dist: openai>=2.16.0
30
+ Requires-Dist: playwright>=1.40.0
31
+ Requires-Dist: psutil>=7.2.2
32
+ Requires-Dist: pydantic>=2.5.0
33
+ Requires-Dist: python-telegram-bot>=22.6
34
+ Requires-Dist: pyyaml>=6.0.0
35
+ Requires-Dist: rich>=13.7.0
36
+ Requires-Dist: transitions>=0.9.3
37
+ Requires-Dist: typer>=0.12.0
38
+ Requires-Dist: uvicorn[standard]>=0.27.0
39
+ Requires-Dist: watchdog>=4.0.0
40
+ Requires-Dist: websockets>=12.0
41
+ Provides-Extra: all
42
+ Requires-Dist: accelerate>=0.25.0; extra == 'all'
43
+ Requires-Dist: livekit-agents[silero,turn-detector]~=1.3; extra == 'all'
44
+ Requires-Dist: livekit-plugins-openai~=1.0; extra == 'all'
45
+ Requires-Dist: llmlingua>=0.2.0; extra == 'all'
46
+ Requires-Dist: python-dotenv>=1.0.0; extra == 'all'
47
+ Requires-Dist: python-telegram-bot>=21.0; extra == 'all'
48
+ Provides-Extra: browser
49
+ Requires-Dist: browser-use>=0.1.0; extra == 'browser'
50
+ Provides-Extra: compress
51
+ Requires-Dist: accelerate>=0.25.0; extra == 'compress'
52
+ Requires-Dist: llmlingua>=0.2.0; extra == 'compress'
53
+ Provides-Extra: dev
54
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
55
+ Requires-Dist: ruff>=0.3.0; extra == 'dev'
56
+ Provides-Extra: knowledge
57
+ Requires-Dist: corpusnote>=0.1.0; extra == 'knowledge'
58
+ Provides-Extra: livekit
59
+ Requires-Dist: livekit-agents[silero,turn-detector]~=1.3; extra == 'livekit'
60
+ Requires-Dist: livekit-plugins-openai~=1.0; extra == 'livekit'
61
+ Requires-Dist: python-dotenv>=1.0.0; extra == 'livekit'
62
+ Provides-Extra: telegram
63
+ Requires-Dist: python-telegram-bot>=21.0; extra == 'telegram'
64
+ Description-Content-Type: text/markdown
65
+
66
+ # RDC - Remote Dev Ctrl
67
+
68
+ **Supervised mission control for AI coding agents from anywhere — phone, tablet, browser, or Telegram.**
69
+
70
+ RDC is an open-source command center for developers orchestrating multiple AI agents (Claude Code, Codex, Cursor, OpenRouter, and custom CLI wrappers) across all your projects.
71
+
72
+ Your development workstation acts as **HomeBase**; your phones, tablets, and remote browsers connect as lightweight **Nodes**. Brief your agents, supervise goals, review proof artifacts with Git and automated test evidence, and approve critical actions on the go.
73
+
74
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
75
+ [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](pyproject.toml)
76
+ [![FastAPI](https://img.shields.io/badge/backend-FastAPI-009688.svg)](https://fastapi.tiangolo.com/)
77
+ [![React 19](https://img.shields.io/badge/frontend-React%2019-61DAFB.svg)](https://react.dev/)
78
+
79
+ ---
80
+
81
+ ## Why RDC?
82
+
83
+ - **Goals & Resident Agents**: Two complementary modes in one workspace—**🎯 Goals** for bounded worktree execution with automated verify-retry loops and proof artifacts, and **🤖 Agents** for live, persistent terminal conversations you can promote into bounded Goals in 1 click.
84
+ - **Structured Agent Streaming & Semantic Timeline**: Live NDJSON streaming for **Claude Code**, **Codex CLI**, and **Antigravity (`agy`)** renders tool calls, reasoning, file changes, token/cost metrics, and mid-flight operator steers as clean, responsive cards on desktop and mobile—with a live PTY terminal always 1 tap away as an escape hatch.
85
+ - **Issue-Type Recipes**: Built-in problem-solving playbooks (`Auto`, `🐞 Bugfix`, `✨ Feature`, `🔧 Refactor`, `🗺 Plan / Spike`, `🔍 Code Review`, `🛡 Code Audit`) that enforce the right approach per task type—plus 1-click **Execute Plan** and **Cross-Model Review** transitions.
86
+ - **Multi-Model Cost & Reasoning Routing**: Choose `⚖ Balanced` (reasoning tier plans, reviews, and auto-escalates on loop stall; coding tier implements), `🧠 Max Quality`, or `⚡ Fast` across your installed CLI agents.
87
+ - **Zero-Clutter Centralized Config**: Project configs live centrally under `~/.rdc/projects/<name>.yaml` and HTML artifacts under `~/.rdc/sessions/` so RDC never dirties client or open-source repos (while still honoring opt-in repo-local `rdc.yaml` files).
88
+ - **Mobile-First & Multi-Channel Control**: Three responsive layouts (Desktop, Mobile, Kiosk), browser Voice input/briefs, Telegram bot with inline approval buttons, and shared CDP browser automation.
89
+
90
+ ---
91
+
92
+ ## Quick Start
93
+
94
+ ### 1. Install
95
+
96
+ Using **uv** (recommended for isolated, fast installation):
97
+
98
+ ```bash
99
+ uv tool install rdc
100
+ ```
101
+
102
+ Or with **pip**:
103
+
104
+ ```bash
105
+ pip install rdc
106
+ ```
107
+
108
+ Or run directly without installing:
109
+
110
+ ```bash
111
+ uvx rdc setup
112
+ ```
113
+
114
+ ### 2. Guided Setup
115
+
116
+ Run the interactive setup wizard to configure your default project directories, agent providers, API keys, and optional Telegram bot:
117
+
118
+ ```bash
119
+ rdc setup
120
+ ```
121
+
122
+ ### 3. Start Command Center
123
+
124
+ ```bash
125
+ # Start server in background (opens on http://localhost:8420)
126
+ rdc server start -d
127
+
128
+ # Check status
129
+ rdc server status
130
+
131
+ # Open web dashboard
132
+ open http://localhost:8420
133
+ ```
134
+
135
+ ---
136
+
137
+ ## Install from Source
138
+
139
+ If you want to contribute or modify RDC:
140
+
141
+ ```bash
142
+ git clone https://github.com/dawalama/remote-dev-control.git
143
+ cd remote-dev-control
144
+
145
+ # Install backend dependencies with uv
146
+ uv sync
147
+
148
+ # Build frontend assets
149
+ cd frontend
150
+ pnpm install
151
+ pnpm run build
152
+ cd ..
153
+
154
+ # Run guided setup and start
155
+ .venv/bin/rdc setup
156
+ .venv/bin/rdc server start
157
+ ```
158
+
159
+ ---
160
+
161
+ ## Core Concepts & Workflow
162
+
163
+ ```
164
+ ┌──────────────────────────────────────────────┐
165
+ │ RDC COMMAND CENTER │
166
+ │ ~/.rdc/data/{rdc.db, tasks.db, logs.db} │
167
+ └──────────────────────┬───────────────────────┘
168
+ │
169
+ ┌─────────────────────────────────┼─────────────────────────────────┐
170
+ ▼ ▼ ▼
171
+ ┌─────────────────────────┐ ┌─────────────────────────┐ ┌─────────────────────────┐
172
+ │ Web / Mobile UI │ │ Telegram Bot │ │ MCP / CLI Agents │
173
+ │ Desktop · Mobile · Kiosk│ │ Inline Approvals & Log │ │ claude · codex · cursor │
174
+ └─────────────────────────┘ └─────────────────────────┘ └─────────────────────────┘
175
+ ```
176
+
177
+ ### 1. Workstreams & Channels
178
+ Projects are organized into workstream channels (e.g. `#web-app`, `#api-service`, `#system`). Each workstream has a unified bottom scope composer with an expandable history drawer (`⌘/`), active services, Goals, and Agents.
179
+
180
+ ### 2. Goals, Recipes & Multi-Model Supervision Lifecycle
181
+ Instead of babysitting raw terminal prompts, create a **Goal** and pick a **Recipe** (`Auto`, `Bugfix`, `Feature`, `Refactor`, `Plan`, `Review`, `Audit`) and **Routing Profile** (`Balanced`, `Max Quality`, `Fast`):
182
+ 1. **Working (`Timeline`)**: Live structured tool calls, reasoning, and responses stream into a responsive Semantic Timeline. You can **Queue Steer** mid-flight to inject guidance into the next verify round without interrupting the agent.
183
+ 2. **Verify-and-Retry Loop**: After each turn, RDC runs the project’s verification command (`pytest`, `npm run build`, etc.). In `Balanced` mode, if a coding model stalls on the same failure twice, RDC automatically escalates to a reasoning-tier provider to break the stall.
184
+ 3. **Needs You (`waiting`)**: When an agent hits a permission or decision gate, approve or steer from Desktop, Mobile, or Telegram.
185
+ 4. **Ready for Review (`verifying`)**: Inspect the clean markdown outcome, Git diff, and test evidence, then **Accept & Commit** in 1 click, run a **🔍 Cross-Model Review** (using a different provider family than the author), or click **⚡ Execute Plan** on advisory spikes.
186
+
187
+ ### 3. Centralized Configuration (`~/.rdc/projects/`)
188
+ RDC keeps all per-project YAML configs in `~/.rdc/projects/<name>.yaml` and session artifacts in `~/.rdc/sessions/` so connecting existing repositories never creates untracked files or pollutes `git status`. Repo-local `rdc.yaml` files are still honored as an opt-in fallback when present.
189
+
190
+ ---
191
+
192
+ ## CLI Reference
193
+
194
+ ```bash
195
+ # Server Management
196
+ rdc server start [-d] [--port 8420] # Start server (foreground or daemon)
197
+ rdc server status # Check server PID, memory, active sessions
198
+ rdc server restart # Clean restart
199
+ rdc server stop # Gracefully terminate running server
200
+
201
+ # Projects & Workstreams
202
+ rdc add <path> [-n name] # Register a project directory
203
+ rdc list # List registered projects and active services
204
+ rdc remove <name> # Unregister a project
205
+
206
+ # Agent Wrappers & Model Providers
207
+ rdc wrapper list # List available wrappers (claude, codex, cursor, etc.)
208
+ rdc wrapper register <spec.json> # Register custom AI agent wrapper
209
+ rdc wrapper instructions # Print self-registration instructions for agents
210
+
211
+ # API Tokens & Security
212
+ rdc token create <name> [--role admin]# Generate API token for dashboard or remote nodes
213
+ rdc token list # List active API tokens
214
+ rdc token revoke <id> # Revoke token
215
+
216
+ # Configuration & Secrets
217
+ rdc config show # Display current ~/.rdc/config.yml
218
+ rdc config set-secret KEY VALUE # Store credentials in encrypted/scrubbed vault
219
+ ```
220
+
221
+ ---
222
+
223
+ ## Remote Access & Multi-Device Control
224
+
225
+ Control your workstation securely from your smartphone or laptop while away from your desk.
226
+
227
+ ### Option A: Cloudflare Tunnel + Built-in Caddy Proxy
228
+
229
+ ```
230
+ Phone / Browser ──HTTPS──> Cloudflare Tunnel ──> Caddy (:8888) ──> RDC (:8420)
231
+ └──> Dev Servers (:3000, :5173)
232
+ ```
233
+
234
+ 1. Install and authenticate `cloudflared`:
235
+ ```bash
236
+ brew install cloudflared
237
+ cloudflared tunnel login
238
+ cloudflared tunnel create rdc-workstation
239
+ ```
240
+ 2. Enable Caddy in `~/.rdc/config.yml`:
241
+ ```yaml
242
+ caddy:
243
+ enabled: true
244
+ base_domain: yourdomain.com
245
+ rdc_domain: rdc.yourdomain.com
246
+ listen_port: 8888
247
+ ```
248
+ 3. Run tunnel:
249
+ ```bash
250
+ cloudflared tunnel run rdc-workstation
251
+ ```
252
+
253
+ ### Option B: Telegram Bot Integration
254
+
255
+ Set up an interactive bot via `@BotFather` to receive instant push alerts and control missions directly from your phone chat:
256
+
257
+ ```bash
258
+ rdc config set-secret TELEGRAM_BOT_TOKEN "123456789:ABCdef..."
259
+ ```
260
+
261
+ Enable Telegram in `~/.rdc/config.yml`:
262
+ ```yaml
263
+ channels:
264
+ telegram:
265
+ enabled: true
266
+ allowed_users: [123456789] # Your numeric Telegram User ID
267
+ ```
268
+
269
+ **Commands available in Telegram:**
270
+ - `/brief` — Generate daily HomeBase overview with voice/text summary
271
+ - `/status` — View active sessions, pending approvals, and dev servers
272
+ - `/sessions` — List recent goal sessions and their outcome status
273
+ - `/actions` — Start, stop, or view logs for project dev servers and commands
274
+ - Inline interactive buttons for one-tap **Approve**, **Accept Review**, or **Request Changes**.
275
+
276
+ ---
277
+
278
+ ## MCP (Model Context Protocol) Integration
279
+
280
+ RDC includes a native Model Context Protocol (MCP) server so external IDE assistants (Claude Desktop, Cursor, Antigravity/Gemini) can inspect HomeBase state, create sessions, and query tasks.
281
+
282
+ Add to your MCP configuration (e.g. `claude_desktop_config.json`):
283
+
284
+ ```json
285
+ {
286
+ "mcpServers": {
287
+ "remote-dev-ctrl": {
288
+ "command": "rdc-mcp",
289
+ "env": {
290
+ "RDC_URL": "http://127.0.0.1:8420"
291
+ }
292
+ }
293
+ }
294
+ }
295
+ ```
296
+
297
+ ---
298
+
299
+ ## REST & WebSocket APIs
300
+
301
+ Full interactive Swagger documentation is available at `http://localhost:8420/docs`.
302
+
303
+ | Endpoint | Method | Description |
304
+ |----------|--------|-------------|
305
+ | `/ws/state` | `WS` | Real-time state synchronization (sessions, actions, agents, terminals) |
306
+ | `/terminals/{id}/ws` | `WS` | Full duplex PTY binary and ANSI terminal stream |
307
+ | `/homebase/brief` | `GET` | HomeBase overview, active sessions, spoken brief audio URL |
308
+ | `/sessions` | `GET`, `POST` | List or create goal-first supervised sessions |
309
+ | `/sessions/{id}` | `GET`, `PATCH` | Inspect session details, criteria, and outcomes |
310
+ | `/sessions/{id}/evidence` | `GET`, `POST` | Query or attach Git diff, verification logs, and media |
311
+ | `/sessions/{id}/criteria` | `GET`, `POST` | Manage acceptance criteria status (`passed`, `failed`, `waived`) |
312
+ | `/sessions/{id}/approvals` | `GET`, `POST` | List and approve pending agent command execution requests |
313
+ | `/actions` | `GET` | Discover and monitor dev servers and one-shot commands |
314
+ | `/actions/{id}/start` | `POST` | Start a dev server or execute a verification command |
315
+ | `/settings/agent-providers` | `GET`, `POST` | Query readiness and self-register AI agent wrappers |
316
+
317
+ ---
318
+
319
+ ## Architecture & Codebase Layout
320
+
321
+ ```
322
+ src/remote_dev_ctrl/
323
+ ├── cli.py # Typer CLI application (rdc)
324
+ ├── server/
325
+ │ ├── app.py # FastAPI application & route declarations
326
+ │ ├── session_manager.py # Supervised session lifecycle & terminal monitors
327
+ │ ├── channel_manager.py # Workstream channels, messaging, and events
328
+ │ ├── channels/ # Telegram bot, voice runtime (Deepgram Aura), phone
329
+ │ ├── agent_registry.py # Wrapper specifications, provider policies, readiness
330
+ │ ├── orchestrator.py # Task queue and background agent process lifecycle
331
+ │ ├── terminal.py # PTY terminal manager, sessions, and ANSI buffer relay
332
+ │ ├── processes.py # Managed actions (dev servers & one-shot commands)
333
+ │ ├── browser.py # Chrome CDP integration & screencast viewer
334
+ │ └── db/ # SQLite repositories (rdc.db, tasks.db, logs.db, auth.db)
335
+ frontend/src/
336
+ ├── layouts/ # Desktop, Mobile, and Kiosk responsive viewports
337
+ ├── features/
338
+ │ ├── sessions/ # Goal-first sessions hub, session viewer, proof artifact
339
+ │ ├── channels/ # Workstream sidebar, chat, and live action panels
340
+ │ ├── terminal/ # xterm.js terminal view, virtual keyboard overlay
341
+ │ ├── right-tabs/ # Services, commands, ports, and action logs
342
+ │ ├── browser/ # CDP screencast browser viewer & PinchTab preview
343
+ │ └── voice/ # HomeBase voice brief panel & speech playback
344
+ ```
345
+
346
+ ---
347
+
348
+ ## Contributing
349
+
350
+ Contributions are welcome! Please feel free to submit issues or pull requests on [GitHub](https://github.com/dawalama/remote-dev-control).
351
+
352
+ 1. Fork the repository
353
+ 2. Create your feature branch (`git checkout -b feat/my-new-feature`)
354
+ 3. Run tests (`uv run pytest tests/`)
355
+ 4. Commit your changes
356
+ 5. Push to the branch (`git push origin feat/my-new-feature`)
357
+ 6. Open a Pull Request
358
+
359
+ ---
360
+
361
+ ## License
362
+
363
+ [MIT](LICENSE) © 2026 Dawa