MagicHandy

module
v0.1.0-alpha.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2026 License: GPL-3.0

README

MagicHandy

A free, open-source, local-first app that lets a local AI control your Handy. Chat with an assistant to drive motion, or let Freestyle run hands-free. Conversations, settings, and credentials stay on your machine — no account, no tracking.

Status: early alpha and under active development. Local chat already drives real device motion. The current Windows build is v0.1.0-alpha.13, with a full setup EXE and portable ZIP. The binaries remain unsigned. Expect rough edges — see what's coming.

What it does

  • Chat that moves the device. A local LLM (llama.cpp or Ollama) replies and drives motion through one shared, safe motion engine.
  • Hands-free modes. Freestyle provides deterministic motion; Chat Autopilot lets the selected local model curate motion over time.
  • You stay in control. Live speed / stroke / direction controls apply instantly, and emergency Stop is one click (or Esc) on every screen.
  • Local-first and private by default. App data lives in a local database; network providers (Handy Cloud, ElevenLabs) are explicit opt-ins, never hidden dependencies.
  • Runs light. A pure-Go core that idles in tens of megabytes, not hundreds.

Requirements

  • A Handy with firmware v4 and API v3 access (for Handy Cloud or browser Bluetooth), or a user-run Intiface Central server with a supported linear actuator.
  • Windows is the primary platform today; Linux and macOS builds are best-effort.
  • A local LLM for chat: a managed llama.cpp runtime MagicHandy installs and owns, or an existing Ollama install. Models are never bundled or downloaded at startup.

Get started

For Windows x64, download the setup EXE and SHA-256 checksum file from the v0.1.0-alpha.13 release. Verify the setup hash, run it, and complete guided setup in the browser. The portable ZIP remains available when Windows integration is not wanted. No Go, Node, Python, CMake, or compiler is needed to run the core. The executables are still unsigned, so do not bypass Defender or SmartScreen if Windows classifies a new build as unsafe. Optional local model and voice choices can install their separately disclosed dependencies later.

To build from source instead, open PowerShell in the folder where you want MagicHandy and paste this entire block. It needs only Windows PowerShell and internet access:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$bootstrap = Join-Path $env:TEMP 'MagicHandy-bootstrap.ps1'
Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/MagicHandy/MagicHandy/main/bootstrap.ps1' -OutFile $bootstrap
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $bootstrap

The PowerShell bootstrap repairs WinGet and installs Git when they are missing, then installs only the dependencies needed to build the pure-Go core. Device, model, runtime, and voice choices live in the same GUI used later from Settings. Choosing managed llama.cpp downloads an official, checksum-pinned CPU or CUDA bundle without installing a compiler or CUDA Toolkit; choosing an existing Ollama install avoids that managed runtime footprint. Parakeet and local TTS remain explicit, separate GUI actions and install into app-owned data folders. Unattended flags remain available for managed deployments. Flags, voice options, model imports, updater behavior, and manual setup are covered in the Getting Started guide.

For later updates, open PowerShell in the same MagicHandy folder and run .\update.ps1. It updates the core without replaying old optional-install choices, then can open guided setup when you want to change them.

Versioned Windows builds also check the project's latest compatible GitHub Release and place an update notice in the app. Stable builds stay on stable releases; prerelease builds can follow newer prereleases. The check can be set to manual-only in Settings > General. MagicHandy never downloads or executes an update in the background. Packaged updates require explicit release-note and checksum review; the setup EXE supports over-install while preserving app data.

Prefer to build it yourself? go run ./cmd/magichandy (Go 1.25+) serves the app at http://127.0.0.1:49717 — no Node required. Details in the guide.

Privacy and safety

  • Local-first. Chat, memories, prompts, settings, patterns, and model metadata live in a local SQLite database. Your Handy connection key is a private credential — never shown back in the UI, logs, diagnostics, or exports.
  • Emergency Stop, always reachable. On every screen, even a read-only second tab. It cancels motion and planners immediately and reports honestly if a transport stop could not be confirmed.
  • You set the limits. Hands-free modes stay inside the speed and stroke limits you choose and stop the instant you say so.
  • Adults only. MagicHandy controls an intimate device. Use it responsibly and at your own risk.

Roadmap

MagicHandy is a ground-up Go rewrite of StrokeGPT-ReVibed. Working from source today: chat-driven motion (Handy Cloud, browser Bluetooth, Intiface), live controls, Freestyle, Chat Autopilot, long-term memory, editable prompt sets, a pattern/program library, voice providers with push-to-talk, and model management. The guided setup flow, portable Windows alpha, and verified managed llama.cpp bundles are available; trusted Windows signing, curated model downloads, and broader release acceptance remain. See IMPLEMENTATION_PLAN.md for the full roadmap.

MagicHandy and LSO (Local Stroke Orchestrator) are being combined into one project on this Go core.

Contributing

Contributions are welcome, from people and AI coding tools alike.

  • Start here: AGENTS.md — the shared standards for everyone, from safety non-negotiables to style guidelines.
  • The plan: IMPLEMENTATION_PLAN.md.
  • Validating a change: commands in the Getting Started guide.
  • Work happens on feature branches and merges to main by pull request with green CI and review.
Docs

License

MagicHandy is licensed under the GNU General Public License v3.0 only. See LICENSE.

Directories

