> ## Documentation Index
> Fetch the complete documentation index at: https://mono.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# Contribute to Mono

> Take a change from the branch to the pull request: rules, architecture decisions, commits, tests and Mono’s language.

This repository is the open core of Mono: Node, Console, Mono Connector, model worker, topology and self-hosting. A contribution is a small change with one concern, with tests and, where needed, with an architecture decision.

> [!WARNING]
>
> The license has not been chosen yet. Until then, the project cannot accept contributions; all rights remain reserved.

> [accordion] What you need
>
> * The rules for everyone in `AGENTS.md`: the product model, the ground rules (safety by default, Nodes outward only, identity stays with the tenant, secrets nowhere, Swiss German, accessibility) and how work is done.
> * The architecture decisions (ADRs) under `docs/adr/` that your change touches.
> * For larger changes, an issue beforehand that describes the goal.
> * A local environment as in [Run from source](https://mono.mintlify.site/en/developers/run-from-source.md).

**1. Create a branch**

Fork the repository and create a branch from `main`: `feat/…`, `fix/…` or `docs/…`.

**2. Make the change**

Work with `pnpm dev` (Console in the browser), `pnpm dev:gateway` (a Node) or `pnpm dev:desktop`. If the behavior changes, change the docs and the glossary in the same PR.

**3. Write tests**

Tests are part of the change: unit tests for logic, contract tests for MCP tools (schema, permissions, approval), Playwright for the interface in light and dark, 1440 × 900 and 390 px.

**4. Check**

```bash theme={"system"}
pnpm check        # ADRs, private paths, texts, lint, types, unit tests
pnpm e2e          # for changes to the interface
pnpm e2e:desktop  # for changes that affect the desktop app
pnpm audit:ui     # the device matrix, light and dark
```

A change to the interface comes with screenshots in light and dark.

**5. Commit**

Write Conventional Commits, for example `feat(console): …`, `fix(gateway): …` or `docs(adr): …`.

**6. Open the pull request**

Fill in the checklist of the PR template. An approval in review and a green CI are needed to merge.

> [!TIP]
>
> Your PR is ready when the CI is green, the checklist is complete and open questions for the product owner are in the PR.

## Write an architecture decision

Every change to the architecture, the product model (levels, servers, apps, tools), security defaults or design rules needs an ADR in the same PR. In the repository, the `new-adr` skill helps with this.

**1. Read**

Read `docs/adr/README.md` and the ADRs listed there on the topic.

**2. Take the next free number**

Copy `docs/adr/0000-template.md` to `docs/adr/NNNN-short-title.md`. Check open branches too, so that two decisions do not get the same number.

**3. Fill it in**

Write the context, the decision (concrete and checkable), the consequences and the alternatives considered. The status is “Proposed” until it is accepted. If it replaces an older ADR, that one gets “Superseded by ADR-NNNN”.

**4. List it and check**

Add the ADR to `docs/adr/README.md`, adapt `AGENTS.md`, the glossary or the design documents if rules change, and run `node scripts/check-adr.mjs`.

## How Mono writes

Every text a person reads follows «Sprache und Ton» (`docs/design/sprache.md`). The source is de-CH; fr-CH, it-CH, rm-CH and en follow through the keys in `packages/i18n`. The rules below are for the German source; the examples are therefore German.

| Rule | Right | Not |
| - | - | - |
| Form of address | «Sie», capitalized, also in example prompts | «du» |
| Spelling | ss, quotation marks «…», nested ‹…› | the Eszett, straight or German quotation marks |
| Numbers | CHF 5’500, 98,6 %, 14:05, 15.10.2026 | CHF 5,500, 98.6% |
| Tone | factual, full sentences, only what can be measured | promises about ease or speed, exclamation marks |
| Buttons | infinitive, the verb names the result: «Speichern», «Verbindung prüfen» | «OK», «Ja», «Klicken» |
| Errors | what happened, why, what helps now | «Hoppla», «Etwas ist schiefgelaufen» |
| Terms | one term per thing: «Mandant», «Mandanten-Server», «KI-Client», «Freigabe» | «Firma» for the tenant, «AI-Client», «Approval» |

> [!TIP]
>
> Never write a text directly into an interface, always as a key. `pnpm check:i18n` checks that all five languages have the same keys.

## Open core and Mono Cloud

Mono Cloud and its infrastructure live only under the private paths from `private-paths.json`, and no part of the open core imports them; `pnpm check` enforces this boundary.

> [accordion] What does not belong in a contribution?
>
> * **Secrets, customer data, real names** of tenants, partners, hosts or accounts, not even in tests. Examples use the demo world (Muster AG, Beispiel GmbH, Treuhand Berg AG, Garage Beispiel AG, Muster IT) and hosts under `*.example`.
> * **Code for a single hosting provider.** A host builds on the Node through its seams.
> * **A new runtime dependency without a justification.** New packages are at least two weeks old.

> [accordion] How does a contribution get into the repository?
>
> Development happens in Mono’s private repository, which also holds Mono Cloud; this repository is exported from it. A merged PR is applied there with its authorship and comes back with the next export. Its commit hash may change in the process.

> [accordion] Where does a vulnerability go?
>
> Never into a public issue. The way is under [Security](https://mono.mintlify.site/en/developers/security.md).

## Next

> [card] [Run from source](https://mono.mintlify.site/en/developers/run-from-source.md)
>
> Local environment and all checks.

> [card] [Architecture](https://mono.mintlify.site/en/developers/architecture.md)
>
> The parts and their contracts.

> [card] [Security](https://mono.mintlify.site/en/developers/security.md)
>
> Report a vulnerability confidentially.

> [card] [Glossary](https://mono.mintlify.site/en/glossary.md)
>
> Mono’s terms.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.