Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
docs: bring the README up to the current product, rewrite CONTRIBUTING and SECURITY
Ruben Lütke04a46e85df54
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mddeleted file mode 100644index cb1a27c924..0000000000--- a/CODE_OF_CONDUCT.md+++ /dev/null@@ -1,132 +0,0 @@-# Contributor Covenant Code of Conduct--## Our Pledge--We as members, contributors, and leaders pledge to make participation in our-community a harassment-free experience for everyone, regardless of age, body-size, visible or invisible disability, ethnicity, sex characteristics, gender-identity and expression, level of experience, education, socio-economic status,-nationality, personal appearance, race, caste, color, religion, or sexual-identity and orientation.--We pledge to act and interact in ways that contribute to an open, welcoming,-diverse, inclusive, and healthy community.--## Our Standards--Examples of behavior that contributes to a positive environment for our-community include:--* Demonstrating empathy and kindness toward other people-* Being respectful of differing opinions, viewpoints, and experiences-* Giving and gracefully accepting constructive feedback-* Accepting responsibility and apologizing to those affected by our mistakes,- and learning from the experience-* Focusing on what is best not just for us as individuals, but for the overall- community--Examples of unacceptable behavior include:--* The use of sexualized language or imagery, and sexual attention or advances of- any kind-* Trolling, insulting or derogatory comments, and personal or political attacks-* Public or private harassment-* Publishing others' private information, such as a physical or email address,- without their explicit permission-* Other conduct which could reasonably be considered inappropriate in a- professional setting--## Enforcement Responsibilities--Community leaders are responsible for clarifying and enforcing our standards of-acceptable behavior and will take appropriate and fair corrective action in-response to any behavior that they deem inappropriate, threatening, offensive,-or harmful.--Community leaders have the right and responsibility to remove, edit, or reject-comments, commits, code, wiki edits, issues, and other contributions that are-not aligned to this Code of Conduct, and will communicate reasons for moderation-decisions when appropriate.--## Scope--This Code of Conduct applies within all community spaces, and also applies when-an individual is officially representing the community in public spaces.-Examples of representing our community include using an official email address,-posting via an official social media account, or acting as an appointed-representative at an online or offline event.--## Enforcement--Instances of abusive, harassing, or otherwise unacceptable behavior may be-reported privately to the community leaders responsible for enforcement via the-project's Discord (https://discord.gg/x7USduHxbc) — direct-message a maintainer.-All complaints will be reviewed and investigated promptly and fairly.--All community leaders are obligated to respect the privacy and security of the-reporter of any incident.--## Enforcement Guidelines--Community leaders will follow these Community Impact Guidelines in determining-the consequences for any action they deem in violation of this Code of Conduct:--### 1. Correction--**Community Impact**: Use of inappropriate language or other behavior deemed-unprofessional or unwelcome in the community.--**Consequence**: A private, written warning from community leaders, providing-clarity around the nature of the violation and an explanation of why the-behavior was inappropriate. A public apology may be requested.--### 2. Warning--**Community Impact**: A violation through a single incident or series of-actions.--**Consequence**: A warning with consequences for continued behavior. No-interaction with the people involved, including unsolicited interaction with-those enforcing the Code of Conduct, for a specified period of time. This-includes avoiding interactions in community spaces as well as external channels-like social media. Violating these terms may lead to a temporary or permanent-ban.--### 3. Temporary Ban--**Community Impact**: A serious violation of community standards, including-sustained inappropriate behavior.--**Consequence**: A temporary ban from any sort of interaction or public-communication with the community for a specified period of time. No public or-private interaction with the people involved, including unsolicited interaction-with those enforcing the Code of Conduct, is allowed during this period.-Violating these terms may lead to a permanent ban.--### 4. Permanent Ban--**Community Impact**: Demonstrating a pattern of violation of community-standards, including sustained inappropriate behavior, harassment of an-individual, or aggression toward or disparagement of classes of individuals.--**Consequence**: A permanent ban from any sort of public interaction within the-community.--## Attribution--This Code of Conduct is adapted from the [Contributor Covenant][homepage],-version 2.1, available at-[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].--Community Impact Guidelines were inspired by-[Mozilla's code of conduct enforcement ladder][Mozilla CoC].--For answers to common questions about this code of conduct, see the FAQ at-[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at-[https://www.contributor-covenant.org/translations][translations].--[homepage]: https://www.contributor-covenant.org-[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html-[Mozilla CoC]: https://github.com/mozilla/diversity-[FAQ]: https://www.contributor-covenant.org/faq-[translations]: https://www.contributor-covenant.org/translationsdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 5daef4070d..bc241b3def 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -7,8 +7,7 @@<h1 align="center">Contributing</h1><p align="center">- Thank you for helping build Personal Jarvis.<br/>- This guide covers dev setup, the architecture, what to build, and getting your PR merged.+ Dev setup, the architecture worth knowing before you touch it, and what gets a PR merged.</p><p align="center">@@ -19,19 +18,19 @@</p>> [!IMPORTANT]-> **All artifacts in this repo are English** — code, comments, docstrings, docs, commit-> messages, and PR text. You can talk to us in any language (the assistant itself speaks-> de/en/es at runtime), but everything written *into the repo* is English. CI enforces this.+> **Everything written into this repo is English**: code, comments, docstrings, docs, commit+> messages, PR text. Talk to us in whatever language you like, and the assistant itself+> speaks several at runtime, but the artifacts are English and CI checks it.---## Contents-- [Contribution priorities](#contribution-priorities)+- [What to work on](#what-to-work-on)- [Before you start](#before-you-start)- [Development environment](#development-environment)-- [Architecture in 60 seconds](#architecture-in-60-seconds)-- [Plugin, Tool, or Skill?](#plugin-tool-or-skill)+- [The architecture worth knowing](#the-architecture-worth-knowing)+- [Plugin, tool, or skill?](#plugin-tool-or-skill)- [Conventions](#conventions)- [Testing](#testing)- [Opening your PR](#opening-your-pr)@@ -39,28 +38,35 @@----## Contribution priorities+## What to work on-We value contributions in this order:+Bug fixes come first, always: crashes, wrong behaviour, lost data, anything that made the+voice path worse than it was.-| # | Priority | What it covers |-|:---:|---|---|-| 1 | **Bug fixes** | Crashes, incorrect behavior, data loss, voice-path regressions. Always top priority. |-| 2 | **Cross-platform** | Linux, macOS, Windows, headless servers. A feature that only works on one OS is *incomplete* — see [`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md). |-| 3 | **Security hardening** | Prompt injection, the instruction-source boundary, the risk-tier policy, path traversal, privilege escalation — see [`SECURITY.md`](SECURITY.md). |-| 4 | **Performance & robustness** | Voice latency budgets, retry logic, graceful degradation, the "conversation never blocks" contract. |-| 5 | **New providers / plugins** | Wake · STT · TTS · brain · harness · tool · channel. Provider-agnostic, and must pass the contract suite. |-| 6 | **New skills** | Broadly useful ones only. Generated skills land as drafts and are never auto-activated. |-| 7 | **Documentation** | Fixes, clarifications, new examples. |+After that, cross-platform work. Linux, macOS, Windows and headless servers are equal here,+and a feature that only runs on one of them is unfinished rather than done. The reasoning is+in [`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md).++Then security hardening: prompt injection, the boundary between what the user said and what+a tool merely observed, the risk-tier policy, path traversal, privilege escalation. See+[`SECURITY.md`](SECURITY.md).++Then robustness and speed, which here mostly means voice latency, retry behaviour, honest+degradation, and the rule that a conversation never blocks.++New providers and plugins are welcome across all seven groups (wake, STT, TTS, brain,+harness, tool, channel). They have to stay provider-agnostic and pass the contract suite.+New skills are welcome when they are broadly useful; generated ones land as drafts and are+never activated on their own. Documentation fixes are welcome any time.## Before you start> [!TIP]-> For anything non-trivial, **open an issue first** so we can agree on the approach — it-> saves you from a merged-PR-shaped surprise.+> For anything non-trivial, open an issue first so we can agree on the approach. It saves+> you from writing a PR that was never going to land.-- Search existing issues, and say hi on [Discord](https://discord.gg/x7USduHxbc).-- Keep each PR focused — one logical change is far easier to review and merge.+Search the existing issues, and say hi on [Discord](https://discord.gg/x7USduHxbc). Keep each+PR to one logical change; it is far easier to review and merges much faster.## Development environment@@ -80,49 +86,59 @@ python -m jarvis.ui.web.launcher # run it (add --headless for a server)```> [!NOTE]-> After editing entry-points in `pyproject.toml`, re-run `pip install -e . --no-deps` — that-> is what activates new plugins. The frontend lives in `jarvis/ui/web/frontend/`-> (`npm install`, then `npm run dev` / `npm run build` / `npm run test`).+> After editing entry-points in `pyproject.toml`, re-run `pip install -e . --no-deps`. That+> is what activates new plugins, and skipping it is the single most common reason a plugin+> "does not exist". The frontend lives in `jarvis/ui/web/frontend/`: `npm install`, then+> `npm run dev` / `npm run build` / `npm run test`.++## The architecture worth knowing++Personal Jarvis is an 8-layer system. Four rules matter before you write anything:++Higher layers reach lower ones only through the protocols in `jarvis/core/protocols.py`.+Anything sideways goes over the EventBus as a typed, immutable event.-## Architecture in 60 seconds+Everything streams. `Brain`, `STT`, `TTS` and `Harness` methods return an `AsyncIterator`,+and a provider that cannot stream yields exactly one element.-Personal Jarvis is an 8-layer system. The rules that matter for contributors:+No vendor is load-bearing. Never hardcode one brain provider; `cfg.brain.primary` decides.-- **Higher layers reach lower layers only through protocols** (`jarvis/core/protocols.py`); lateral communication is only via typed, immutable events on the **EventBus**.-- **Streaming-first** — `Brain`/`STT`/`TTS`/`Harness` methods return `AsyncIterator`; non-streaming providers yield exactly one element.-- **Provider-agnostic** — never hardcode one brain vendor; `cfg.brain.primary` selects.-- **Router-Brain dispatches** to interchangeable harnesses; heavy work runs as **missions** in isolated `git worktree` branches under a Worker-Critic loop.+The router dispatches rather than doing. Heavy work becomes a mission in an isolated+`git worktree`, under a worker and critic loop.-For the deep dive, read [`docs/architecture-overview.md`](docs/architecture-overview.md), [`CLAUDE.md`](CLAUDE.md) (binding conventions), and [`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md) (the cross-platform, cloud-first doctrine).+For the deep version, read [`docs/LLM-CONTEXT.md`](docs/LLM-CONTEXT.md), which is a dense+engineering snapshot, [`CLAUDE.md`](CLAUDE.md) for the binding conventions, and+[`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md) for the cross-platform doctrine.-## Plugin, Tool, or Skill?+## Plugin, tool, or skill?-The most common design question — pick the smallest thing that fits:+The most common design question. Pick the smallest thing that fits:-| | **Plugin** | **Tool** | **Skill** |+| | Plugin | Tool | Skill ||---|---|---|---|-| **What it is** | A swappable *provider* | A brain-callable *action* within a turn | An authored, multi-step *workflow* |-| **Where it lives** | `jarvis/plugins/<group>/` in one of 7 groups | Registered tool, run via `ToolExecutor` | Authored skill; generated ones start as `draft` |-| **Golden rule** | No `import jarvis.*` inside the module; new STT/Brain/Tool/Channel must pass `tests/contract/` | **Never** call `Tool.execute()` directly | **Never** auto-activated |+| What it is | A swappable provider | A brain-callable action inside one turn | An authored, multi-step workflow |+| Where it lives | `jarvis/plugins/<group>/`, one of 7 groups | Registered tool, run via `ToolExecutor` | Authored skill; generated ones start as `draft` |+| The rule you cannot break | No `import jarvis.*` in the module; new STT/Brain/Tool/Channel must pass `tests/contract/` | Never call `Tool.execute()` directly | Never auto-activated |-**Rule of thumb:** a swappable backend → **plugin**; a single brain-callable action → **tool**; an authored multi-step workflow → **skill**.+A swappable backend is a plugin. A single action the brain can call is a tool. A multi-step+workflow somebody wrote down is a skill.## Conventions-These keep the project coherent — most are enforced in CI:+Most of these are enforced in CI, so you will find out either way. Better to know first:| Area | The rule ||---|---|| Language | English artifacts only (CI `language-policy` gate) |-| Risk tier | `ToolExecutor.execute()` is the **only** authorized execution path |-| Router | `ROUTER_TOOLS` is a frozenset; no spawn-tool in a worker tool set |-| Enum drift | Strings crossing module boundaries use the five-layer pattern + a parity test |-| Config writes | Mutate `jarvis.toml` only via `config_writer` (lock + tempfile + BOM-safe) |+| Risk tier | `ToolExecutor.execute()` is the only authorized execution path |+| Router | `ROUTER_TOOLS` is a frozenset; no spawn tool in a worker tool set |+| Enum drift | Strings crossing module boundaries use the five-layer pattern plus a parity test |+| Config writes | Mutate `jarvis.toml` only via `config_writer` (lock, tempfile, BOM-safe) || Subprocess | Always pass `NO_WINDOW_CREATIONFLAGS` || Secrets | Only via `get_secret()`; never in code, config, or commits |-| Dependencies | No new Windows-/GPU-specific dependency in the base install — `[desktop]` extras only |+| Dependencies | No Windows-only or GPU-only dependency in the base install; extras only |-The full anti-pattern register lives in [`CLAUDE.md`](CLAUDE.md).+The full anti-pattern register is in [`docs/LLM-CONTEXT.md`](docs/LLM-CONTEXT.md).## Testing@@ -137,29 +153,31 @@ mypy jarvis/cd jarvis/ui/web/frontend && npm run test && npm run build```-Tests use fakes (in `tests/fakes/`), not mocks. New providers must pass the contract suite.+Tests use fakes from `tests/fakes/`, not mocks. New providers have to pass the contract suite.## Opening your PR-Run through this checklist before you open it:+Run through this before you open it:- [ ] Tests pass (`pytest`), including `tests/contract/` for new providers- [ ] `ruff` and `mypy` are clean; the frontend builds and `vitest` is green-- [ ] All new/changed artifacts are English (the CI language-policy gate is required)-- [ ] New wire-format enums use the five-layer pattern + a parity test-- [ ] No new base-install dependency on Windows-/GPU-specific packages (extras only)-- [ ] User-facing changes update the docs / `CHANGELOG.md`+- [ ] Everything new or changed is English (the CI language gate is required)+- [ ] New wire-format enums use the five-layer pattern plus a parity test+- [ ] No new base-install dependency on Windows-only or GPU-only packages+- [ ] User-facing changes update the docs and `CHANGELOG.md`-Open a PR with a clear description of *what* changed and *why*, and link the issue it closes.-By contributing, you agree your contribution is licensed under the [MIT License](LICENSE).+Describe what changed and why, and link the issue it closes. By contributing you agree your+work is licensed under the [MIT License](LICENSE).## Community<p align="center"><a href="https://discord.gg/x7USduHxbc"><img alt="Discord" src="https://img.shields.io/badge/Discord-join_the_server-FFD60A?style=for-the-badge&logo=discord&logoColor=0A0A0A&labelColor=0A0A0A" /></a>+ <a href="https://x.com/Ruben_Luetke"><img alt="X" src="https://img.shields.io/badge/X-follow-FFD60A?style=for-the-badge&logo=x&logoColor=0A0A0A&labelColor=0A0A0A" /></a></p><p align="center"><a href="https://discord.gg/x7USduHxbc">Discord</a> ·+ <a href="https://x.com/Ruben_Luetke">X</a> ·<a href="https://github.com/PersonalJarvis/PersonalJarvis/issues">Issues</a></p>diff --git a/README.md b/README.mdindex 0cbbc4b05d..8a83d9663e 100644--- a/README.md+++ b/README.md@@ -38,7 +38,7 @@ with a microphone.| *"Call the clinic and book the next open appointment."* | A real outbound phone call goes out over the optional Twilio line. || *"Remember: Alex prefers Signal over email."* | Written to the Knowledge Wiki, and still known in every later session. || *"Switch the voice over to Cartesia."* | The speech provider changes while you talk, and Jarvis reads the change back to you, old then new. |-| *"Tell Nova to run the tests."* | The instruction lands in that agent's terminal in the Agentic IDE workspace. |+| *"Tell T1 to run the tests."* | The instruction lands in terminal 1 of the Agentic IDE workspace. || *"Open the browser and pull up the weather."* | Jarvis takes the mouse and keyboard and does it on your screen. |All six run on shipped code. None of them is a roadmap item. Two carry a setup cost that@@ -46,12 +46,29 @@ is not out of the box: the phone call needs the optional `[telephony]` extra pluTwilio account, a number, and a publicly reachable HTTPS URL for the webhooks. Computer useneeds a desktop install with a screen, not the headless one.-When-then triggers are a real feature too, but you cannot arm them by voice. You create-them in the Tasks view or with `jarvis tasks create`, not by saying "when X, do Y". They-fire on a clock, on an interval, or on one of Jarvis's own internal events, such as a-mission finishing or a message being sent. They do not fire on arbitrary things happening-elsewhere on your PC. What they can do is speak, run one tool, dispatch a harness, or run-an agent turn.+## Which model answers you++Three of them sit behind that table, and which one you get depends on what you asked for.+You never choose; the handover happens mid-sentence.++The **realtime model** carries the conversation. It hears you and speaks back in under a+second, and it is built for talking rather than for thinking hard.++The moment your request needs an actual tool, that turn goes to a **second model**. It is+slower than the realtime one and noticeably smarter, and it is the one that does things:+reading your wiki, changing a setting, placing the call, taking the screen. You hear the+answer in the same voice, so from the outside it stays one conversation.++Real work goes to a **third**: a coding agent that runs in an isolated copy of the+workspace, gets reviewed by a critic, and comes back with a file.++<p align="center">+ <img src="https://github.com/PersonalJarvis/PersonalJarvis/raw/main/assets/screenshots/model-tiers.png" alt="The API Keys screen with one tab per model tier: Realtime, Tool Model, and Agents" width="860" />+</p>++<p align="center">+ <sub>One tab per tier in the app, each with its own provider. You only need keys for the tiers you actually use.</sub>+</p>## Demo@@ -123,7 +140,14 @@ A deeper engineering map, with anti-patterns, bug classes, and phase status downOne command on Windows, macOS, or Linux. You need Python 3.11 or newer and Git; theinstaller checks for both and stops with a download link if one is missing. It asks nothingin the terminal. It launches the app, and the app walks you through a one-time setup for-language, wake word, and API keys. Bring your own keys, nothing is bundled.+language, wake word, and API keys.++**What it costs: nothing to us.** Personal Jarvis is MIT-licensed software you run on your+own machine. There is no subscription for it, no paid tier, no marketplace cut, and no+referral link behind any provider named on this page. What you do need is access to a+model, and that is billed by whoever provides it, straight to you. An AI subscription you+already pay for works, and so does a pay-per-token API key. The same goes for the optional+pieces: a phone call runs on your own Twilio account at Twilio's prices.**Windows** (PowerShell)@@ -156,19 +180,8 @@ bash ~/.personal-jarvis/install/uninstall.sh```Both of those run the uninstaller that is already on your disk. If it is missing or refuses-to start (installs from 1.1.0 and 1.1.1 shipped one that could not run on macOS at all),-skip it and use the app's own uninstall directly. Same job, no bootstrap involved. Add-`--dry-run` first to see what it would remove:--```bash-# macOS · Linux-~/.personal-jarvis/.venv/bin/python -m jarvis --uninstall-```--```powershell-# Windows (PowerShell)-& "$env:USERPROFILE\.personal-jarvis\.venv\Scripts\python.exe" -m jarvis --uninstall-```+to start, the app can uninstall itself instead: see+[`install/README.md`](https://github.com/PersonalJarvis/PersonalJarvis/blob/main/install/README.md#uninstalling).<details><summary><b>Optional extras, install flags, pipx & manual clone</b></summary>@@ -221,10 +234,6 @@ jarvis # full desktop: window + voice + Orb overlayjarvis serve # headless server: API + WebSocket + browser UI, no local audio needed```-<p align="center">- <img src="https://github.com/PersonalJarvis/PersonalJarvis/raw/main/assets/screenshots/app-desktop.png" alt="The Personal Jarvis desktop app" width="860" />-</p>-<details><summary><b>Headless / server notes</b></summary>@@ -258,11 +267,11 @@ voice: *"what is Mika doing?"*, *"tell Nova to run the tests"*. A focus mode narto that workspace for as long as you want, then switches back cleanly.<p align="center">- <img src="https://github.com/PersonalJarvis/PersonalJarvis/raw/main/assets/demo/agentic-ide-demo.gif" alt="A prompt arriving in one agent's terminal in the Agentic IDE, with the thinking counter running underneath it" width="860" />+ <img src="https://github.com/PersonalJarvis/PersonalJarvis/raw/main/assets/demo/agentic-ide-demo.gif" alt="A prompt arriving in one agent's terminal in the Agentic IDE, with the thinking counter running underneath it" width="620" /></p><p align="center">- <sub>A prompt lands in one agent's terminal, and the counter underneath it shows how long that agent has been thinking</sub>+ <sub>A prompt lands in one agent's terminal, carrying the task, the key files and how that part of the code works today. The counter underneath shows how long the agent has been thinking.</sub></p>### Knowledge Wiki@@ -273,11 +282,22 @@ edit, and sync it yourself.### Computer use-Jarvis takes the mouse and keyboard when you ask: opening apps, clicking, typing,-navigating. An on-screen action border shows you when it is driving. That border is drawn-by a small Qt sidecar from the `[desktop]` extra; where the sidecar is absent, on a base or-headless install and on aarch64 Linux, it degrades to a logged no-op and the control itself-still works.+Ask for something that has no API, and Jarvis takes the mouse and keyboard: opening apps,+clicking, typing, navigating. There is no scripted path per application. It works the way+you would.++The loop is perceive, act, verify. Jarvis takes a screenshot, a vision model says what to+click next, the click is made through the platform's own input layer, and then it looks+again to check that what it intended actually happened. Two details keep that honest.+Coordinates are resolved against the exact frame the model saw, not against a stale+picture of the screen, so a window that moved between two steps cannot send a click into+nothing. And every action goes through a ledger that refuses duplicates, so a model that+repeats itself does not click Send twice.++While it drives, a border sits around the screen so you can see it is not you. That border+comes from a small Qt companion in the `[desktop]` extra. Where the companion is absent, on+a base or headless install and on aarch64 Linux, it degrades to a logged no-op and the+control itself still works.### Channels and telephony@@ -302,19 +322,28 @@ Generated skills always land as drafts for your review. Nothing self-activates.### Dictation-Hold a key and talk, and what you said goes into whatever text field currently has focus,-in any application. Jarvis writes through the clipboard, sends the paste chord, and puts-your old clipboard back. There is a key you hold while speaking and a separate key that-toggles, and you can have both armed at once.--Filler sounds are stripped by plain pattern matching, per language, with no model call-involved. An optional second pass handles what pattern matching structurally cannot:-punctuation, capitalization, false starts, spoken numbers. It sits behind a hard latency-ceiling, and every one of its failure paths hands back your raw transcript unchanged. A-separate translate pass writes what you said in one fixed target language instead. Words-the recognizer keeps getting wrong go into your own dictionary, and everything dictated is-kept locally in both raw and cleaned form, so a cleanup can always be checked after the-fact.+Hold a key and talk, and what you said appears in whatever text field currently has focus.+Any application, not only this one: a browser, an editor, a chat box, a form in some+internal tool. Jarvis writes through the clipboard, sends the paste chord, and puts your+old clipboard back where it was. When a paste does not land, it says so rather than quietly+losing what you said.++One key is held down while you speak, a second one toggles, and you can have both armed at+the same time. A third pastes the last thing you dictated again, for the field that ate it.+Recognition runs on whichever speech provider you configured, and that can be a local+model, in which case your voice never leaves the machine.++Then it gets cleaned up twice. The first pass strips filler sounds by plain pattern+matching, per language, with no model involved at all. The second is optional and does what+pattern matching structurally cannot: punctuation, capitalization, false starts, spoken+numbers. It sits behind a hard latency ceiling, and every failure path hands back your raw+transcript unchanged rather than a mangled one. A separate pass translates instead, writing+what you said in one fixed target language.++Words the recognizer keeps getting wrong go into a dictionary you control. Everything+dictated is kept on your disk in both raw and cleaned form, so you can see what a cleanup+changed and take the original back. The audio is kept too, which means an entry that came+back empty because a provider was down can be transcribed again later instead of being lost.### Realtime voice@@ -402,27 +431,42 @@ an LLM chat whole.<details><summary><b>Project structure</b></summary>+Inside `jarvis/` the layout mirrors the 8-layer model, so you can usually guess where+something lives from the layer it belongs to:+```textPersonalJarvis/-├── jarvis/ # The application: every core package (brain, speech, missions, memory, UI server…)-├── ui/ # Orb overlay for the desktop; loaded by jarvis at runtime-├── board-backend/ # Standalone federation service (verifies signed Board aggregates)-├── conductor/ # YAML-first agentic-workflow canvas, mounted inside the app-├── wiki/ # Seed knowledge vault (Obsidian-compatible), created on first run-├── install/ # One-line installers + signed-release verification (cosign / TUF)-├── tests/ # Unit, integration, contract, and end-to-end suites-├── docs/ # Architecture docs, ADRs, the philosophy, design specs-├── assets/ # Brand art, banner, screenshots-├── .github/ # CI workflows + issue / pull-request templates-├── scoop-bucket/ # Windows install manifest (Scoop)-├── homebrew-tap/ # macOS install formula (Homebrew)-└── README · LICENSE · CODE_OF_CONDUCT · CONTRIBUTING · SECURITY · CHANGELOG+├── jarvis/ # The application+│ ├── core/ # L6 EventBus, protocols, config + atomic writer+│ ├── orchestrator/ # L6 State machine and turn control+│ ├── brain/ # L4 Providers, the router, the Ack-Brain, persona+│ ├── missions/ # L6 Worker and critic loop, worktree isolation+│ ├── agentic_ide/ # L6 Terminal grid, call signs, prompt delivery+│ ├── speech/ # L2 Wake → VAD → STT → TTS+│ ├── dictation/ # L2 Cleanup, clipboard insert, polish, history+│ ├── realtime/ # L2 Speech-to-speech providers+│ ├── memory/ # L6 Knowledge Wiki, awareness, long-term recall+│ ├── cu/ # L5 Computer use: see the screen, drive it+│ ├── safety/ # L3 The four risk tiers and the approval path+│ ├── channels/ # L7 Telegram, Discord, and the shared brain behind them+│ ├── telephony/ # L7 Outbound and inbound calls (optional extra)+│ ├── plugins/ # Every pluggable backend, wired by entry point+│ ├── cli_ctl/ # The jarvis / jarvisctl / jctl client+│ └── ui/web/ # L7 FastAPI server + the React desktop app+├── ui/ # Orb overlay; loaded by jarvis at runtime+├── board-backend/ # Standalone federation service (signed Board aggregates)+├── conductor/ # YAML-first agentic-workflow canvas, mounted in the app+├── wiki/ # Seed knowledge vault, created on first run+├── install/ # One-line installers + release verification (cosign / TUF)+├── tests/ # Unit, integration, contract, and end-to-end suites+├── docs/ # Architecture docs, ADRs, the philosophy, design specs+├── assets/ # Brand art, banner, screenshots, demo recordings+├── .github/ # CI workflows + issue / pull-request templates+├── scoop-bucket/ # Windows install manifest (Scoop)+├── homebrew-tap/ # macOS install formula (Homebrew)+└── README · LICENSE · CONTRIBUTING · SECURITY · TRADEMARK · CHANGELOG```-Inside `jarvis/`, the layout mirrors the 8-layer model: `jarvis/brain/` (providers and-router), `jarvis/speech/` (wake, VAD, STT, TTS), `jarvis/missions/` (the worker and critic-loop), `jarvis/memory/wiki/` (long-term memory), `jarvis/ui/web/` (the desktop app).-</details>## Documentationdiff --git a/SECURITY.md b/SECURITY.mdindex 57560ca6b6..d17059fb2c 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -1,82 +1,83 @@-# Security Policy+# Security policy-Personal Jarvis runs workloads that sit close to untrusted content — voice, web pages,-documents, and computer-use loops — so security is built into the architecture, not bolted-on. This document explains how to report a vulnerability and how the system defends itself.+Personal Jarvis works close to untrusted content. It reads web pages, documents and+screenshots, it listens to a microphone, and with the desktop extras it drives the mouse and+keyboard. That shapes how it is built, and it shapes what we consider a security bug.## Reporting a vulnerability-**Please report security issues privately — do not open a public issue.**+Report security issues privately. Please do not open a public issue.-- **Preferred:** use GitHub's private vulnerability reporting — the **"Report a vulnerability"**- button on this repository's **Security** tab. It opens a private advisory only the- maintainers can see.-- **Alternative:** reach out on [Discord](https://discord.gg/x7USduHxbc) and ask a maintainer- for a private channel before sharing any details.+The preferred route is GitHub's private vulnerability reporting: the "Report a vulnerability"+button on this repository's Security tab. It opens an advisory only the maintainers can see.+If that does not work for you, ask a maintainer on [Discord](https://discord.gg/x7USduHxbc)+for a private channel before you share any details.-Please include a clear description, the affected component, and reproduction steps. We'll-acknowledge your report as soon as we reasonably can and keep you updated on the fix. Please-give us a chance to ship a fix before any public disclosure.+Include what you found, which component it affects, and how to reproduce it. You will get an+acknowledgement as soon as we reasonably can, and updates while it is being fixed. Please+give us a chance to ship that fix before going public.## Supported versions-Personal Jarvis ships from `main`; security fixes land there. There are no long-term-support-branches — please test against the latest `main`.--## Security model--Security is enforced by the architecture, so the same guarantees hold regardless of which-providers you configure:--- **Instruction-source boundary.** Only the user — via the chat or voice interface — issues- instructions. Everything observed *through tools* (web pages, emails, documents, screenshots,- file contents) is treated as **data, not commands**. Instructions embedded in observed- content are surfaced to the user, never executed.-- **Risk-tier policy.** Every tool call is classified `safe` / `monitor` / `ask` / `block`- with the precedence *blacklist > whitelist > tool default*. `ToolExecutor.execute()` is the- **only** authorized execution path — direct `Tool.execute()` calls are forbidden.-- **Prompt-injection defenses.** The lean Router-Brain dispatches to isolated workers, and a- regex-only output filter scrubs the spoken path. Observed content cannot escalate privileges- or redirect data to endpoints it suggests.-- **Secret handling.** Secrets are accessed only through `get_secret()` (OS credential manager- → environment → `.env` dev fallback). They never live in code, config, or commits, and the- voice/chat path never accepts secrets (an STT-log-leak vector).-- **Self-modification safety.** Configuration changes go through a 10-step- *validate → backup → atomic-swap → synchronous reload → rollback → audit* pipeline, and any- generated skills are created as `draft` and never auto-activated.-- **Worker isolation.** Background workers run in fresh, isolated `git worktree` branches with- kill-on-crash containment, and never write to the user's working tree.-- **Least-privilege elevation.** Administrative actions are requested per-action and audited- over a signed (HMAC) IPC channel — never globally elevated.+Releases are cut from `main`, and security fixes land there. There are no long-term support+branches, so please test against the latest `main`.++## How it defends itself++These properties come from the architecture, so they hold no matter which providers you+configure.++**Instructions come only from you.** What Jarvis reads through a tool, a web page, an email,+a document, a screenshot, a file, is data and never a command. When observed content contains+text aimed at the agent, it gets surfaced to you instead of executed.++**Every tool call is classified before it runs.** The four tiers are `safe`, `monitor`, `ask`+and `block`, and a blacklist entry always outranks a whitelist entry. `ToolExecutor.execute()`+is the only authorized execution path; calling a tool directly is a bug, not a shortcut.++**Secrets stay out of reach.** They are read only through `get_secret()`, which goes to the OS+credential manager first, then the environment, then a `.env` fallback for development. They+never live in code, in config, or in a commit. The voice and chat paths refuse to accept a+secret at all, because a spoken API key would end up in a speech-to-text log.++**Configuration changes can be undone.** A self-modification runs through validate, back up,+swap atomically, reload synchronously, roll back on failure, and write an audit entry.+Generated skills are created as drafts and are never activated on their own.++**Workers are isolated.** Background work runs in a fresh `git worktree` with kill-on-crash+containment, and never writes into your working tree.++**Elevation is per action.** Administrative steps are requested one at a time over a signed+IPC channel and audited. Nothing runs globally elevated.## Privacy-Privacy is part of the security model, in both directions:+Your conversations, the Knowledge Wiki, your contacts and your configuration are files on+your own machine. Nothing is sent anywhere except to the providers and integrations you+configured yourself, and speech recognition can run entirely locally if you would rather no+audio leaves the machine at all. There is no analytics and no tracking in the product.-- **Your data stays yours.** Conversations, the Knowledge Wiki, contacts, and configuration- live in local files on your machine. There is no analytics or tracking built in — outbound- traffic goes only to the providers and integrations *you* explicitly configure (and speech- recognition can run fully locally if you prefer that no audio leaves the machine).-- **The repository itself is guarded.** Because a public git history is permanent, nothing- reaches this repository raw: every release is rebuilt as a depersonalized snapshot and runs- a layered, fail-closed privacy pipeline — tracked-files-only export, a distribution- denylist, deterministic PII/secret scrubbing, an independent full-snapshot review, a final- credential-shape scan, and an explicit human sign-off. Any uncertainty at any step stops- the release instead of shipping it. If you still spot personal data or a credential in the- repo or its history, report it privately (see above) — it is treated as a security issue.+On the repository side, a public git history is permanent, so the protection is preventive+rather than corrective. Personal data directories, `.env` files, the local config and all key+material are gitignored and never tracked. Credentials are blocked at commit time by hooks+that scan for key material, and GitHub's secret scanning with push protection stays on as the+backstop. A blocked push is treated as a real finding to fix, never as something to work+around. If you still find personal data or a credential in the repository or its history,+report it privately as described above. It is handled as a security issue.## Scope-**In scope:** the `jarvis` package, the desktop app, the plugin system, the tool-use and-risk-tier path, the self-modification pipeline, and the mission/worker isolation.+In scope: the `jarvis` package, the desktop app, the plugin system, the tool-use and+risk-tier path, the self-modification pipeline, and mission and worker isolation.-**Out of scope:** vulnerabilities in third-party provider APIs (report to the provider);-issues caused by user misconfiguration; and vulnerabilities in upstream dependencies (report-upstream — we track advisories via Dependabot and update as fixes land).+Out of scope: vulnerabilities in third-party provider APIs, which belong to that provider;+problems caused by your own misconfiguration; and vulnerabilities in upstream dependencies,+which belong upstream. We track those advisories through Dependabot and update as fixes land.-## A note on the threat model+## What you are actually running-Personal Jarvis is a powerful local agent: with the optional desktop extras it can see your-screen, type, run shell commands, and place calls. Treat the API keys you configure and the-permissions you grant it the way you would treat your own credentials. The defaults are-conservative; review what you enable before pointing it at production systems or sensitive data.+Personal Jarvis is a capable local agent. With the optional desktop extras it can see your+screen, type, run shell commands and place phone calls. Treat the API keys you give it and+the permissions you grant it the way you treat your own credentials. The defaults are+conservative, but review what you switch on before you point it at production systems or at+data you cannot afford to leak.diff --git a/docs/pre-launch-checklist.md b/docs/pre-launch-checklist.mdindex 6e4378221c..174ef9365b 100644--- a/docs/pre-launch-checklist.md+++ b/docs/pre-launch-checklist.md@@ -42,7 +42,7 @@ in your working tree.### Documentation & first impression- [ ] `README` — what it is, install, quickstart, screenshots that actually load.- [ ] `CONTRIBUTING.md`, `SECURITY.md` (real private reporting channel),- `CODE_OF_CONDUCT.md`, `CHANGELOG.md`.+ `CHANGELOG.md`.- [ ] `.env.example` / config-example files cover every required variable, with**no real values**.diff --git a/install/README.md b/install/README.mdindex 55f980a123..ad479184b0 100644--- a/install/README.md+++ b/install/README.md@@ -96,6 +96,37 @@ pip install rich packagingpython install/installer.py --dry-run```+## Uninstalling++The normal path is the uninstaller the installer put on disk. It removes the+install folder, the autostart entry, and the keychain entries. `--dry-run`+previews, `--yes` skips the confirmation:++```powershell+# Windows (PowerShell)+& "$env:USERPROFILE\.personal-jarvis\install\uninstall.ps1"+```++```bash+# macOS / Linux+bash ~/.personal-jarvis/install/uninstall.sh+```++If that script is missing or refuses to start, the app uninstalls itself. This+is the same job without the bootstrap wrapper, and it is the path to use on+installs from 1.1.0 and 1.1.1, which shipped an uninstaller that could not run+on macOS at all:++```bash+# macOS / Linux+~/.personal-jarvis/.venv/bin/python -m jarvis --uninstall+```++```powershell+# Windows (PowerShell)+& "$env:USERPROFILE\.personal-jarvis\.venv\Scripts\python.exe" -m jarvis --uninstall+```+## Environment overrides| Variable | Effect |