Skip to content

Releases

v2026.10.16

Choose a tag to compare

@github-actions github-actions released this 16 Oct 08:22
a48c181

miloco v2026.10.16

Since v2026.9.11: 144 commits, 23 PRs, 351 files changed (+52,087 / −2,700).

🎯 New Features

  • LAN control through the local central hub (@HCl8): home automation requests now prefer the central hub over the cloud — a short-lived mTLS channel to the hub on the LAN, with MIPS as the low-latency control path, and property push sources picked per device (local where possible) instead of always over the cloud. On macOS, the backend is launched through a signed launcher and a LaunchAgent, which lets it control the local network without tripping Local Network Privacy. Device online/offline subscriptions are kept coherent with account changes on both sides of every mips rebuild.

  • IoT property changes can drive rules (@Zirconi): a rule's condition can now subscribe to MIoT device properties — a pushed property change immediately re-judges the rule's condition instead of waiting for the next perception cycle. Sources are reconciled per device, closed rules unsubscribe, and conditions set up this way are disallowed on duration rules. rule create gets the new condition parameters and diagnostic output.

  • Rules can guard other rules (@Zirconi): a new guard direction turns a rule into a precondition for other rules of the same task — its condition is evaluated as background state instead of an event, and entries of sibling rules are held until the guard is satisfied, then released. Pending entries survive state flushes and restarts, and a sibling exiting no longer refreshes the guard.

  • Perception runtime flow graph (@Zirconi): a live view of the perception pipeline — stages, gate pass/fail, and dropped windows with their drop reason — for debugging what the engine actually saw.

  • Action ledger entries link back to the event that caused them (@ExWang): the Web log page folds each action under its triggering event as a child row, with the strength level switchable, and events can be looked up by their parent key; actions afterwards can be fetched as a whole group per event.

  • Image-sequence mode for omni visual input (@Molly-3000, opt-in via perception.engine.input.omni_visual_input_mode): instead of one encoded MP4, the perception engine can send a time-ordered JPEG sequence plus a separate m4a audio track. Both modes share one canonical frame pipeline, so switching modes does not change what the model sees. Video remains the default; the video-mode request and prompt are unchanged bit for bit.

  • Identity recognition prompt now shows each track an appearance frame (@ExWang): when several tracks need recognition in the same window, each gets a single frame of its own appearance to disambiguate against, instead of only a shared scene view.

🧠 Perception Stability

  • The roster and bounding boxes are no longer treated as "someone is present" (@ExWang): conclusions can no longer be drawn from stale member names or boxes when the current detection evidence does not back them.
  • The omni fuse no longer black-holes misclassification (@lixiangnlp): the OPEN_CONFIG failure path is fixed at its root — the audio block was missing the OpenAI-required format field — and a slow-cycle probe now auto-recovers classifications the fuse used to lock out forever.
  • Perception logs no longer print timing on every line (@Zirconi).

⚙️ Improvements: CLI / Web

  • Live-stream WebSocket backpressure (@HCl8): each subscriber gets a bounded queue instead of sharing one — slow subscribers drop stale video frames instead of stalling everyone, init control messages are never evicted, and a dead connection is declared after 20 s.
  • Token handling no longer puts the cart before the horse (@ExWang): a new token lands in the database before its side effects run, queries and reads are gated on the credential actually being usable, and when the cloud permanently rejects an authorization the backend stops pretending, surfaces the reason, and shows it in the UI, health check and ledger.
  • Model dropdown recognizes the full Gemini family (@ExWang): models that the configured endpoint supports are shown even if they were never seen before — the picker no longer reports a bad key when the list is simply unknown.
  • Default omni model switched to mimo-v2.6-flash (@idootop), with the model description updated across configurations.
  • Miloco plugin install/reload no longer fails on the host's 5-second service deadline (@HCl8): miloco-backend starts in the background and CLIs tearing down an unready service no longer eat the caller's budget.
  • Hermes/OpenClaw installs keep their Miloco paths and environment (@leavingme): rerun-safe install home preservation, per-runtime capability probing, and acceptance tests that assert the environment actually works end to end.
  • Hermes trace accounting fixed for persistent sessions (@Zirconi): a turn's accounting state is released when the turn ends, so a long-lived session no longer silently misses most turns; the suggestion lane moves to persistent sessions, and trace metadata is evicted by a rolling cap.
  • Web activity-feed fixes (@ExWang): events no longer disappear behind action rows; reconnect backfills no longer steal the generation token or skip missed pages; failures settle into a persistent error bar with a working retry.

🔒 Security / Supply Chain

  • PyAV pinned below 19 (@Zirconi): version 19 introduced a per-thread SwsContext whose teardown from another thread deadlocks after fork, freezing the whole process; the pin avoids the fork-time deadlock.

📚 Docs

  • Third-party component license list completed (@Zirconi).

🙏 Acknowledgements

Special thanks to @HCl8 for landing the local central hub — the biggest change in this release — giving the home a control path that does not depend on the cloud.

Thanks as well to everyone else who contributed: @Zirconi, @ExWang, @Molly-3000, @lixiangnlp, @leavingme, @GOUKI9999, @idootop

v2026.9.11

Choose a tag to compare

@github-actions github-actions released this 11 Sep 11:55
d879877

miloco v2026.9.11

Since v2026.8.6: 181 commits, 15 PRs, 267 files changed (+36,522 / −3,028).

Camera IP direct-connect is back. v2026.8.6 reverted it in full because the native library shipped alongside it could crash the camera process with SIGSEGV on some older camera models. The library is fixed (miss 3.2.14) and direct-connect returns in this release, together with a silent-stream watchdog that reconnects a camera whose connection is alive but producing no frames.

