Skip to content
YSYousef SelawiSoftware Engineer

Linux · Desktop app · 2026

Selawi Console

A local desktop workspace for notes, commands, secrets, servers and terminals.
Overview with count tiles and resource cards
Built-in terminal with a local shell tab
Task board: To do, In progress, Review, Done
Notes editor with Markdown preview
New server form, SSH key picked from the vault
New command form with {{name:default}} variables

Agentic engineering

I plan each project in a long conversation with an AI assistant, which writes up what we settle as a brief. Claude Code builds from that brief while I test, change scope and steer. How I work.

What I owned

  • The idea, the feature set and what to leave out
  • The plan: a long brainstorm with an AI assistant, turned into a written brief
  • Agreeing the architecture, stack and rules in the brainstorm
  • Reshaping scope as it came together: features added, changed and cut
  • Testing on real devices and in daily use

What the agent did

  • Building from the brief, phase by phase
  • Writing the code, the tests and the documentation
  • Fixing what testing turned up

Selawi Console keeps a developer's everyday working material in one desktop app: notes, reusable shell commands, passwords and keys, server logins and built-in terminals, grouped into projects and stored only on the machine it runs on. It replaces the usual spread across text files, shell history, a password manager, SSH configs and a separate terminal. There's also a task board, and an MCP server so an AI agent can create and organise projects, notes and tasks.

I built it for my own work looking after production and development servers, and it's now my daily workspace. It went from first commit to daily use in four days.

1. Native where it counts

It's built with Tauri, a Rust backend and a React frontend. The vault, terminals, SSH and SQLite all run in the native process. The webview gets a minimal permission set (core, clipboard, file dialogs) and a strict content security policy. Electron would have meant a heavier runtime and cryptography on the Node side.

All validation and business rules live in a store layer with no Tauri types in it. The IPC handlers are thin wrappers over that layer, which is unit tested against in-memory SQLite. That separation paid off when the MCP server needed exactly the same rules.

2. A vault with one key and three locks

Secrets use envelope encryption. A random data key encrypts every secret, and that key is wrapped separately by the master password, a one-time recovery key, and optionally the OS keyring. Changing the password re-wraps one 32-byte key instead of every secret. Argon2id and XChaCha20-Poly1305 come from RustCrypto, and each ciphertext is bound to its row id so it can't be copied onto another row and decrypted.

Keyring unlock is convenient, so it sits behind a check of the system password through PAM, and the docs describe it honestly as an authentication gate, not encryption. Shared projects and backups re-encrypt their secrets for the receiving vault.

3. Letting an AI agent in without the secrets

The MCP server is the same binary started with mcp. It speaks JSON-RPC over stdio, so there's no network port and no SDK dependency. It opens the same database, reuses the store functions and exposes 26 tools. The key design constraint is that it never loads the vault key, so an agent can manage projects, notes, commands and cards without being able to read a single secret.

The hard part was concurrency: the app is usually open while the agent works, so two processes write to one SQLite file. The solution was WAL mode, partial updates that only merge the fields a call actually sends, and the UI polling PRAGMA data_version every two seconds. The acceptance check: a card created over MCP appears on the open board within two seconds.

Real terminals in an AppImage

Local tabs had to be real login shells in a PTY, and closing a tab must end only that tab's shell: SIGHUP, then SIGKILL to the same PID while it's still unreaped, so the PID can't have been reused. The AppImage launcher also leaked its own environment, such as LD_LIBRARY_PATH, into user shells; those variables are now stripped, verified on a built AppImage.

Quality bar

  • 119 automated tests, Rust and frontend.
  • Terminal tests start real bash, zsh and fish shells and a temporary sshd on localhost.
  • Scope kept tight on purpose: features that existing tools already do well were left out.

Stack. Tauri, Rust, React, TypeScript, SQLite, RustCrypto, MCP.

Next case studySelawi Island

Questions about this project? Email me.