The terminal engine and persistent multiplexer behind Ubiquitty.
Embed the portable engine, build your own terminal UI, or keep shells running in
ubiquitty-host and attach from your apps, scripts and agents. Core owns the
terminal model, parser, input encoding, screen history and render plan. It needs
no window system, GPU or UI toolkit. The host enforces capability tokens, attach
consent and command policies for CLI and MCP clients.
Embed Core · Use the host and CLI · Get the apps
Recorded tests cover terminal controls and Unicode. Current results and scope.
The fastest parser in our comparative benchmarks, as of 7 November 2026. Conformance scope · Benchmark methods
Legacy terminal software renders correctly. Core supports DEC rectangular editing, selective erase, protected cells, cell checksums, national character sets, double-width and double-height lines. Modern protocols include Kitty keyboard input, animated Kitty graphics, Sixel, iTerm2 images, OSC 8 hyperlinks and synchronized output.
Extended DECPS adds eight musical channels, waveform voices, WAV samples, envelopes, filters, reverb and tracker effects. Programs can use it for instruments, sequencers and game audio; the Mac app supplies playback. Sound protocol.
| You are building | Reach for | Repository |
|---|---|---|
| A C++ host with its own UI, text system or renderer | libubiquitty's C++ session facade and Core headers | ubiquitty-core |
| Persistent sessions, a session daemon, attach and reattach across machines | the multiplexer: ubiquitty-host, Sync, the ubq command and the agent |
ubiquitty-core |
| A terminal view to drop into a macOS or iOS app | UbiquittyKit's TerminalView or SwiftUI Terminal (Metal) |
ubiquitty-kit |
| A terminal view in a Linux app, or a software-rendered surface | the Vulkan, FreeType and software renderers and the GTK platform layer | ubiquitty-kit |
| Core's renderer drawing into a texture or layer your app owns | UbiquittyRenderKit (Metal) or the Vulkan renderer's exportable frames | ubiquitty-kit |
| The Ubiquitty apps themselves | the macOS, iOS, Linux and web frontends | ubiquitty |
Ubiquitty is three repositories. Each depends only on the ones below it:
ubiquitty → kit → core. This is the bottom one.
libubiquitty is the terminal itself: a portable library with no window-system,
GPU or UI-toolkit dependency. It parses a program's bytes, keeps the screen,
history, modes and selection, encodes keys and mouse input, answers the
program's queries, and produces the render plan (resolved text runs, fills and
overlays) a renderer draws. Platform services come in through the PAL contract
(Source/PAL/PAL.h); the bundled POSIX backend supplies the rest. A host that
draws for itself embeds it directly: link the CMake target ubiquitty-core
and read Embedding the portable terminal Core. The
C++ session facade (Source/UbiquittyKit, not the ubiquitty-kit repository)
drives sessions, live configuration and local or remote transports.
Its factories require an explicit Session::EffectPolicy choice. Use
EffectPolicy::withPolicy(policy, origin) with RestrictiveCapabilityPolicy
for grid content and normal replies without host-escaping or exfiltrating
effects; the embedding guide
explains policy selection and lifetime.
The workspace embedding facade supplies the
host's pane replicas, workspace actions and directory to an independent client.
The multiplexer keeps shells alive between connections and lets any number of clients attach to them, locally or across machines:
ubiquitty-host, the session daemon. It owns the PTYs, the terminal state and the workspace, session and pane identities, and listens on a local socket and, when built with QUIC, a QUIC endpoint (Source/Platform/Host).- Sync, the wire protocol between the host and its clients (Sync, wire reference). A client sends input and applies state; it owns no session.
- The agent and
ubq, the headless Sync client, command line and MCP server for scripts and AI agents (ubq,Source/Agent).
Core owns everything a program can observe about its terminal, replies and modes included. Renderers, terminal views and apps live in the repositories above.
The current recorded comparison covers terminal controls and Unicode. The badge above follows its latest published summary data.
A capability-query case can pass by correctly reporting an unsupported mode; that query pass does not claim implementation of the mode itself.
The fastest parser among the engines and workloads in our comparative runs, as of 7 November 2026. See benchmarks and measurement scope. Parser throughput, rendering, input latency and energy are separate measurements.
Needs Git, Python 3, CMake with C++23 support, Ninja or Make, Bash and a C++23 compiler. The first QUIC-enabled build of the host fetches and builds its QUIC dependencies, which needs network access, Go and Perl.
git clone https://github.com/ubiquitty/core.git
cd coreScripts/build-host.sh # ubiquitty-host, the session daemon
Scripts/build-agent.sh # ubq, the headless client and MCP server
Scripts/build-tests.sh # compiles every test, runs noneBuild output goes outside the checkout; python3 Scripts/build_root.py . prints
its root, and UBQ_BUILD_ROOT overrides it. The libraries and the consumer
sample:
BUILD="$(python3 Scripts/build_root.py .)/core"
cmake -S . -B "$BUILD" -G Ninja -DUBIQUITTY_FRONTEND=Core -DUBIQUITTY_QUIC=OFF
cmake --build "$BUILD" --target core-consumer
"$BUILD/core-consumer"To compile Core inside another CMake project, include the modules under
Scripts/cmake from the project's top directory, in the order
Scripts/cmake/UbiquittyCoreRoot.cmake lays out. Core is consumed as source, so
link-time optimization and the training profile apply to the consumer's whole
program.
Scripts/install-hooks.sh # the shell suite checks that the gating hooks are installed
BUILD="$(python3 Scripts/build_root.py .)/BuildHostTests/ctest"
cmake -S . -B "$BUILD" -G Ninja -DUBIQUITTY_FRONTEND=Core \
-DUBIQUITTY_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
cmake --build "$BUILD"
ctest --test-dir "$BUILD" --output-on-failureA test_*.cpp file anywhere under Tests/ is a CTest case; no list names it.
ctest --test-dir "$BUILD" -N lists them and -R '^test_name$' runs one. The
test guide describes the suites. On a machine without
Linux, Scripts/run-linux.sh runs the same build and tests in a container.
Read the architecture and the coding conventions before changing behavior, and Contributing before opening a pull request.
Apache-2.0; see LICENSES/Apache-2.0.txt, NOTICE and the licensing guide. "Ubiquitty" and the Ubiquitty logo are trademarks of Stanislav Yaglo; see TRADEMARKS.md.