🎯 New Features

  • Rules and tasks re-architected — a task can now carry several rules, and entering and leaving no longer have to be opposites (@Zirconi): the biggest change in this release. A rule used to judge the condition, hold the state, decide entry/exit, and run the action all at once, so one task meant exactly one rule and the exit condition had to be the negation of the entry condition. Responsibility is now split by output: rules produce edges only, while state, actions, ledger, and notification belong to the task. mode ∈ {event, state} is replaced by direction ∈ {enter, exit, session, milestone}, which says which action slot an edge feeds. New capabilities: non-reciprocal tasks (a V-sign enters, a wave exits — two unrelated rules on one task), OR aggregation (several enter rules on one task; the second is absorbed as already_in_state and the action fires once), exit-type rules whose own entry edge is mapped to a leave signal, and milestones decided server-side from the record source against a threshold instead of an in-memory flag. Milestone rules are derived, generated by the server from on_target action + duration accounting + target_minutes, so the agent's existing rule create --on-target-desc path keeps working unchanged. Database user_version 3 → 4 as expand-contract phase A: columns are added, none removed; old rows migrate event → enter and state → session, with actions moved from the rule onto the task. Tasks that would become invalid (an exit with no way in, a session mixed with other rules, an incomplete on_target setup) are suspended during migration with the reason recorded.
  • A single in-process view of what the home looks like right now (@Zirconi): a layered key-value state container at iot/device/<did>/…, with subscription by path pattern (* for one segment, ** for any depth), writes allowed from any thread and callbacks delivered on the main event loop. Device state is now kept live in it: the current home's readable properties are pulled once at startup, and after that online/offline pushes and property-change pushes keep it current, with a re-pull when a device comes back online to fill in leaves it was missing. The scope is the currently enabled home only — switching account, unbinding, or switching home bumps a scope generation, cancels the in-flight alignment, clears the container, and starts over, so writes from the old scope can no longer land. Offline devices get only their online flag written, never cached properties, so the container never reports stale readings as fresh. Consumers such as agent context and rule triggers come later.
  • Rule actions can trigger Mi Home scenes directly (@Zirconi): previously a scene could only be described in on_enter_desc and handed to the agent. Measured on a live rule (6 triggers), the first action landed in 7.0–13.5 s via the agent versus about 0.5 s through the engine, at 240k–310k tokens per trigger versus zero. Scenes also get proper attribution now — the agent path recorded them as source='cli' with no rule id, indistinguishable from someone typing the command by hand. Scene actions are forced non-idempotent with a cooldown of at least one minute, since a scene has no readable current value to compare against.
  • Account-wide device online/offline subscriptions (@HCl8): device list now reflects online state in real time instead of only scope camera list. Bind and unbind events subscribe and unsubscribe directly, subscription reconciliation for meta / state / scene shares one concurrency limit and one coalesced background loop, and after an mips instance is rebuilt (re-OAuth or token refresh) the subscription mirror is rebuilt from what the SDK actually replayed — leaving it stale in either direction would either lose a device's pushes permanently or leak a subscription on the broker.
  • Token usage accounted by model name plus Base URL, and the Models page rebuilt around it (@ExWang): the same model name can be configured against different endpoints, and usage used to merge them into one row — worse, daily rollup keyed on (date, model, call type) summed them and then deleted the source rows, silently and unrecoverably. Identity is now the (model, endpoint) pair across recording, reading, grouping and clearing, with a migration that runs in one transaction and fails backend startup rather than leaving a half-converted table. Rows from before the migration are labelled in the UI as not having recorded a URL rather than being back-filled with a guess. The page becomes two columns side by side, with collapsible cards, a configurable refresh interval, a chart colour set that passes contrast and colour-blind separation in both themes, and clearing by time range or by individual entry instead of all-or-nothing.
  • Camera IP direct-connect, with a silent-stream watchdog and cross-NAT diagnostics (@HCl8): the native library is updated to miss 3.2.14 across all four platforms, fixing the heap-corruption crash that forced the v2026.8.6 revert. Direct-connect works across subnets — the LAN IP is passed to the camera at creation, unicast probes are sent to every camera with a known LAN IP rather than relying on broadcast, and a camera already connected counts as reachable. A camera whose connection is alive but emits no frames is now detected and reconnected, using two thresholds: 30 s since the last frame for a channel that has produced frames, and 90 s since subscription for one whose first frame never arrived.
  • HEIC/HEIF photo upload (@ExWang): iPhones have stored HEIC by default since iOS 11, and every upload path rejected it outright. Decoding now goes through one entry point with a Pillow/libheif fallback, wired into all user-supplied-bytes endpoints. This also closes a silently broken path that had nothing to do with HEIC support: HEIF and MP4 share the ISO BMFF container, so a still photo was being classified as a video, and ffmpeg exposes a HEIC as dozens of separate tiles rather than stitching them — the pipeline would run to completion on a single 512×512 tile and report "no valid subject" with no error anywhere. Format is now decided by container brand at the CLI, at pet observe, and when re-checking the client-declared media kind.
  • Smart Crop can be turned off per camera (@Molly-3000): whether cropping helps is a per-viewpoint judgement — a narrow doorway camera gains little, a wide living-room camera gains a lot. A third per-camera gate joins the two global ones, stored as a deny-list keyed by composite did so the two channels of a dual-lens camera can differ. Defaults are unchanged, the engine reads it per perception window so changes take effect on the next window without a restart, and scope camera list now reports both the stored preference and whether all three gates are actually open.

