- Rust 71.7%
- Svelte 13.1%
- TypeScript 12.3%
- SCSS 0.7%
- Nix 0.7%
- Other 1.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .cargo | ||
| .forgejo | ||
| assets | ||
| crates | ||
| docs | ||
| frontend | ||
| packaging | ||
| scripts/ci | ||
| .dockerignore | ||
| .envrc | ||
| .gitignore | ||
| .harper-dictionary.txt | ||
| .markdownlint-cli2.jsonc | ||
| AGENTS.md | ||
| bacon.toml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| clippy.toml | ||
| dprint.json | ||
| flake.lock | ||
| flake.nix | ||
| Justfile | ||
| LICENSE | ||
| paseo.json | ||
| README.md | ||
| rust-analyzer.toml | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||
| sermones-dev.toml | ||
Sermones
sermō (noun, 3rd declension, masculine)
a conversation, discussion – Synonyms: alloquium, colloquium, parlamentum
Horum te mori nemo coget, omnes docebunt; horum nemo annos tuos conteret, suos tibi contribuet; nullius ex his sermo periculosus erit, nullius amicitia capitalis, nullius sumptuosa obseruatio.
— Seneca the Younger, De brevitate vitae 15
Translation: “No one of these will force you to die, but all will teach you how to die; no one of these will wear out your years, but each will add his own years to yours; conversations with no one of these will bring you peril, the friendship of none will endanger your life, the courting of none will tax your purse.”
a rumor, diction, speech, talk, discourse
a language, manner of speaking
a sermon
Sermones is an informal, UX-first chat client for LLMs on Linux, built for KDE/Plasma. Rust owns the conversation tree, provider requests, persistence, and the rendered message HTML; a Svelte frontend inside QtWebEngine is the view.
It is a single-developer tool. The 1.x series preserves user data across upgrades; see Compatibility.
What it does
- Conversations are trees. Editing a message or regenerating a reply creates a sibling, not an overwrite; abandoned branches stay reachable through a pager on the message. Rust owns the tree, the frontend sends intents and receives a rendered view of the current path.
- Streaming. Tokens render as they arrive, markdown parsed and sanitized in Rust, HTML replaced wholesale in the view. Reasoning traces and tool calls render as collapsed sections; math renders through KaTeX after sanitization.
- Any OpenAI-compatible provider. llama.cpp, OpenAI, OpenRouter, or a proxy: each provider is a record with a base URL and, where the kind demands one, an API key. Models are configured per provider and selected per conversation.
- Attachments. Send images and text files through the file picker, paste, or drag-and-drop; attachments stay with their conversation branches.
- Settings in-app. Providers, models, import-from-provider, the default model, theme, and config backups.
- Errors are visible and persistent. Failures land in a panel that does not auto-dismiss; critical and operational entries survive a restart. There are no toasts.
Requirements
- Linux with Qt 6.5 or newer (
qtbase,qtdeclarative,qtwebchannel,qtwebengine,qttoolsforqmake); development and CI run against 6.8. QtWebEngine brings Chromium's runtime with it. - Rust stable (
rustuppicks uprust-toolchain.toml). pnpm(the version is pinned infrontend/package.json; corepack resolves it) and Node.
With Nix, direnv allow or nix develop provides all of it; flake.nix is the source of truth for the native dependency list whether or not you use Nix.
Build and run
just frontend # pnpm install + vite build --watch, keep it running
just serve # cargo run --package sermones
Debug builds read frontend/dist/ from disk, so frontend edits need no cargo rebuild. For a self-contained binary, pnpm build in frontend/ and then cargo build --release: the release binary embeds dist/ and the window icon through Qt's resource system (~26 MB stripped). It does not bundle Qt or QtWebEngine — see docs/architecture/distribution.md.
Install
The release workflow packages sermones-<version>-x86_64-linux.tar.gz on a v* tag: the binary, the desktop entry, the icon, LICENSE, and this README.
Download the archive from the release page, unpack it, and install the binary and desktop integration. These commands use 1.0.0; substitute the downloaded version when installing a later release:
install -Dm755 sermones-1.0.0-x86_64-linux/sermones ~/.local/bin/sermones
install -Dm644 sermones-1.0.0-x86_64-linux/share/applications/sermones.desktop \
~/.local/share/applications/sermones.desktop
install -Dm644 sermones-1.0.0-x86_64-linux/share/icons/hicolor/scalable/apps/sermones.svg \
~/.local/share/icons/hicolor/scalable/apps/sermones.svg
Arch/CachyOS: packaging/PKGBUILD builds from the tag against system Qt 6. Nix: nix build .#default. What each vessel installs, and why nothing bundles Qt: docs/architecture/distribution.md.
sermones --version prints the version without starting the GUI.
First run
There is no default model, so the composer starts disabled. Open Settings (sidebar footer), add a provider, add or import a model, and pick it as the default.
Configuration lives in ~/.config/sermones/config.toml (respects XDG_CONFIG_HOME), schema v2:
version = 2
active_model = "local|gemma-4-12b"
[providers.local]
kind = "Llama"
display_name = "Local"
base_url = "http://localhost:8080/v1"
[models."local|gemma-4-12b"]
provider_slug = "local"
model_id_at_provider = "gemma-4:12B"
display_name = "Gemma 4 12B"
context_window = 128000
temperature = 1
[ui]
theme = "Dark"
Model keys are <provider-slug>|<model-id>, which is why the model table's keys are quoted. Backups of the pre-change file land in ~/.config/sermones/backups/config/ and are restorable from Settings. A v1 config (single [provider] table) is migrated on load.
Conversation history, attachment blobs, and the persisted error list live under ~/.local/share/sermones/ (XDG_DATA_HOME, overridable with SERMONES_DATA_DIR). The QtWebEngine profile uses Qt's application-local data location, normally ~/.local/share/sermones/QtWebEngine/Default/; SERMONES_DATA_DIR does not redirect it. Wasteful as it is, the profile directory is what makes the theme, sidebar state, and DevTools settings survive a restart.
Compatibility
Data created by any 1.x release remains usable by subsequent 1.x releases, including conversations, branches, attachments, and configuration. Format changes migrate existing data rather than requiring users to discard or recreate it. Older releases are not promised to read data written by newer releases. The UI and internal IPC are not frozen by this promise.
Development
just test # cargo nextest + frontend vitest
just lint # clippy, tombi, markdownlint-cli2, oxlint, config drift
just fmt # dprint (rustfmt, tombi, mdformat) + oxfmt
Docs live in docs/: architecture/ for how the system fits together, components/ for per-module surfaces, invariants/ for the rules that must keep holding, designs/palette.md for the design tokens. AGENTS.md is the working brief for agents in this repo.
Known rough edges are recorded rather than hidden: window resize on Wayland falls behind the pointer (a QtWebEngine widget-path latency, root-caused in docs/invariants/platform-runtime.md), Wayland is the tested backend rather than the only one, and there is no incremental syntax highlighting between chunks.
License
Apache-2.0. See LICENSE.
