Skip to content

Ghostty Blackhole

Ghostty Blackhole puts a real, ray-traced black hole inside your terminal. It grows as Claude Code's context window fills up, live. A fresh session is a quiet hole in the…

Install: git clone https://github.com/s0xDk/ghostty-blackhole

Works with Claude Code · 1,711 GitHub stars

Install

$git clone https://github.com/s0xDk/ghostty-blackhole

Install command taken from the project's README or registry entry. Always review code before running it.

Ghostty Blackhole

Landing page: s13k.dev/blackhole

A black hole floating inside your Ghostty terminal. It starts small and grows to swallow your screen, driven by whichever size mode you pick: a built-in pomodoro clock (grow through the hour, demand a break, leave you alone once you take it), or token mode, where it tracks how full Claude Code's context window is in real time.

Modeled on Eric Bruneton's black hole shader, which beam-traces Schwarzschild geodesics against precomputed lookup tables. A Ghostty custom shader is a single Shadertoy-style fragment pass with no custom textures, so the lookup tables are replaced by doing the physics live: every pixel near the hole integrates its own null geodesic through the Schwarzschild metric (the Binet-form acceleration a = -3/2 h² x/r⁵, which gives the exact photon bending). Your terminal contents play the role of the lensed background sky. Nothing below is painted on — it all falls out of the ray tracing:

What it renders

  • The shadow — rays with impact parameter under b_crit = (3√3/2) r_s spiral through the horizon and come back black. Text near the edge is stretched into the photon ring before it disappears; text behind the hole really is gone.
  • Gravitational lensing — escaped rays are projected back onto the terminal "sky" plane: text bends, magnifies, and shows the mirrored secondary image inside the Einstein ring. Far from the hole this hands off to the analytic weak-field deflection (α = 2r_s/b), so only pixels near the hole pay for the integration. Blue bends slightly more than red out there for a touch of chromatic aberration.
  • Accretion disk — a thin Keplerian disk that a ray can pierce several times: the far side arcs over and under the shadow (the Interstellar look), and the photon-ring region shows higher-order disk images. Coloring is physical: a Shakura–Sunyaev temperature profile rendered as blackbody color, shifted and beamed by the relativistic factor g = √(1 − 1.5 r_s/r)/(1 − β·k̂) — the approaching side is blue-hot and boosted by g^N, the receding side dim and red.
  • Photon ring — rays winding near the 1.5 r_s photon sphere pick up every disk crossing; the bright thin ring is emergent, not drawn.
  • Lensed starfield — a faint procedural sky sampled with the bent ray direction, so stars smear into arcs around the hole (off by default — raise STAR_GAIN to enable).
  • Gravitational time dilation — the disk pattern at radius r advances at the proper rate √(1 − 1.5 r_s/r), so the inner orbits visibly freeze; the whole disk also winds down as the hole grows heavier (DILATION_MIN).
  • The hole drifts on a slow Lissajous path, confined to the upper part of the screen — the bottom WORK_AREA fraction (your prompt) is never distorted. Drift speed and reach follow its size: small and calm, big and restless.

Pomodoro mode

The break reminder is computed entirely inside the shader — no daemon, no shell hooks, nothing outside blackhole.glsl.

Shaders are stateless (no buffers persist between frames, and Ghostty has no custom uniforms), so a shader cannot remember when your work streak began. Instead the schedule is anchored to the wall clock via iDate:

Similar plugs

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

PluginDev tools+6,803 this week

Multi-harness agentic plugin marketplace for Claude Code, Codex, Cursor, OpenCode, GitHub Copilot, Google Antigravity, and Pi

A Claude Code plugin that shows what's happening - context usage, active tools, running agents, and todo progress

Open source Ghostty-based macOS terminal with vertical tabs and notifications for AI coding agents. Built for multitasking, organization, and programmability.

PluginDev tools+87 this week

Explore related