🧠 Perception Stability

  • Empty windows no longer reach the model (@Zirconi): when a video track had no data for a window — a decoder waiting for a keyframe, a buffer overflow flush, a reconnect — the window still went to omni, the encoder added no video block, and the model was effectively asked what was happening in the scene with nothing but a schema to go on. The fabricated caption then persisted, pushed over SSE, and reached the agent indistinguishably from a real one. In one 7.5-hour production log covering 12,158 windows, 6 had zero frames, 3 of those passed the hold gate, and all 3 results were invented — one produced a suggestion that was dispatched to the agent. Snapshots with neither frames nor audio are now dropped per device rather than per batch, so one blind camera in a room with several does not slip through.
  • Per-frame detection state now crosses the identity boundary, and two coasting gates were added (@ExWang): the tracking layer correctly marked whether a frame had a real detection hit and at what confidence, but the semantic track type had nowhere to put it, so the identity engine fell back to defaults — every active track was treated as freshly detected at full confidence. A coasting box sits at the last true match and grows stale, so this meant crops from stale boxes could be written into the identity library, names could be pinned to the wrong person when several people share a frame, real people could be judged occluded and denied library entry, and recognition calls were spent on background. The fields are now carried across the seam, the stranger pool and the offline-video sampler both check for a real hit before taking a crop, and identity-drift self-check compares the evidence itself so an unchanged window no longer votes twice toward revoking a confirmed identity.

⚙️ Improvements: CLI / Web

  • OpenClaw plugin works on OpenClaw 2026.8.x (@HCl8): the host moved from a session store to session entries with a delivery route, so notify could not find a session; the plugin now picks a path by runtime capability and reads the delivery target from either shape. Published artifacts no longer carry devDependencies.openclaw, which made the host crash while resolving plugin dependencies, and both install.py and sync-to-remote.sh probe for --accept-capabilities and pass it when the host requires consent. Verified against 2026.4.29 (correctly refused by the version gate), 2026.5.2, 2026.6.11, 2026.8.2 and 2026.9.1.
  • install-hermes.sh syncs perception models by content (@Zirconi): the step skipped any model file that already ...
Read more

v2026.8.6

Choose a tag to compare

@github-actions github-actions released this 06 Aug 08:45
03eea87

miloco v2026.8.6

Since v2026.7.17: 175 commits, 29 PRs, 250 files changed (+27,347 / −2,886).

Hotfix for v2026.8.5. On v2026.8.5 the camera process could die with SIGSEGV on some older camera models, taking perception down with it; newer models were unaffected. The cause was traced to the updated miss native library that shipped alongside camera IP direct-connect, so that feature is reverted in full (@Zirconi) and will come back once the library is fixed. If your cameras are already stable on v2026.8.5, the only other change here is the Smart Crop scaling rework listed under Perception Stability. Everything else from v2026.8.5 is intact and listed below.

If the crash took your backend down with it, the dashboard's upgrade banner won't reach you — upgrade from the command line instead:

curl -LsSf https://github.com/XiaoMi/xiaomi-miloco/releases/latest/download/install.sh | bash

On a healthy v2026.8.5 the banner appears on its own, but the release check is cached for 6 hours — click "check for updates" in the sidebar to see it immediately.

🎯 New Features

  • Pet recognition (experimental, off by default) (@ExWang): the largest change in this release. Pets become first-class family members — a pet roster with structured identities, multi-image registration with reference crops persisted and injected into the fused perception prompt, appearance-text matching with an explicit abstain discipline, and body grounding for non-cat/dog species. Ships with a full Web management UI (registration flow, auto-generated appearance, editable profiles, reference-image counts), a CLI command group, and a miloco-miot-pet-register agent skill. Gated behind features.* flags, get/set-able from the CLI.
  • Smart Crop — adaptive resolution before OMNI inference (@Molly-3000): crops the active region out of each perception window before inference, so the model sees the subject at usable resolution instead of a full frame downscaled. Two independent config switches, the crop scaled proportionally until it just fits the panorama frame of the same video_short_edge tier, crop video + full-frame reference persisted side by side, and crop coordinates recorded into the trace. Frame selection uses per-frame human/cat/dog detection boxes inside the window and excludes no_person false detections. Enabled by default.
  • Upgrade notice and one-click self-upgrade in Web (@hlccd): opening the dashboard checks GitHub releases/latest once (server-side cached, with a force re-check) and shows a dot next to the sidebar version plus a dismissible top banner; confirming runs the official install.sh in non-interactive agent mode, detached so it survives the backend restarting itself, and the front end polls /upgrade/status through download → install → restart. Release deployments only — dev (git) deployments are pointed at git pull. If GitHub is unreachable it degrades silently rather than erroring.
  • Process CPU and thread-count charts on the Perf page (@Zirconi): per-process CPU and thread count tracked as a time series with dual axes, CPU normalized to 0–100%, and in-bucket peaks surfaced so a one-minute full-core spike isn't averaged away in the 24h / 3d views.
  • Agent action ledger (@LeonJoeeee): persistent audit of every agent-initiated device control, TTS, and scene trigger, merged into the event page timeline.
  • On-demand perception log (@Molly-3000): actively querying the log now persists its result with artifact storage, front-end display, clip playback, and feedback.
  • Per-camera perception prompt (@HCl8): each camera can carry its own perception-guidance prompt, injected at the tail of the system prompt for both video and audio paths.
  • Urgency filter for suggestion → agent dispatch (@Molly-3000): perception.min_suggestion_urgency filters which suggestions reach the agent, exposed through the admin API and CLI, and surfaced in Web as a 3-stop slider plus an "agent interruption threshold" three-way selector in the settings drawer.
  • Task name and trigger status in rule-reminder logs (@Molly-3000): logs now show which task and which rule fired, with a collapsed-state badge for the backend's trigger verdict.
  • Editable task trigger conditions in Web (@idootop): task detail consolidated into a single edit entry point.
  • Manual avatar replacement for family members (@ExWang): explicit avatars are stored separately under avatars/, with in-browser cropping.

