A "sane" LLM chat application for a specific kind of nerd (me).
  • Rust 71.7%
  • Svelte 13.1%
  • TypeScript 12.3%
  • SCSS 0.7%
  • Nix 0.7%
  • Other 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lys 02617177a1
All checks were successful
ci / build (push) Successful in 3m49s
docs: reconcile tool integration plan with review findings
2026-11-14 21:55:24 +02:00
.cargo chore(ci): bump tombi to 1.11.2 and reformat TOML for it 2026-11-13 23:06:58 +02:00
.forgejo fix(ci): pin formatter image and exclude makepkg outputs 2026-11-14 03:20:44 +02:00
assets docs(readme): add a screenshot of the running app 2026-11-14 02:28:03 +02:00
crates fix(stream-parser): correct SSE framing and isolate selected choice 2026-11-14 05:06:40 +02:00
docs docs: reconcile tool integration plan with review findings 2026-11-14 21:55:24 +02:00
frontend fix(sidebar): place collapse toggle beside new conversation 2026-11-14 21:16:27 +02:00
packaging chore(release): prepare 1.1.0 2026-11-14 05:27:19 +02:00
scripts/ci ci: enforce the runtime-linkage and no-blocking invariant gates 2026-11-13 23:29:08 +02:00
.dockerignore feat: add custom Dockerfile + fix CI for good hopefully 2026-08-02 07:48:13 +03:00
.envrc chore: clang on not-nix too 2026-08-01 08:39:27 +03:00
.gitignore fix(ci): pin formatter image and exclude makepkg outputs 2026-11-14 03:20:44 +02:00
.harper-dictionary.txt chore: some fixups 2026-07-28 11:07:32 +03:00
.markdownlint-cli2.jsonc fix(ci): pin formatter image and exclude makepkg outputs 2026-11-14 03:20:44 +02:00
AGENTS.md docs: reconcile implemented features and agent guidance 2026-11-14 02:39:32 +02:00
bacon.toml style: multi-formatter setup 2026-07-24 07:51:37 +03:00
Cargo.lock chore(release): prepare 1.1.0 2026-11-14 05:27:19 +02:00
Cargo.toml chore(release): prepare 1.1.0 2026-11-14 05:27:19 +02:00
clippy.toml fix(dev): markdownlint adapter, false-green, splicing, policy gaps 2026-08-01 02:27:11 +03:00
dprint.json feat: design token core, paired light/dark themes (#5) 2026-08-02 10:48:56 +03:00
flake.lock chore: bump flake 2026-11-14 00:12:38 +02:00
flake.nix chore(release): prepare 1.1.0 2026-11-14 05:27:19 +02:00
Justfile ci: enforce the runtime-linkage and no-blocking invariant gates 2026-11-13 23:29:08 +02:00
LICENSE feat: IPC codegen 2026-08-02 02:51:06 +03:00
paseo.json chore: drop dead dioxus, electron, and nightly references 2026-11-13 23:03:23 +02:00
README.md docs(release): prepare 1.0.0 and define upgrade compatibility 2026-11-14 03:10:57 +02:00
rust-analyzer.toml docs: work towards domain stuff 2026-07-25 00:24:13 +03:00
rust-toolchain.toml chore: move to stable 2026-11-13 22:47:18 +02:00
rustfmt.toml chore: get the flake working 2026-07-20 19:38:51 +03:00
sermones-dev.toml fix(ci): pin formatter image and exclude makepkg outputs 2026-11-14 03:20:44 +02:00

Sermones

sermō (noun, 3rd declension, masculine)

  1. 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.”

  2. a rumor, diction, speech, talk, discourse

  3. a language, manner of speaking

  4. 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.

Sermones in dark mode: one conversation about why the sky is blue, two replies with the first reasoning trace collapsed and the second expanded, and the composer with Qwen 3.8 27B (Local) selected

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, qttools for qmake); development and CI run against 6.8. QtWebEngine brings Chromium's runtime with it.
  • Rust stable (rustup picks up rust-toolchain.toml).
  • pnpm (the version is pinned in frontend/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.