Skip to content

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.

docs(contributing): a welcome page first, the reference folded away

rubenluetke10-beepe37198e3584f
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 5d633b5f87..59ed367a77 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -7,7 +7,8 @@
<h1 align="center">Contributing</h1>
<p align="center">
- Dev setup, the architecture worth knowing before you touch it, and what gets a PR merged.
+ Thanks for being here. Small PRs, friendly review, same-day help on Discord.<br />
+ Everything you need to get started fits on this screen.
</p>
<p align="center">
@@ -17,75 +18,55 @@
<a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-FFD60A?style=flat-square&labelColor=0A0A0A" /></a>
</p>
-> [!IMPORTANT]
-> **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.
-
---
-## Your first PR, in five lines
+## Your first PR in five steps
-1. Fork, then `git clone` your fork. `pip install -e . --no-deps && pip install -r requirements.txt && pip install -e ".[dev]"`
-2. Pick something from [good first issue](https://github.com/PersonalJarvis/PersonalJarvis/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22), or just fix the thing that annoyed you.
-3. Change one thing. Run `pytest -m "not slow"` (or `npm run test` in `jarvis/ui/web/frontend/` for UI work).
-4. Open the PR. Tick only the block in the template that matches your change — a docs fix owes nothing else.
-5. Stuck at any point? Ask on [Discord](https://discord.gg/x7USduHxbc). Same day, usually.
+1. **Fork and clone**, then install:
+ ```bash
+ pip install -e . --no-deps && pip install -r requirements.txt && pip install -e ".[dev]"
+ ```
+2. **Pick something.** A [good first issue](https://github.com/PersonalJarvis/PersonalJarvis/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22), or simply the thing that annoyed you.
+3. **Change one thing** and run `pytest -m "not slow"` (UI work: `npm run test` in `jarvis/ui/web/frontend/`).
+4. **Open the PR.** The template has one short block per kind of change — tick yours, skip the rest. A typo fix owes nothing else.
+5. **Stuck?** Ask on [Discord](https://discord.gg/x7USduHxbc). Someone usually answers the same day.
-Small PRs get merged. You do not need to read the rest of this file to open one, and you do
-not need to understand the whole system to fix a piece of it. Everything below is reference
-for when you go deeper.
+That's it. You don't need to read the rest of this page to open a PR, and you don't need to
+understand the whole system to fix one piece of it.
-**One exception, and it is not negotiable:** everything written into the repo is English.
+> [!TIP]
+> **A first PR doesn't have to be perfect.** If CI fails on a rule you've never heard of,
+> that's normal and not a rejection — say so in the PR and we'll walk you through it.
---
-## Contents
+## Two things worth knowing
-- [Your first PR](#your-first-pr-in-five-lines)
-- [What to work on](#what-to-work-on)
-- [Before you start](#before-you-start)
-- [Development environment](#development-environment)
-- [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)
-- [Community](#community)
+- **We write in English.** Code, comments, docs, commit messages and PR text are English so
+ that everyone can read them. Talk to us in any language you like — the repo itself stays
+ English, and CI checks that for you so you don't have to think about it.
+- **Keep each PR to one change.** Small PRs get reviewed fast and merged fast.
---
-## What to work on
-
-Bug fixes come first, always: crashes, wrong behaviour, lost data, anything that made the
-voice path worse than it was.
-
-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 [`CLAUDE.md`](CLAUDE.md) section 2.
-
-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).
+## What we'd love help with
-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
+| | |
+|---|---|
+| **Bug fixes** | Always first. Crashes, wrong behaviour, lost data, anything that made the voice path worse. |
+| **Cross-platform work** | Linux, macOS, Windows and headless servers are equal here. Making something work on a platform it didn't before is a great contribution. |
+| **Security hardening** | Prompt injection, the line between what the user said and what a tool observed, path traversal. See [`SECURITY.md`](SECURITY.md). |
+| **Speed and robustness** | Voice latency, retries, honest degradation, the rule that a conversation never blocks. |
+| **New providers and plugins** | Across all seven groups (wake, STT, TTS, brain, harness, tool, channel). Provider-agnostic, passing the contract suite. |
+| **Docs** | Any time. Unclear sentence, missing step, outdated screenshot — fix it. |
> [!TIP]
-> 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.
+> Planning something bigger than a fix? Open an issue first so we can agree on the approach.
+> It keeps you from writing a PR that was never going to land.
-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
+## Dev setup
```bash
git clone https://github.com/PersonalJarvis/PersonalJarvis ~/personal-jarvis
@@ -102,32 +83,81 @@ python -m jarvis --wizard # interactive first-run setup
python -m jarvis.ui.web.launcher # run it (add --headless for a server)
```
+Frontend: `npm install` in `jarvis/ui/web/frontend/`, then `npm run dev` / `npm run build` /
+`npm run test`.
+
> [!NOTE]
-> 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`.
+> 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 #1 reason a plugin "does not exist".
-## The architecture worth knowing
+### Running the checks
-Personal Jarvis is an 8-layer system. Four rules matter before you write anything:
+```bash
+pytest -m "not slow" # fast subset — enough for most PRs
+pytest tests/ # full suite
+pytest tests/contract/ -v # for new STT/Brain/Tool/Channel providers
+
+ruff check jarvis/ && ruff format --check jarvis/
+mypy jarvis/
+
+cd jarvis/ui/web/frontend && npm run test && npm run build
+```
+
+Tests use fakes from `tests/fakes/`, not mocks.
-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.
+---
-Everything streams. `Brain`, `STT`, `TTS` and `Harness` methods return an `AsyncIterator`,
-and a provider that cannot stream yields exactly one element.
+## Before you open the PR
-No vendor is load-bearing. Never hardcode one brain provider; `cfg.brain.primary` decides.
+The PR template scales with what you touched. Find your row, ignore the rest:
+
+| Your change | What it owes |
+|---|---|
+| Docs, comments, translations | Nothing beyond English |
+| Web UI | `npm run test` + `npm run build`, works in light **and** dark mode, a screenshot. Don't commit `jarvis/ui/web/dist/` — the maintainer rebuilds the bundle |
+| Bug fix, ordinary Python | `pytest -m "not slow"` green, a test for the fixed behaviour, `ruff` clean |
+| New provider | The above plus `pytest tests/contract/`, no `import jarvis.*` in the module, honest degradation without a key |
+| A shared contract (capability, config schema, turn-taking, credentials, OS backend) | The above plus: which platforms you touched and what the others do now, a boot on headless `python:3.11-slim`, `CHANGELOG.md` |
-The router dispatches rather than doing. Heavy work becomes a mission in an isolated
-`git worktree`, under a worker and critic loop.
+Unsure which row you're in? Open the PR and ask. We'd rather tell you in review than have
+you guess high and waste an evening.
-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
-[`CLAUDE.md`](CLAUDE.md) section 2 for the cross-platform doctrine.
+Describe what changed and why, link the issue it closes. By contributing you agree your work
+is licensed under the [MIT License](LICENSE).
+
+---
+
+## Going deeper
+
+Reference for when you want it. None of this is required for a first PR.
+
+<details>
+<summary><b>The architecture in four rules</b></summary>
+
+<br />
+
+Personal Jarvis is an 8-layer system. Four rules matter before you write anything:
-## Plugin, tool, or skill?
+1. **Layers talk through protocols.** Higher layers reach lower ones only through
+ `jarvis/core/protocols.py`. Anything sideways goes over the EventBus as a typed,
+ immutable event.
+2. **Everything streams.** `Brain`, `STT`, `TTS` and `Harness` methods return an
+ `AsyncIterator`; a provider that cannot stream yields exactly one element.
+3. **No vendor is load-bearing.** Never hardcode one brain provider; `cfg.brain.primary`
+ decides.
+4. **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 version read [`docs/LLM-CONTEXT.md`](docs/LLM-CONTEXT.md) (a dense
+engineering snapshot) and [`CLAUDE.md`](CLAUDE.md) (the binding conventions, including the
+cross-platform doctrine in section 2).
+
+</details>
+
+<details>
+<summary><b>Plugin, tool, or skill?</b></summary>
+
+<br />
The most common design question. Pick the smallest thing that fits:
@@ -135,86 +165,66 @@ The most common design question. Pick the smallest thing that fits:
|---|---|---|---|
| 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 |
+| The one rule | No `import jarvis.*` in the module; new STT/Brain/Tool/Channel must pass `tests/contract/` | Never call `Tool.execute()` directly | Never auto-activated |
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.
-> [!WARNING]
-> **A TTS provider needs four registrations, not one.** The entry point in `pyproject.toml`
-> makes it discoverable, but the config path builds providers through `_build_provider()` in
-> [`jarvis/plugins/tts/__init__.py`](jarvis/plugins/tts/__init__.py) — that is where each
-> family's own voice, model and sub-table handling lives, and where foreign values left over
-> from a previous provider get scrubbed. A provider with an entry point but no branch there
-> hits the `Unknown TTS provider` fallback: Gemini speaks instead of you, with only a log
-> line to say so. Four places: the entry point in `pyproject.toml`, then a branch in
-> `_build_provider()`, an alias set wired into `_canonical_tts_name()` so every spelling of
-> your provider resolves to one family, and an entry in `_TTS_SECRET_CANDIDATES` if it needs
-> a key — without that last one the credential gate treats it as always-available.
-
-> [!IMPORTANT]
-> **Marketplace plugins** (the connectors in the app's Plugins store — GitHub, Notion,
-> Slack, …) are a separate, fourth thing, and every NEW submission must be packaged per the
-> vendor-neutral [Agent Plugins standard v1.0.0](https://agent-plugins.org/): a directory
-> with a `plugin.json`, an `mcp.json` when the service has an MCP server, and everything
-> Jarvis-specific under the `io.github.personaljarvis` extension namespace. The field
-> mapping and the migration tracker for the existing catalog live in
-> [`docs/marketplace/agent-plugins-standard.md`](docs/marketplace/agent-plugins-standard.md).
-
-## Conventions
-
-Most of these are enforced in CI, so you will find out either way. Better to know first:
+**Marketplace plugins** (the connectors in the app's Plugins store — GitHub, Notion, Slack, …)
+are a separate, fourth thing. New submissions are packaged per the vendor-neutral
+[Agent Plugins standard v1.0.0](https://agent-plugins.org/): a directory with a
+`plugin.json`, an `mcp.json` when the service has an MCP server, and everything
+Jarvis-specific under the `io.github.personaljarvis` extension namespace. Field mapping and
+the migration tracker: [`docs/marketplace/agent-plugins-standard.md`](docs/marketplace/agent-plugins-standard.md).
-| 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 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 Windows-only or GPU-only dependency in the base install; extras only |
+</details>
-The full anti-pattern register is in [`docs/LLM-CONTEXT.md`](docs/LLM-CONTEXT.md).
+<details>
+<summary><b>Adding a TTS provider: four registrations, not one</b></summary>
-## Testing
+<br />
-```bash
-pytest tests/ # full suite (asyncio_mode=auto)
-pytest -m "not slow" # fast subset
-pytest tests/contract/ -v # mandatory for new STT/Brain/Tool/Channel providers
+The entry point in `pyproject.toml` makes a TTS provider discoverable, but the config path
+builds providers through `_build_provider()` in
+[`jarvis/plugins/tts/__init__.py`](jarvis/plugins/tts/__init__.py) — that is where each
+family's own voice, model and sub-table handling lives, and where leftover values from a
+previous provider get scrubbed. A provider with an entry point but no branch there hits the
+`Unknown TTS provider` fallback: Gemini speaks instead of you, with only a log line to say so.
-ruff check jarvis/ && ruff format --check jarvis/
-mypy jarvis/
+The four places:
-cd jarvis/ui/web/frontend && npm run test && npm run build
-```
+1. The entry point in `pyproject.toml`.
+2. A branch in `_build_provider()`.
+3. An alias set wired into `_canonical_tts_name()`, so every spelling of your provider
+ resolves to one family.
+4. An entry in `_TTS_SECRET_CANDIDATES` if it needs a key — without it the credential gate
+ treats the provider as always available.
-Tests use fakes from `tests/fakes/`, not mocks. New providers have to pass the contract suite.
+</details>
-## Opening your PR
+<details>
+<summary><b>Conventions CI enforces</b></summary>
-The checklist in the PR template **scales with what you touched**; there is no single bar
-for everybody. Pick your block and ignore the rest:
+<br />
-| Your change | What it owes |
+You'll find out either way; better to know first:
+
+| Area | The rule |
|---|---|
-| Docs, comments, translations | Nothing beyond English artifacts |
-| Web UI | `npm run test` + `npm run build`, works in light **and** dark mode, a screenshot. Do not commit `jarvis/ui/web/dist/` — the maintainer rebuilds the shipped bundle |
-| Bug fix, ordinary Python | `pytest -m "not slow"` green, a test for the fixed behaviour, `ruff` clean |
-| New provider | The above plus `pytest tests/contract/`, no `import jarvis.*` in the module, honest degradation without a key |
-| A shared contract (capability, config schema, turn-taking, credentials, OS backend) | The above plus: which platforms you touched and what the others do now, a boot on headless `python:3.11-slim`, `CHANGELOG.md` |
+| Language | English artifacts only (`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 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 Windows-only or GPU-only dependency in the base install; extras only |
-Unsure whether you are in the last row? Open the PR and ask. Guessing high wastes your
-evening; we would rather tell you in review.
+The full anti-pattern register lives in [`docs/LLM-CONTEXT.md`](docs/LLM-CONTEXT.md).
-Describe what changed and why, and link the issue it closes. By contributing you agree your
-work is licensed under the [MIT License](LICENSE).
+</details>
-> [!NOTE]
-> **A first PR does not have to be perfect.** Failing CI on a rule you had never heard of is
-> normal and is not a rejection. Say so in the PR and we will walk you through it.
+---
## Community
@@ -226,5 +236,6 @@ work is licensed under the [MIT License](LICENSE).
<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>
+ <a href="https://github.com/PersonalJarvis/PersonalJarvis/issues">Issues</a> ·
+ <a href="CODE_OF_CONDUCT.md">Code of conduct</a>
</p>