Lokyr
Documentation

Requirements and their solutions

Internals: how Lokyr is built, for contributors. The documentation's home leads to the pages for using Lokyr.

What Lokyr sets out to be, and where each requirement is met: the goals, the project's state, each requirement's solution, and the projects worth studying.

Lokyr is the terminal, and Sleip its plugin package manager, their names since 27 October 2026. They replaced the working names Bolt and Crossbow, which had replaced the provisional Saetta and Faretra.

Goals

Lokyr is a terminal emulator for macOS. Version 1.0 targets macOS only. The architecture keeps the door open for Linux, planned after 1.0, and later for Windows. Goals:

Status: F0 to F4 are done: the workspace, CI and the measurement tools; the headless terminal core, its parser, paged grid, scrollback and reflow, Unicode, input, PTY, session and search, with the recorded sessions, esctest and vttest, the differential tests, fuzzing and the benchmarks; and the macOS app of a single pane. F3, the macOS MVP, of tabs, splits, the plugins' API, themes, the command palette, the agents on their tabs and inline images, and F4, the plugin ecosystem, of Luau plugins, Sleip and the registry, came out in releases from 0.2.0 to 0.9.0, then in 1.0.0, the first public release, on 13 November 2026; F3b's settings window came out in 1.1.0 on 14 November 2026, and its Theme Editor, its themes made in the app and the Keys page in 1.2.0 on 16 November 2026; IPC and the MCP server are put off.

Requirements → solution

The phases (F0–F7) are described in the ROADMAP.

RequirementSolutionWherePhase
Fast and light on memory8-byte cells in pages; one GPU surface per window; native backends; no frames when idleVT-CORE, PERFORMANCEF1–F2
Split panessplits plugin; the layout tree lives in the kernelUI-AND-FEATURESF3
Search the bufferKernel search service for the engine, search plugin for the UIUI-AND-FEATURESF3
Configurable cursor: blink interval, smooth blinking, block shape, smooth movement (snappy)[cursor] options, drawn by render-metal; the blinking and its fades on the cursor's own layer, which the window server animates, as it blinks text on a layer of its own, and the movement only while it is in progressUI-AND-FEATURESF2–F3
Widths and terminal type that match the programs': the reported TERM, Unicode 8 or current width tables, ambiguous-width characters[terminal] options, which the width computation of vt-core and the PTY's environment followVT-COREF1–F2
iTerm2's text options: Unicode normalization (NFC, NFD, HFS+), a separate font for non-ASCII textThe normalization option of [terminal]; the non-ASCII font in [font]VT-CORE, ROADMAPF1–F2
The Nerd Fonts' icons, of prompts and tools, with any fontSymbols Nerd Font Mono in the binary, which draws the private use areas' characters that the configured font lacks, before the system's fallbackCONFIGURATIONF2
Encodings other than UTF-8UTF-8 only in the MVP; other encodings per profile, as a conversion in the sessionVT-COREF5b
iTerm2 theme compatibilityThe host's: .itermcolors, the one format imported, read as iTerm2 reads it, its color spaces and its light/dark keys; a native format of TOML, a file a variant, its interface's colors of rules that name each other; the themes of permissive licenses heldUI-AND-FEATURESF3
Customizable iTerm2-style tabstabs plugin, drawn in the titlebar by our UI engine; native tabs disabledUI-AND-FEATURESF3
Powerful plugin systemNative first-party plugins and sandboxed Luau third-party plugins share one API; the commands that a plugin runs are declared in its manifest, and checked against its capabilities, but those that a person runs through a plugin with user-commands, as the palette; the calls are messages, and the plugins' UI is data that the host draws; each plugin's keys in its section of the config file, of its JSON SchemaPLUGIN-SYSTEMF3–F4
Terminal built from its own pluginsMicro-kernel; the distributions, dist/*.toml, are the app's features, which xtask gen-dist writes; a plugin turned off by enabled = false in its section, or while a plugin that replaces it is on (1.4)PLUGIN-SYSTEMF3
Sub-projects per OS and engineplatform-*, render-* and font-* crates behind thin traits; macOS backends first, Linux after 1.0ARCHITECTUREF2 / F7
Central package manager and online registrySleip, plus a registry that starts static, a repository of the index on GitHub with publishing by pull request, its index and site on GitHub Pages at pkg.lokyr.dev, signed by keys that a root key in Sleip vouches for, and later becomes a service; Lokyr's own plugin-manager of Sleip's commands, through the appPACKAGE-MANAGERF4 / F7
Plugin fetching separate from the appThe lokyr binary contains no networking code of its own, enforced in CI; Sparkle's updater is its one network client; the plugins' network goes through the app, which checks it, to Sleip's helper, after 1.0.0PACKAGE-MANAGERF0+, the plugins' network F6
Integration with AI agents, the common ones includedThe programs' notifications; an agent's presence from its process, and its state from its title and its sequences, on its tab; lokyr +notify and the agents' hooks, put off with IPCUI-AND-FEATURESF2–F3
MCP: agents drive the terminallokyr +mcp, over stdio through the IPC socket; an agent's scope is its own pane and the panes it openedSECURITYPut off
Localized: menus, commands and notices in each person's languageFluent catalogs, English and Italian first; the system's preferred language, or [app] language; the system's own texts made from the same catalogsTRANSLATINGF2
The app installs from a DMG, or a Homebrew cask, and updates itselfA signed, notarized DMG of xtask dmg, and a cask of the project's Homebrew tap; Sparkle 2, from a signed feed at lokyr.dev; the versions X.Y.Z of releases, X.Y.Z-rc.N of candidates and X.Y.Z-YYYYMMDD of builds, a build's number growing with each releaseSECURITY, ROADMAP, releasesF3

References worth studying