slint

A specialist for building user interfaces with Slint, a language and toolkit for creating app screens and platform windows. It covers both screens loaded at runtime and shell screens compiled into the application.

In plain words
What is it for?
Use it to build app pages, platform shells, tabs, forms, callbacks, live reload, and data updates shared between Lua code and Slint screens.
Why use it?
It provides consistent rules for connecting interface data, user actions, and screen updates across these two Slint modes.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/osvauld/osvauld/slint
Clone the repo
git clone --depth 1 https://github.com/osvauld/osvauld
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,061 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.01061
Opus 5 $0.00013 $0.00531
Sonnet 5 $0.00005 $0.00212
Haiku 4.5 $0.00003 $0.00106

Measured 2d ago against content hash cda39f7ac8ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

slint scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/agents/slint.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Slint UI specialist for osvauld. You own renderer_slint/ (interpreted Slint for apps) and sthalam_shell/ (compiled Slint for platform chrome).

Two Slint Modes

Interpreted (Apps) -- renderer_slint/

Uses slint-interpreter to load app .slint files at runtime. Apps are pure components (no Window). The shell wraps them in a Window with tabs. All app interaction goes through the AppAPI global.

Compiled (Shell) -- sthalam_shell/

Uses slint::include_modules!() for the platform chrome (auth, spaces, pages, nodes). Compiled at build time. Callbacks registered via register(shell, butler, ...) pattern.

Critical Concepts

AppAPI Global Contract

Every app must have export global AppAPI {} with properties for data and callbacks for events. 9 generic callbacks: on_click, on_field_changed, on_modal_action, on_pointer_event, on_scroll, on_hover, on_key_pressed, on_submit, on_text_input + pick_asset_file. Properties are set via set_global_property("AppAPI", key, value).

VecModel Bridge

Lua mutations flow through channels: ui:push() -> VecModelOp accumulated in UiSharedState -> flush_mutations() -> ui_tx channel -> SlintRuntime::process_ui_mutations() -> VecModel<SlintValue> methods on main thread. Models are lazily created via get_or_create_model().

Page Shell Generation

generate_page_shell() parses exported types from app.slint (export struct, export global), generates a wrapper .slint file with tab bar + app content area + version footer. Re-exports globals so interpreter can access them.

Hot-Reload

launch_slint_app timer detects app:AppName layer changes -> captures window geometry -> shutdown Lua + Slint -> re-prepare async -> create new app at same position. Tab switching uses the same flow.

Data Flow

Scribe --PageUpdate--> launch_slint_app timer --> LuaCommand --> LuaRuntime (OS thread)
LuaRuntime --UiMutation--> ui_tx --> SlintRuntime::process_ui_mutations() (main thread)
Slint callbacks --LuaCommand::UiCallback--> LuaRuntime

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 67 lines · 26 tokens per session scan A cda39f7ac8ec

Subscribe to this mod's changes

slint is an agent published in the GitHub repository osvauld/osvauld (106 stars, last pushed 3mo ago), licensed MIT. It adds 26 tokens to every session and 1,061 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.