🧠 Perception Stability

  • Latent memory leaks hardened, and the stale match / centroid cache on cluster-centroid change fixed (@idootop): _match_cache invalidation widened from member-set to centroid change and extended to fetch-side embedding backfill and partial cluster-member eviction; dead clusters evicted from _centroid_cache; _drained trimmed regardless of full_action.
  • Decoder worker leak on reconnect fixed (@Zirconi): stop() now joins before clearing the reference, returns False on timeout so the camera can consume it concurrently, and a failure mid-stop no longer aborts the rest of the cleanup.
  • KleidiAI disabled on the silero VAD CPU-EP session and the EventEmbedder session, via a shared apply_kleidiai_opt_out helper with CI-enforced spy tests (@idootop).
  • Smart Crop robustness: bad config now fails closed, crop rejection reasons are observable, degenerate/out-of-bounds coordinates fold into a single 410, and a corrupt trace no longer swallows the entire reference-frame card (@Molly-3000).
  • Smart Crop scaling rewritten around one geometric rule (@Molly-3000): the short-edge budget is gone — a crop is now scaled proportionally until it just fits the panorama frame the same native frame would produce at the same video_short_edge tier. Verified by exhaustive check over 4 source resolutions × 4 tiers × ~890k region sizes: encoded pixels never exceed the same-tier panorama, and subject pixel density is never lower than it. Behavior change: the ceiling is now the same-tier panorama frame rather than the native frame, so a crop can exceed native pixel count when video_short_edge is set above the source's short edge — same as panorama encoding already did. The crop_enhance.crop_short_edge config key is removed; a leftover key in config.json is silently dropped by the existing unknown-key filter and does not block startup.
  • Pet-recognition correctness: the registration size gate switched to absolute size + linear area ratio (large sharp pets no longer rejected), multiple_pets now requires same-frame co-occurrence (a broken track no longer reports one pet as many), subject tracks count real frames, and pool eviction keeps gate-passers first (@ExWang).
  • Plugins grant butler capabilities without overriding the host agent's identity; the backend event body and the habit-suggest skill no longer make the agent refer to itself as miloco (@idootop).
  • Deploy-timezone handling aligned with the CLI write path via ZoneInfo for UTC configs (@HCl8).

🚀 Performance

  • Idle thread pools trimmed across libraries (@Zirconi): every library defaulted to one thread per CPU core, which sits mostly idle on a single low-quality stream. swscale pixel conversion pinned to 2 threads, video decode to 4, OpenCV to 4, the ONNX detector / reid down from 4 to 2, and a new TINY_MODEL_THREADS=1 used by dedup and VAD, where fork-join costs more than it saves.
  • SQLite free pages actually reclaimed now (@Zirconi): PRAGMA incremental_vacuum is driven by consuming its result set, and the missing fetchall meant each cleanup reclaimed exactly one page while pages freed by DELETE piled up — a production observability.db had 142.5 MB of free pages inside 222.8 MB. Reclaim is now capped per run, split into short write transactions, validated against the auto_vacuum mode, and moved to a worker thread since it is real blocking I/O.

⚙️ Improvements: CLI / Web

  • Habit-suggestion state machine moved from the plugin tool into miloco-cli (@HCl8), for both the OpenClaw and Hermes plugins, which is what lets plugins/openclaw and plugins/hermes shed ~1,900 lines between them.
  • Web loading behavior reworked: skeleton placeholders instead of a permanent skeleton on API failure, loading initialized to true to kill the first-frame "load failed" flash, the settings drawer no longer exposes default slider values before data arrives, and the log tab no longer flashes stale history before going blank (@Molly-3000).
  • Device status semantics clarified in Web (@wei-dou).
  • Pet reference-image lookup switched to functools.lru_cache, dropping a module-level try-once global (@ExWang).
  • Rule-reminder log labels trimmed to "task / rule" across backend and front end (@Molly-3000).

🔒 Security / Supply Chain

  • Avatar and pet reference-image endpoints hardened (@ExWang): on-disk extension decided by content magic bytes rather than the filename, realpath containment checks on avatar paths, subject_id validated in the storage layer, uploaded bytes verified as images, person_id anchored with \Z to reject trailing newlines, and a size gate applied before the body is read into memory instead of after.
  • Log-injection fixes flagged by CodeQL: CR/LF stripped from read_crop_meta logging (@Molly-3000); path and log injection closed in the pet and avatar paths (@ExWang); an empty except in perf sampling given a debug log (@Zirconi).
  • Rule short-name stripping now collapses whitespace before matching and narrows its regex to ASCII on both sides, closing a task_id leak through whitespace-leading names, plus free-text prompt-injection guards (@Molly-3000).
  • PR AI-review job timeout raised 30 → 60 minutes (@ExWang); offline eval artifacts and sampling lists added to .gitignore so subject labels can't leak through (@Molly-3000).