Path Synopsis
cmd
import-curated-patterns command
Command import-curated-patterns explicitly loads generated review files into a local library.
Command import-curated-patterns explicitly loads generated review files into a local library.
magichandy command
Command magichandy starts the MagicHandy local HTTP server.
Command magichandy starts the MagicHandy local HTTP server.
retarget-validate command
Command retarget-validate runs the Phase 7 live-device retarget checklist.
Command retarget-validate runs the Phase 7 live-device retarget checklist.
voice-elevenlabs-worker command
Command voice-elevenlabs-worker is the ElevenLabs cloud TTS worker (ADR 0007) speaking the ADR 0003 protocol on stdio.
Command voice-elevenlabs-worker is the ElevenLabs cloud TTS worker (ADR 0007) speaking the ADR 0003 protocol on stdio.
voice-openai-tts-worker command
Command voice-openai-tts-worker adapts OpenAI-compatible speech servers to MagicHandy's ADR 0003 protocol.
Command voice-openai-tts-worker adapts OpenAI-compatible speech servers to MagicHandy's ADR 0003 protocol.
voice-parakeet-worker command
Command voice-parakeet-worker is the ASR worker (ADR 0007) speaking the ADR 0003 protocol on stdio.
Command voice-parakeet-worker is the ASR worker (ADR 0007) speaking the ADR 0003 protocol on stdio.
voice-stub-worker command
Command voice-stub-worker is a model-free voice worker speaking the ADR 0003 protocol on stdio.
Command voice-stub-worker is a model-free voice worker speaking the ADR 0003 protocol on stdio.
internal
architecture
Package architecture contains tests for internal package dependency rules.
Package architecture contains tests for internal package dependency rules.
chat
Package chat orchestrates local LLM turns into app-level semantic actions.
Package chat orchestrates local LLM turns into app-level semantic actions.
config
Package config defines startup defaults, versioned settings, and durable settings storage.
Package config defines startup defaults, versioned settings, and durable settings storage.
diagnostics
Package diagnostics records safe app traces and diagnostic exports.
Package diagnostics records safe app traces and diagnostic exports.
httpapi
Package httpapi exposes the local browser UI and core HTTP API routes.
Package httpapi exposes the local browser UI and core HTTP API routes.
llm
Package llm provides local model provider adapters.
Package llm provides local model provider adapters.
logging
Package logging creates structured loggers for the MagicHandy core.
Package logging creates structured loggers for the MagicHandy core.
media
Package media owns MagicHandy's bounded local video catalog.
Package media owns MagicHandy's bounded local video catalog.
memory
Package memory owns the user-managed long-term memory store: short facts the user chooses to keep, inject into chat, disable, or remove.
Package memory owns the user-managed long-term memory store: short facts the user chooses to keep, inject into chat, disable, or remove.
modes
Package modes implements autonomous motion behaviors (Freestyle, continuous chat) as clients of the motion engine.
Package modes implements autonomous motion behaviors (Freestyle, continuous chat) as clients of the motion engine.
motion
Package motion will own semantic motion targets, plans, sampling, retargeting, and active motion state.
Package motion will own semantic motion targets, plans, sampling, retargeting, and active motion state.
patterns
Package patterns owns the durable motion pattern and program library, authoring transforms, import/export, and visible preference feedback.
Package patterns owns the durable motion pattern and program library, authoring transforms, import/export, and visible preference feedback.
persona
Package persona owns named personalization presets.
Package persona owns named personalization presets.
processtree
Package processtree keeps app-owned worker descendants within one lifecycle.
Package processtree keeps app-owned worker descendants within one lifecycle.
store
Package store owns MagicHandy's embedded SQLite datastore, schema migrations, transaction helpers, and legacy JSON import bookkeeping.
Package store owns MagicHandy's embedded SQLite datastore, schema migrations, transaction helpers, and legacy JSON import bookkeeping.
transport
Package transport defines Handy transport contracts and deterministic fake implementations used before real device integration exists.
Package transport defines Handy transport contracts and deterministic fake implementations used before real device integration exists.
updatecheck
Package updatecheck compares the running build with MagicHandy's latest compatible GitHub release.
Package updatecheck compares the running build with MagicHandy's latest compatible GitHub release.
validation
Package validation drives repeatable hardware validation workflows.
Package validation drives repeatable hardware validation workflows.
voice
Package voice implements the optional voice worker boundary (ADR 0003): worker process lifecycle, the core-owned request queue, and status.
Package voice implements the optional voice worker boundary (ADR 0003): worker process lifecycle, the core-owned request queue, and status.
voice/elevenlabsworker
Package elevenlabsworker implements the ADR 0003 worker protocol for the ElevenLabs cloud TTS API (ADR 0007's premium non-Python path).
Package elevenlabsworker implements the ADR 0003 worker protocol for the ElevenLabs cloud TTS API (ADR 0007's premium non-Python path).
voice/openaittsworker
Package openaittsworker adapts an OpenAI-compatible text-to-speech HTTP service to MagicHandy's ADR 0003 worker protocol.
Package openaittsworker adapts an OpenAI-compatible text-to-speech HTTP service to MagicHandy's ADR 0003 worker protocol.
voice/parakeetworker
Package parakeetworker implements the ADR 0003 worker protocol for ASR by proxying to an OpenAI-compatible transcription server.
Package parakeetworker implements the ADR 0003 worker protocol for ASR by proxying to an OpenAI-compatible transcription server.
voice/protocol
Package protocol defines the versioned voice worker wire format (ADR 0003): NDJSON frames exchanged between the core and a worker process over stdio.
Package protocol defines the versioned voice worker wire format (ADR 0003): NDJSON frames exchanged between the core and a worker process over stdio.
voice/stubworker
Package stubworker implements the ADR 0003 worker protocol with no models attached.
Package stubworker implements the ADR 0003 worker protocol with no models attached.
Package web embeds the static single-page application built by Vite into web/dist.
Package web embeds the static single-page application built by Vite into web/dist.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL