feat: JARVIS II Android Thin Client Controller - #2
Draft
MiSTRFiNGA wants to merge 2 commits into
Draft
Conversation
Adds the full jarvis_mobile/ module to port the JARVIS II agent system from HiVEMiND (Windows) to an Android Samsung Fold 7 running Ubuntu via Termux proot-distro in headless CONTROLLER mode. - jarvis_config.py: Central config; MODE=CONTROLLER, all 6 service endpoints (SD-WebUI, ComfyUI, FastAPI, Ollama, TTS, Whisper) routed to HiVEMiND Tailscale IP; ping + TCP reachability helpers. - jarvis_controller.py: Local HTTP gateway on port 8765; /status, /probe, and /proxy/<service>/<path> routes; forwards all calls to HiVEMiND; pre-flight probe against FastAPI /health. - start_brain.sh: Startup script with Tailscale connectivity check (ping + TCP fallback), venv activation, optional --probe flag, and tee'd log output to jarvis_mobile/logs/. - setup_mobile_env.sh: One-shot Termux/Ubuntu env setup — apt install, repo clone/pull, venv creation, alias injection into .bashrc/.zshrc. - patch_endpoints.py: Scans codebase for hardcoded localhost:<port> references on known service ports and rewrites them to HiVEMiND IP; --revert flag for rollback; --dry-run for preview. - .env.jarvis.template: User-editable env file template (real .env.jarvis is gitignored to keep Tailscale IP out of version control). - webui-user.sh: Documents CONTROLLER mode comment block with usage. https://claude.ai/code/session_01CUna5Kjxy4TCgJzsnGUiCH
Sets real HiVEMiND network details as defaults so clone+run works without any manual editing. All three addresses recorded as comments (IPv4 primary, MagicDNS hostname and IPv6 as alternatives). https://claude.ai/code/session_01CUna5Kjxy4TCgJzsnGUiCH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
jarvis_mobile/module to run JARVIS II in headless CONTROLLER mode on Android (Termux → proot Ubuntu → Samsung Fold 7)localhostreferencesFiles Added
jarvis_mobile/jarvis_config.pyMODE=CONTROLLER, 6 service endpoints → HiVEMiND Tailscale IP, ping + TCP helpersjarvis_mobile/jarvis_controller.py/status,/probe,/proxy/<svc>/<path>jarvis_mobile/start_brain.shjarvis_mobile/setup_mobile_env.shjarvis_mobile/patch_endpoints.pylocalhost:<port>→ HiVEMiND IP across the codebasejarvis_mobile/.env.jarvis.template.env.jarvis(gitignored)Test plan
bash jarvis_mobile/setup_mobile_env.shjarvis_mobile/.env.jarvis— setHIVEMIND_IP=100.<real.tailscale.ip>bash jarvis_mobile/start_brain.sh --probe— verify Tailscale ping passes and FastAPI probe returns PASShttp://127.0.0.1:8765/status— confirm JSON shows correct mode and endpointshttp://127.0.0.1:8765/probe— confirmhivemind_reachable: truecurl http://127.0.0.1:8765/proxy/sdwebui/sdapi/v1/optionsalias jarvisis present in shell after restarting Termux sessionhttps://claude.ai/code/session_01CUna5Kjxy4TCgJzsnGUiCH
Generated by Claude Code