calm
A quiet fullscreen environment for thinking with Claude: one thought at a time, slow and calm
A quiet fullscreen environment for thinking with Claude: one thought at a time, slow and calm
A desktop app (an ordinary window; the green button takes it fullscreen) that is the opposite of a stimulating UI: one thought at a time, in large quiet type, on a slowly drifting background. A simple prompt summarizes text and websites in a chill way, and can also do real work (read your files, run commands, make changes) with all of it delivered gently.
Tauri 2 (Rust) + Svelte 5, talking to Claude through the Agent Client Protocol adapter.
Requires Node, Rust, and a signed-in Claude Code (claude in a terminal, then sign in) or ANTHROPIC_API_KEY in the environment.
npm install
npm run tauri dev
Type anywhere to ask or say something. Enter sends, Esc lets go of a question in flight. The controls fade away when the mouse rests.
| env var | effect |
|---|---|
CALM_FOLDER=~/code |
where the agent works (default: your home folder) |
CALM_MODE=default |
how much it asks: auto (the default: Claude judges what is safe, so there are almost no questions), acceptEdits (edits go through, commands ask), or default (asks before anything that changes things) |
CALM_FRESH=1 |
start a new conversation instead of resuming the saved one |
CALM_CONNECTORS=1 |
let the agent see your claude.ai connectors (mail, Drive, ...). Off by default: they add ~40k tokens to every thought |
CALM_AGENT=/path/to/agent.mjs |
run another ACP agent with node; scripts/mock-agent.mjs is an offline stand-in that needs no login |
npm run dev alone (a plain browser) shows the interface with a canned reply.
Svelte UI --invoke("ask")--> Rust (src-tauri/src/agent.rs) --stdio JSON-RPC--> claude-agent-acp (node)
<-- calm://chunk, status, permission -- <--session/update, request_permission--
--invoke("answer")--> (held until you say yes or no)
agent.rs is a small hand-written ACP client (initialize, session/new, session/prompt, session/update). The agent-client-protocol crate (2.2) was checked and judged more machinery than four messages need; swapping it in later would stay inside that one file.CALM_FRESH=1 forgets the old conversation for that launch. The first session is created at launch so the first thought is quick.system_prompt.txt: short, plain, at most about three sentences, no narrating of steps, and no mood words like "quiet" or "gentle", which models tend to over-use if the prompt itself leans on them). No Claude Code settings files are loaded (hooks, allow rules, CLAUDE.md), so nothing from your usual setup can interrupt it or approve things behind the card.auto mode Claude decides what else is safe, so you are rarely asked about anything; whatever it does ask about (in the stricter modes, everything that changes things) is held in Rust until you answer a quiet full-screen card: Enter or y for yes, Esc or n for not now. The card shows the real command or path, not just the model's description of it. Esc during a question means "not now"; Esc at any other time lets go of the thought./context, which is answered locally with no model call, to start it.)see <session> in Claude under that answer or message, whether or not anything needs doing there. A click opens that exact session in the Claude desktop app (claude://claude.ai/epitaxy/<id>), so approvals, which only that session's own window can give, can be made where they belong. Nothing is resumed or copied. To know which session was involved, src-tauri/src/sessions.rs watches calm's own saved conversation for incoming cross-session messages (which carry the sender's id) and outgoing SendMessage calls (which carry its name), and looks the session up in the desktop app's own records (~/Library/Application Support/Claude/claude-code-sessions). Sessions the desktop app has no record of (Remote Control, cloud) get no link. This reads Claude Code's internal file formats, so it may need updating when they change.src/lib/signal.svelte.ts decides what and when). It shows one message at a time, fades each out completely before the next fades in, and keeps a message up for at least 3 seconds so nothing flashes; typing or a question appearing makes it leave at once. In priority order it says: while you wait, nothing for the first moments, then "one moment", "still working", "no rush", "taking its time", "still here"; then that a message is waiting; then, only at the start, "if you need anything, just start typing". The invitation appears soon after the first greeting, after a long idle stretch on later starts, and never again once you have asked three questions (remembered between launches).src/lib/reveal.svelte.ts releases words at reading pace (a little longer after punctuation) regardless of how fast they stream. Words are laid out in advance and simply come into focus, so text does not jump.In the default auto mode the safeguard is Claude's own judgment, not yours: it can change files and run commands under the working folder without showing you first, and the yes/no card appears only for what it still chooses to ask about. Reads are not gated either: anything under the working folder can be read and sent to the model, and a web page the agent fetches could try to steer it. Point CALM_FOLDER at a narrower folder if that matters, and set CALM_MODE=default if you want to approve changes yourself.
There is no login flow. The adapter reuses your existing Claude Code login (macOS Keychain or ~/.claude/.credentials.json) and falls back to ANTHROPIC_API_KEY. Anthropic's terms for third-party apps using subscription logins are unconfirmed, so this is fine for personal use, but do not assume it is OK to distribute. Check the terms first, or ship with API keys only.
node_modules/ relative to the source tree and needs node on PATH, which is fine for tauri dev but not for a bundled .app.