feat(devices): multi-device task claiming β only the winning device executes a taskβ
mo
c9ee91e
- #pollTasks checks the claim response: claimed:false (another device won
the race) skips execution instead of double-running the task
- pairs with the cloud-side device registry: agents get device_id, tasks
are filtered per device, runs trace the executing device
- loadMemoryContext(): inject ~/.mona-agent/memory notes into the system
prompt at task start (capped at 3KB, per-file 800 chars)
- Few-shot protocol examples in #toolsPrompt β two perfect exemplars of the
reasonβtool/answer JSON protocol
- Verification pass now routes to the strongest available model
(profile 'complex') regardless of the worker model β critic vs actor
- Uncertainty rule: 'If you cannot verify a fact with a tool, say so plainly
instead of guessing'
- 2 new tests for the parser upgrade paths (28/28 passing)
docs: enterprise documentation suite β compliance mappings (CRA, ISO 27001, IEC 62443), threat model, data flow, audit & deployment guides, SBOM, use cases, security.txtβ
mo
5c5b617
- new docs/additional-documents/: COMPLIANCE, CRA-READINESS, ISO-27001-MAPPING, IEC-62443, THREAT-MODEL, DATA-FLOW, SECURITY-AUDIT, DEPLOYMENT-GUIDE, ENTERPRISE-FAQ, SBOM
- docs/USE-CASES.md, docs/.well-known/security.txt
- docs index + README link the additional documents section
- CHANGELOG v2.2.0 entry; versions: root 2.2.0, desktop 1.4.1
feat(brain): auto smart/cheap mode β per-task brain profiles with provider routing (simple/standard/complex heuristics, quality-first vs cost-first key ordering)
mo
bf62c9f
fix(parser): lenient answer salvage β no raw JSON leaks when the brain breaks JSON with unescaped quotes (e.g. German β..." quotes); 3 new tests
mo
d0f0aa1
feat(reasoning): deep reasoning engine β plan, act, reflect, verifyβ
mo
9b04a00
- reasoning protocol: brain replies with explicit reasoning JSON
({reasoning, tool, args} | {reasoning, answer} | plain text)
- parseBrainReply parser: tolerant to prose/fences/arrays, malformed JSON
triggers the corrective nudge instead of leaking raw JSON to users
- reflect phase: after every tool result the brain must decide whether the
goal is satisfied before acting again
- self-verification pass: the final answer is re-checked against the tool
evidence before it reaches the user (caught 'Hi RULESOK' = two words live)
- owner-tunable brain config from the cloud: maxSteps, temperature,
extraRules, verify toggle β delivered with the task queue
- agent system prompt now injected into device tasks
- temperature is forwarded to the LLM call (all 5 providers)
- 9 new parser tests (43/43 passing)
feat(trace): deep insight β live run traces with per-step usage, tokens, timing and costβ
mo
854b98d
- think() now returns { text, usage, model, provider } from the SSE stream
- run lifecycle reporting: runStart / runStep / runFinish (best-effort, never blocks the loop)
- every brain step, tool call and tool result is traced live to the cloud
- task result carries usage totals + model/provider so old paths keep working
- trace reporting is sngine-only; docker platform behavior unchanged
feat(tools): persistent memory + web research tools for the agent
mo
3046dfd
fix(cloud): WAF-safe transport β base64 bodies for agent API payloadsβ
mo
20765cf
Shared-hosting WAFs (ModSecurity on LiteSpeed) intermittently return 403
when tool results containing shell-like strings ride inside think()
payloads. All agent POST bodies (think, activity, task results, tool
results) are now base64-encoded at the transport layer and decoded
server-side β the WAF sees only opaque data. Auth, CSRF and rate
limiting remain enforced at the application layer.
Also: background shell processes now capture output to a log file and
report its path, so GUI/daemon launches are observable and debuggable.
New capabilities, so every real-world request works end to end:
- tools/apps: launch and quit desktop applications, multi-OS
(macOS open/osascript, Linux gtk-launch/pkill, Windows start/taskkill)
- tools/browser: open URLs and run searches (YouTube, Google, web) in the
default browser, multi-OS; watch mode attempts autoplay via Safari
automation with a graceful fallback
- tools/shell: background mode β GUI apps, servers and tkinter windows
detach instead of dying with the 15s timeout
- agent prompt: explicit guidance for background execution and tkinter
windows, plus the never-give-up rule
- tests: 34 passing (8 new cases for URL building and validation)
Polish:
- professional tone across all text: emojis removed from docs, CLI,
installer and logs
- dashboard template: emoji-free labels, text action buttons
(Start / Stop / Delete instead of glyphs)
Fail is never allowed:
- think() retries transient failures (network/429/5xx) with backoff
- malformed or empty brain replies trigger corrective nudges (max 2)
- tool errors inject a diagnostic hint + auto-capture a debug snapshot
(sysinfo, uname, node version) into the activity feed
- step exhaustion forces one plain-text conclusion instead of giving up
- task results are reported with retries β the conversation is never
left dangling
- daemon survives uncaught exceptions / unhandled rejections (log only)
Live-verified: broken command (exit 127) β auto-debug β brain pivoted to
a working tool β real answer.
fix(agent): robust tool-call parsing β prose, fences and nested bracesβ
mo
0b356a1
The brain sometimes wraps its tool call in a sentence or a code fence.
The old parser only matched flat JSON, so such calls were never executed
and the raw tool JSON landed in the conversation. Now the parser
extracts a balanced JSON object anywhere in the reply (string-aware
brace matching), executes it, and the loop completes with a real final
answer.
polish: community touchpoints β star/share links, CLI + installer CTAs
mo
e4af19b
fix(cli): login crash on failed verify β readline used after closeβ
mo
c02c7c8
The readline interface was closed right after the key prompt, so the
'Save anyway?' fallback on a failed verify threw ERR_USE_AFTER_CLOSE.
Close the interface only at the end of both paths.
feat(agent): agentic execution loop β the agent that actsβ
mo
181b8c1
Tasks from the dashboard now flow through a cloud task queue; the
device claims them within seconds and runs the full loop: the
mona.expert brain plans (think), the device executes local tools
(act), results stream back (observe), and the answer lands in the
conversation (deliver). Up to 8 tool steps per task, live execution
trace in the dashboard feed, zero inbound ports.
- agent.js: task poller (2s) + agentic loop with tool-call parsing
- cloud.js: pollTasks / claimTask / taskResult / postActivity
- provider-agnostic tool protocol: plain text or one JSON tool call
- docs: execution loop in ARCHITECTURE + README, CHANGELOG 2.1.0
- version bump: 2.1.0
- Restructure daemon into apps/desktop/ (bin, src, test, install.sh, package.json)
- New packages: engine (remote brain client), protocol (typed messages)
- New apps/gateway/ β local control-plane gateway for Docker platform
- Replace platform/ dir and packages/providers with monorepo layout
- Database: new initial schema migration + seeds, drop legacy mysql schema.sql
- scripts: keygen/setup updates + check-invariants
- .env.example template (no secrets); sqlite as default DB driver
- control.js: #httpStats() β POST metrics to /api/v1/agent/stats every 10s,
metrics start in connect() independent of WS; skip WS reconnect loop when
server can't upgrade (Sngine/Hostinger), keep HTTPS metrics running
- Tests: 26/26 pass