📚 Docs

  • Full-chain resolution table added — capture / streaming / omni / crop / provider, with the source and conversion at each tier (@...
Read more

v2026.8.5

Choose a tag to compare

@github-actions github-actions released this 05 Aug 14:07
eebd84a

miloco v2026.8.5

Since v2026.7.17: 171 commits, 26 PRs, 269 files changed (+28,623 / −2,942).

🎯 New Features

  • Pet recognition (experimental, off by default) (@ExWang): the largest change in this release. Pets become first-class family members — a pet roster with structured identities, multi-image registration with reference crops persisted and injected into the fused perception prompt, appearance-text matching with an explicit abstain discipline, and body grounding for non-cat/dog species. Ships with a full Web management UI (registration flow, auto-generated appearance, editable profiles, reference-image counts), a CLI command group, and a miloco-miot-pet-register agent skill. Gated behind features.* flags, get/set-able from the CLI.
  • Smart Crop — adaptive resolution before OMNI inference (@Molly-3000): crops the active region out of each perception window before inference, so the model sees the subject at usable resolution instead of a full frame downscaled. Two independent config switches, short-edge upscaling by tier when the crop is below budget, crop video + full-frame reference persisted side by side, and crop coordinates recorded into the trace. Frame selection uses per-frame human/cat/dog detection boxes inside the window and excludes no_person false detections. Enabled by default.
  • Upgrade notice and one-click self-upgrade in Web (@hlccd): opening the dashboard checks GitHub releases/latest once (server-side cached, with a force re-check) and shows a dot next to the sidebar version plus a dismissible top banner; confirming runs the official install.sh in non-interactive agent mode, detached so it survives the backend restarting itself, and the front end polls /upgrade/status through download → install → restart. Release deployments only — dev (git) deployments are pointed at git pull. If GitHub is unreachable it degrades silently rather than erroring.
  • Camera IP direct-connect, with cross-NAT streaming diagnostics (@HCl8): cameras on a different subnet can now be streamed directly — the cloud localip field is parsed correctly (previously read as local_ip, so direct-connect silently never worked), unicast probing moved to its own socket isolated from broadcast, and already-connected cameras count as LAN-reachable. When a cross-subnet stream stalls, the camera card now says what to do ("join the same network, or switch to full-cone / open NAT") instead of just failing. Scanning pauses once every known camera is connected.
  • Process CPU and thread-count charts on the Perf page (@Zirconi): per-process CPU and thread count tracked as a time series with dual axes, CPU normalized to 0–100%, and in-bucket peaks surfaced so a one-minute full-core spike isn't averaged away in the 24h / 3d views.
  • Agent action ledger (@LeonJoeeee): persistent audit of every agent-initiated device control, TTS, and scene trigger, merged into the event page timeline.
  • On-demand perception log (@Molly-3000): actively querying the log now persists its result with artifact storage, front-end display, clip playback, and feedback.
  • Per-camera perception prompt (@HCl8): each camera can carry its own perception-guidance prompt, injected at the tail of the system prompt for both video and audio paths.
  • Urgency filter for suggestion → agent dispatch (@Molly-3000): perception.min_suggestion_urgency filters which suggestions reach the agent, exposed through the admin API and CLI, and surfaced in Web as a 3-stop slider plus an "agent interruption threshold" three-way selector in the settings drawer.
  • Task name and trigger status in rule-reminder logs (@Molly-3000): logs now show which task and which rule fired, with a collapsed-state badge for the backend's trigger verdict.
  • Editable task trigger conditions in Web (@idootop): task detail consolidated into a single edit entry point.
  • Manual avatar replacement for family members (@ExWang): explicit avatars are stored separately under avatars/, with in-browser cropping.

🧠 Perception Stability

  • Latent memory leaks hardened, and the stale match / centroid cache on cluster-centroid change fixed (@idootop): _match_cache invalidation widened from member-set to centroid change and extended to fetch-side embedding backfill and partial cluster-member eviction; dead clusters evicted from _centroid_cache; _drained trimmed regardless of full_action.
  • Decoder worker leak on reconnect fixed (@Zirconi): stop() now joins before clearing the reference, returns False on timeout so the camera can consume it concurrently, and a failure mid-stop no longer aborts the rest of the cleanup.
  • KleidiAI disabled on the silero VAD CPU-EP session and the EventEmbedder session, via a shared apply_kleidiai_opt_out helper with CI-enforced spy tests (@idootop).
  • Smart Crop robustness: bad config now fails closed, crop rejection reasons are observable, upscaling is capped per axis so an upscaled frame can't exceed the original, degenerate/out-of-bounds coordinates fold into a single 410, and a corrupt trace no longer swallows the entire reference-frame card (@Molly-3000).
  • Pet-recognition correctness: the registration size gate switched to absolute size + linear area ratio (large sharp pets no longer rejected), multiple_pets now requires same-frame co-occurrence (a broken track no longer reports one pet as many), subject tracks count real frames, and pool eviction keeps gate-passers first (@ExWang).
  • Plugins grant butler capabilities without overriding the host agent's identity; the backend event body and the habit-suggest skill no longer make the agent refer to itself as miloco (@idootop).
  • Deploy-timezone handling aligned with the CLI write path via ZoneInfo for UTC configs (@HCl8).

🚀 Performance

  • Idle thread pools trimmed across libraries (@Zirconi): every library defaulted to one thread per CPU core, which sits mostly idle on a single low-quality stream. swscale pixel conversion pinned to 2 threads, video decode to 4, OpenCV to 4, the ONNX detector / reid down from 4 to 2, and a new TINY_MODEL_THREADS=1 used by dedup and VAD, where fork-join costs more than it saves.
  • SQLite free pages actually reclaimed now (@Zirconi): PRAGMA incremental_vacuum is driven by consuming its result set, and the missing fetchall meant each cleanup reclaimed exactly one page while pages freed by DELETE piled up — a production observability.db had 142.5 MB of free pages inside 222.8 MB. Reclaim is now capped per run, split into short write transactions, validated against the auto_vacuum mode, and moved to a worker thread since it is real blocking I/O.

⚙️ Improvements: CLI / Web

  • Habit-suggestion state machine moved from the plugin tool into miloco-cli (@HCl8), for both the OpenClaw and Hermes plugins, which is what lets plugins/openclaw and plugins/hermes shed ~1,900 lines between them.
  • Web loading behavior reworked: skeleton placeholders instead of a permanent skeleton on API failure, loading initialized to true to kill the first-frame "load failed" flash, the settings drawer no longer exposes default slider values before data arrives, and the log tab no longer flashes stale history before going blank (@Molly-3000).
  • Device status semantics clarified in Web (@wei-dou).
  • Pet reference-image lookup switched to functools.lru_cache, dropping a module-level try-once global (@ExWang).
  • Rule-reminder log labels trimmed to "task / rule" across backend and front end (@Molly-3000).
  • miot unit tests now actually run in CI — norecursedirs had excluded the whole directory, so they never had (@HCl8).

🔒 Security / Supply Chain

  • Avatar and pet reference-image endpoints hardened (@ExWang): on-disk extension decided by content magic bytes rather than the filename, realpath containment checks on avatar paths, subject_id validated in the storage layer, uploaded bytes verified as images, person_id anchored with \Z to reject trailing newlines, and a size gate applied before the body is read into memory instead of after.
  • Log-injection fixes flagged by CodeQL: CR/LF stripped from read_crop_meta logging (@Molly-3000); path and log injection closed in the pet and avatar paths (@ExWang); an empty except in perf sampling given a debug log (@Zirconi).
  • Rule short-name stripping now collapses whitespace before matching and narrows its regex to ASCII on both sides, closing a task_id leak through whitespace-leading names, plus free-text prompt-injection guards (@Molly-3000).
  • Unicast probe replies filtered against a source-IP allowlist (@HCl8).
  • PR AI-review job timeout raised 30 → 60 minutes (@ExWang); offline eval artifacts and sampling lists added to .gitignore so subject labels can't leak through (@Molly-3000).

📚 Docs

  • Full-chain resolution table added — capture / streaming / omni / crop / provider, with the source and conversion at each tier (@Molly-3000).
  • Smart Crop's two config switches renamed by configuration layer, with the CLI-writes-config.json failure path documented (@Molly-3000).
  • create-task skill tightened (@Zirconi): the TTS action JSON contract documented, Rule.action "play fixed text" scoped to speakers, the perception-viewpoint section given a "no single camera subject" branch, and cross-references realigned.
  • One-click upgrade documented as a feature page, with troubleshooting entries (@hlccd).
  • Perception-guidance injection wording aligned between the system-prompt tail and the video+audio paths (@HCl8).

🙏 Acknowledgements

Special thanks to @ExWang for landing experimental pet recognition — the biggest change in this release — and to @Molly-3000 for Smart Crop.

Thanks as well to everyone else who contributed: @Zirconi, @hlccd, @LeonJoeeee, @HCl8, @idootop, @wei-dou

models

models Pre-release
Pre-release

Choose a tag to compare

@idootop idootop released this 04 Aug 06:33
206f7fe

Permanent asset host for Miloco perception ONNX models. Do not delete this release or its tag — scripts/models.lock.json pins these assets by sha256, and every source build (scripts/build.sh) / CI run fetches them from here.

本 Release 是感知 ONNX 模型的在线托管,请勿删除。仓库通过 scripts/models.lock.json 以 sha256 锁定这些资产;源码构建(scripts/build.sh)与 CI 均从这里下载。

Files

File Size sha256 Required
det_4C.onnx 42.6 MiB 9cf73f24e22e3040af55d0a9ea676d9bdf486d6d2f43febacf24957ef05a09b9 yes
human_body_reid_v2.onnx 10.0 MiB dc70121835336bcd342be0d3f5baba350e94c605b8da886a6efd2f3357fa3f29 yes
bge-small-zh-v1.5-int8.onnx 22.8 MiB 5f994d88aa50acc6218552cef84e8774e1a5991e1cb286a46af064ed491863f8 no
bge-small-zh-v1.5-tokenizer.json 429 KiB 48cea5d44424912a6fd1ea647bf4fe50b55ab8b1e5879c3275f80e339e8fae26 no
silero_vad.onnx 2.2 MiB 1a153a22f4509e292a94e67d6f9b85e8deb25b4988682b7e174c65279d8788e3 no

Required / optional follows perception/engine/resource_validator.py. Missing optional models only degrade the corresponding feature.

Usage

python3 scripts/fetch_models.py          # download + verify into the perception models dir
python3 scripts/fetch_models.py --check  # verify only

Replacing an asset

Upload the new file here (same filename, --clobber), then refresh the pinned hashes:

bash scripts/publish_models.sh refresh-lock

Bytes are identical to those previously tracked in git at commit 206f7fe (removed from git in favour of this release to keep clones and CI checkouts small).

v2026.7.17

Choose a tag to compare

@github-actions github-actions released this 17 Jul 13:52
d8e5816

miloco v2026.7.17

Since v2026.7.3: 117 commits, 43 PRs, 321 files changed (+35,996 / −3,526).

🎯 New Features

  • Hermes Agent compatibility layer (@n0tssss): establishes the plugins/<runtime>/ convention so miloco can host pluggable agent runtimes.
  • Dual-camera multi-channel dual-stream perception (@Ada-xia): each channel of a multi-lens camera is promoted to an independent first-class camera, with its own dual-stream perception per channel.
  • Omni provider adapter + multi-model support (@Molly-3000): a protocol adapter layer lets omni target multiple model providers, selectable from a new settings UI; adds a native Gemini adapter with media_resolution control and thinking-mode off.
  • Runtime omni_fps hot-reload (@Molly-3000): change perception FPS live without rebuilding the engine, reloading models, or losing tracks; window_size-only changes also skip model reload.
  • Tasks promoted to a dedicated tab (@idootop): full task CRUD, a detail drawer, description editing, and an agent-guidance dialog, backed by new task-detail / description-edit APIs.
  • Auto-managed scheduled-tasks toggle (@idootop): opt in/out of miloco's scheduler from both CLI and Web, backed by a shared scheduler.enabled config contract and an admin scheduler-config endpoint.
  • Multiple IM notification channels for OpenClaw (@gao19970120): fan notifications out across several IM channels.
  • Per-camera microphone toggle (@LeonJoeeee): hard mic-off semantics, per camera.
  • Camera availability as tri-state metrics (@Ada-xia): availability split into three explicit states, with in_use = the active set.

🧠 Perception / Omni Stability

  • omni "can't recognize a registered member" fixed: registration now writes the real name into meta.json, and orphan / storage-path drift is made observable to help diagnose the "no registered members" symptom (@ExWang).
  • When the identity gallery is empty, member matching is skipped and repeat recognition is slowed to save pointless omni spend (@ExWang).
  • The perception "rest" toggle now persists across restart / re-auth instead of silently resetting (@ExWang).
  • omni circuit breaker (@Zirconi); persistent event loop + async ONNX inference, fixing a thread leak (@HCl8).
  • Perception logs narrowed to the cameras that actually triggered the event (@Molly-3000).

📷 Camera

  • Unperceived devices gain a manual-refresh action, a reason bubble when a toggle can't be enabled, and the room label moved next to the device name (@ExWang).
  • Manual-refresh spinner fixes: it reflects only the current refresh (no longer borrowed by other list reloads), persists until the list actually updates, and its reason is announced to screen-reader / keyboard focus (@ExWang).

⚙️ Improvements: CLI / Install / Web / Version

  • Device spec output grouped by service and annotated with each service's description (@HCl8).
  • CLI treats only negative MIoT result codes as device-control failure; positive codes no longer misreport (@LeonJoeeee).
  • Install: perception-model extraction moved earlier, and missing / corrupt models now hard-fail instead of degrading silently (@Zirconi); proxy-environment install failure fixed (@zivyuan).
  • Schedule migration (@Zirconi).
  • CoreML temp-model-file leak fixed — unbounded $TMPDIR growth replaced with a bounded reuse cache (@ExWang).
  • Version numbers unified across all modules — front/back-end share one source, real base + retained commit (@yangbaofu007).
  • Timezone: added to the config-set whitelist with a UTC-deploy warning; all agent-visible times anchored to the home deploy timezone (@LeonJoeeee).
  • Stale queued messages expire by TTL before sending; today's perception log injected into agent context; miloco agent sessions reset on home switch (@idootop).

🔒 CI / Supply Chain

  • OpenGrep install avoids GitHub API anonymous rate limiting, dedups the install step, and asserts architecture (@ExWang).

📚 Docs

  • Knowledge base realigned with post-2.0-open-source code and converged to spec (@hlccd).
  • Perceive-logs usage and auth info corrected in the user guide (@feng183043996); timezone configuration chapter added, host-timezone-first (@LeonJoeeee); README header consolidated into a centered div with line-folded badges (@idootop).

🙏 Acknowledgements

Special thanks to @n0tssss for landing the Hermes Agent compatibility layer — the biggest change in this release.

Thanks as well to everyone else who contributed: @Ada-xia, @Molly-3000, @idootop, @LeonJoeeee, @ExWang, @HCl8, @Zirconi, @gao19970120, @yangbaofu007, @zivyuan, @hlccd, @feng183043996

v2026.7.3

Choose a tag to compare

@github-actions github-actions released this 03 Jul 08:12
0f5e55d

miloco v2026.7.3

Since v2026.6.18: 120 commits, 26 PRs, 160 files changed (+12,732 / −3,218).

🎯 New Features

  • Event-feedback packaging (@Molly-3000): one-click feedback on a perception event that locally packages its trace + gallery assets. The post-feedback view shows the package path, offers an "Open folder" action, and links to a Feishu survey. Backed by fail-closed PII redaction, a 2 GB disk-quota fallback, the real Mi Home uid, and full EN/ZH i18n.
  • Conversational first-run setup (miloco-onboarding) (@LeonJoeeee): on a fresh install the backend proactively sends a setup invitation, delivered straight to the user's IM chat via the owner channel. It guides the user through seven segments (members, device nicknames, usage habits, timezone, …) to register family members and the home profile — writing each entry only after user confirmation — and hooks into system events.

🧠 Perception / Omni Stability

  • no_person false-detection guarding (@ExWang): misdetected objects are no longer treated as people; adds a self-healing path so it can't get permanently stuck, and only lifts suppression on a genuine multimodal verdict.
  • OmniEventArtifacts container + omni-trace persistence (@Zirconi): removes the legacy omni_log module.
  • observe: unidentified subjects now uniformly display "Unidentified"; prevents duplicate candidate entries and fabricated identities (@idootop).
  • omni no longer misuses injected home-profile names; refreshes profile.md after a member is added/registered (@ExWang).
  • perception gate hold default 360s→90s, now surfaced explicitly in settings.yaml (@Zirconi); event text time aligned to the agent prompt's window start (@Molly-3000).
  • identity: pet class_id mapped to ObjectType.PET (@zackzmai).

📷 Camera / Codec

  • Streaming and perception feeding now share the same selection criterion, converging over-quota cameras; camera native sessions are stopped when perception is disabled or the home is removed (@Ada-xia).
  • Fixed a race between H264LiveEncoder close() and _encode_sync (@zackzmai); added G711A/G711U audio decoders (@chliny).
  • Upgraded onnxruntime to 1.27.0, fixing a KleidiAI convolution workspace memory leak (@ExWang).
  • Normalized sub_devices so devices with sub-devices no longer crash CameraInfo validation (@Ada-xia); added "Xiaomi Smart Home Screen Pro 8" to the wifispeaker allowlist (@chliny).
  • Fixed duration overcounting when multiple cameras exit simultaneously (@sqliu07).

⚙️ Improvements: Web / Rules / Patrol / Notify / Devices

  • In-dashboard model-config management (@chliny, @ExWang): the Models page now supports editing / enabling / disabling / deleting model configs on top of its previous read-only view, with a two-stage real connectivity check.
  • CLI doctor command rework (@Zirconi): split into probe/assess layers with active connectivity probing (UDP exposes the real egress interface; ping sends 3 packets), plus i18n, streaming output, backend-version display, and macOS lo0 compatibility.
  • New /api/admin/version endpoint (@Zirconi), with a wheel-deployment fallback.
  • home-patrol redesigned as a ledger + fixed-lookback (@idootop); rule runner state consolidated into a RuleRuntimeState dataclass (@Zirconi).
  • notify: 60s dedup fallback for identical messages (@idootop).
  • MIPS subscribes to device cloud online/offline state (@zackzmai); settings gains a server.url / host+port consistency validator (@chliny).

🔒 Network / CI / Supply Chain

  • LAN: skip down interfaces instead of aborting socket init (@HCl8).
  • All GitHub Actions pinned to commit SHAs; dependency-guard supports /allow-dependencies-change comment approval; hardened PR review + fork support (@HCl8).
  • Backend minimum Python raised to 3.11 (docs + install scripts, @ExWang).

🙏 Acknowledgements

Thanks to everyone who contributed to this release: @Molly-3000, @LeonJoeeee, @ExWang, @Zirconi, @chliny, @Ada-xia, @zackzmai, @idootop, @HCl8, @sqliu07

v2026.6.18

Choose a tag to compare

@github-actions github-actions released this 18 Jun 10:46
f1807b5

What's New

  • 2026-06-18 — Miloco 2.0 officially released: re-architected as an OpenClaw plugin, adding general common sense, identity recognition, home memory, household tasks, proactive intelligence, and a home dashboard. See Core Features below.

Core Features

  • General Common Sense — No preset rules required. Built-in common sense automatically detects hazards and raises tiered alerts (e.g. a child playing with knives, an elderly person falling).
  • Identity Recognition — Fuses identity signals such as faces and body posture, with the large model recognizing family members. Supports proactively registering new members and identity-based personalized operations.
  • Home Memory — Distills long-term habits and preferences of family members from perception and interaction, used as a reference when the Agent makes proactive decisions. Stable long-term habits can also trigger proactive reminders or be promoted into automatically executed household tasks.
  • Household Tasks — Upgrades from single "condition-triggered rules" to complex, long-running household tasks: conditional automation ("turn on the lights when someone enters"), scheduled reminders ("remind me to take medicine every day"), habit tracking ("exercise half an hour daily"), and more. Once triggered, the Agent understands the intent and executes autonomously.
  • Proactive Intelligence — Built on the four foundational capabilities—general common sense, identity recognition, home memory, and household tasks—the system observes, reasons, and intervenes at the right time like a butler with common sense who knows the family and can plan ahead, getting things done before the user even asks.
  • Home Dashboard — A user-facing web dashboard for viewing a real-time overview of the home, Mi Home devices, family members and profiles, and the history of past events.

Tip

Raise your own Miloco. Its out-of-the-box behavior won't always match your taste—just tell Miloco through OpenClaw (e.g. "don't remind me when the place is messy"), and it remembers your preference and adjusts what it does proactively. Every remark "raises" a Miloco that's tuned to your home, and it knows you better the longer you live with it.

Prerequisites

  • Hardware: ≥ 4GB RAM and ≥ 256GB storage recommended, running 24/7. A Mac mini is recommended.
  • Operating System: macOS / Linux (run under WSL on Windows).
  • Xiaomi account + devices already added to Mi Home.
  • Multimodal large model API key — Xiaomi MiMo is recommended: MiMo-v2.5 for perception, MiMo-v2.5-pro for the Agent (configured in OpenClaw).

Caution

Cost note: Miloco 2.0's perception and Agent rely primarily on cloud-based large models and will incur ongoing API usage costs—keep an eye on your usage. You can review token consumption on the "Models" page of the home dashboard.

v0.1.2

Choose a tag to compare

@yangbaofu007 yangbaofu007 released this 28 Nov 13:14
69d424b

Changed

  • The main server supports the macOS platform, and AI engine is coming.
  • Fixed some known bugs。

v0.1.1

Choose a tag to compare

@yangbaofu007 yangbaofu007 released this 21 Nov 08:00
2535165

Changed

  • 摄像头列表从白名单改成黑名单,更好适配新出的摄像头

Fixed

  • 修复部分设备Spec解析错误无法控制的问题
  • 修复灯的开关是反的问题
  • 修复dark模式下显示的问题
  • 修复文档和安装脚本的若干问题