Mitchell Hashimoto (@mitchellh) header
Mitchell Hashimoto (@mitchellh) profile picture

Co-founder of @Superlogical. Creator of Ghostty. šŸ‘» Prev founded @HashiCorp, created Vagrant, Terraform, Vault, and others.

Los Angeles, CA
Joined January 2008
Photo by Mitchell Hashimoto (@mitchellh)Photo by Mitchell Hashimoto (@mitchellh)Photo by Mitchell Hashimoto (@mitchellh)Photo by Mitchell Hashimoto (@mitchellh)Photo by Mitchell Hashimoto (@mitchellh)Photo by Mitchell Hashimoto (@mitchellh)Photo by Mitchell Hashimoto (@mitchellh)Photo by Mitchell Hashimoto (@mitchellh)Photo by Mitchell Hashimoto (@mitchellh)Photo by Mitchell Hashimoto (@mitchellh)
Rex can now resume your programs through a server restart! This is based on a brand new terminal protocol we're also publishing today (OSC 7577) that we worked on in collaboration with @herdrdev with review from multiple terminal emulator and terminal program authors. Link: superlogical.com/rex/docs/bu… This means that ANY program can restart, not just agentic coding tools, and it doesn't require any special integration with any specific terminal or out-of-band protocol. It's plain old terminal escape sequences that are easily implemented by any program! Rex is shipping with built-in support for Claude Code to start (we emit OSC 7577 in a session start hook), but hope that other programs will adopt this and enable restart. Program restart in terminals is fundamentally unsafe, so a lot of effort was put into making this as safe as possible. Ultimately, the security of this lies in the terminal emulator. For Rex, we have a highly flexible Lua-based configuration to opt-in to resume on a program-by-program basis. You can filter by program name, path, working directory, command-line flags, and more. You can also disable the whole thing with one line.
176
193
95
3,113
185,618
libghostty-vt 1.0.2 released: correct widths for skin tone emoji, insert/delete line (IL/DL) fixes, up to 1.8x faster scrolling inside left/right margins (think tmux side-by-side panes or Neovim vertical splits), and more. Release notes below. lib.ghostty.org/vt/release-n… Bug Fixes: - The mouse encoder no longer forgets the last cell when calling `ghostty_mouse_encoder_set_from_terminal` and setting the size now only forget it when the value actually changes. Previously, with `GHOSTTY_MOUSE_ENCODER_OPT_TRACK_LAST_CELL` on, motion in the same cell was reported again, so a click could come out as a press, a motion and a release. This isn't incorrect VT sequencing, but it was wasteful and unnecessary. - With grapheme clustering (mode 2027), a skin tone modifier now makes an emoji that is text by default 2 cells wide, the same as VS16. For example, U+261D U+1F3FB (index pointing up, light skin tone) was 1 cell and is now 2. `ghostty_unicode_grapheme_width` changes the same way. - Terminals created with the C API now ignore the Kitty drag and drop protocol (OSC 72), including its queries. The C API can't deliver drops yet, so programs registered for drops that never came instead of falling back. - Insert and delete lines (IL and DL) no longer break the soft wraps of rows that move together. Previously a wrapped line in the scroll region, such as a long URL, became two lines until the program redrew it. - Insert and delete lines with left and right margins no longer drop the semantic prompt marks (OSC 133) of the rows they move, so scrolling by prompts no longer skips prompts. - Kitty graphics: Unicode placeholders no longer disappear when insert or delete lines with left and right margins move their row. - A restored snapshot now keeps a pending wrap at any column, for both the cursor and the saved cursor (DECSC). Previously it was kept only on the last column, so with a right margin (DECSLRM) the next character overwrote the cursor cell instead of wrapping. The snapshot format is unchanged. Performance: - Insert and delete lines with left and right margins now move styled rows with a single copy. This is how tmux scrolls a pane next to another pane, and how Neovim scrolls a vertical split. A stream that does this went from 1,716 to 936 ms on x86_64 (1.8x) and from 1,100 to 695 ms on an M1 Pro (1.6x). - Hyperlinks (OSC 8) are hashed in one pass instead of a byte at a time. `ls -laR --hyperlink=always` output is 1.3x faster. - Carriage returns and absolute column moves (CHA, HPA) no longer look up the cursor's row again. Scrolling streams are up to 6% faster. - Erasing cells skips rows that are already blank and releases styles a run at a time instead of a cell at a time. Erase-heavy streams are 3–6% faster.
25
6
361
23,309
I've seen Rob in Discord relentlessly improving terminal-browser in Rex! Note that some of his experience also resulted in finding issues in Rex as well (mainly performance issues in some of our Kitty graphics stack). It's been a good benchmark for us.
terminal-browser now officially supports rex!
27
19
1
1,089
50,803
Some folks are shocked we're doing Windows (client) before Linux (client) for Rex. Note we will publicly ship with full Linux and FreeBSD server support soon, but clients will come later. Why? Let's talk about it! If you don't want to watch a [short] video, here is some commentary but I'm not including everything I said in the vidoe: First, there are a LOT of Windows devs. Like, a LOT A LOT. In fact, based on various recent sources, there are more developers on Windows than every other desktop OS combined. And that shouldn't surprise people, but it sometimes does. Second, Linux is hard because there are a LOT of opinions because there are LOT of ways to do things and people tend to hold their own opinions in very high regard. I've been shipping Linux software for my whole career, and desktop Linux software almost full time the past few years, so I'm very familiar with the nuances here and we want to get it right or at least communicate it right. Third, we found a super awesome motivated Windows (amongst other things) developer early on, so we have someone very talented already looking at it full time. We're still working through the Linux side. But, watch the video!
99
50
17
1,993
118,878
It's magic being able to easily connect to a Windows Rex server from macOS (or vice versa), and more importantly for the `rex` CLI to be able to see it for automations, testing, etc. The Rex Server for Windows expanded from alpha (limited) to beta (full Discord) testing today. Public release soon. 😊 Getting the Rex Server to work on Windows was complicated. There is an incredible amount of Windows-specific logic throughout the Rex server everywhere... Networking (supporting Windows named pipes and their ACLs) to terminals (windows-specific memory management) to job control (so we can detect the proper running program) to the myriad shells and ways you can run Windows programs (PowerShell, Cmd, Cygwin, plus as a user, admin, etc.). Some super fun edge cases found during testing, for example we had to build-in detection for Entra accounts (school, work, etc.) which don't support certain features (yeah, I didn't know about Entra before either). And others... We also have Windows-native packaging: the Rex server is available via WinGet, as an MSI, or as a plain old Zip. We support installation as a on-demand started user process, an on-login user process (no admin required), and a system service (admin required). We're serious about Windows.
54
35
5
1,164
51,911
This is super cool, and exposes a recently shipped feature I've been meaning to share: Rex now works across SSH, including one command to install over SSH: `rex server install ssh://<address>` and then you're up and running! Works in all our clients too.
47
43
6
1,346
79,262
I shared a terminal specification proposal with a group of people today including people working on Claude Code and totally forgot its their IPO day so this is the current status of Slack.
86
35
5
3,819
195,416
Rex has really powerful Lua scripting that our beta group has been using to huge effect. We expanded it today with `rex.ui`: a way to build automations that require user interaction. The way this works with multiple clients: the choice pops up on all attached clients. The first client to respond wins (and hides the prompt from the rest). If any client is already showing a prompt, we respond with a "busy" error code and let the Lua script decide what it wants to do (sleep, try again, force it, etc.). This will surely improve, but the API gives us flexibility to improve it later. If no clients exist, another error code Lua can detect is returned noting that no user is attached, and it can decide what it wants to do.
posted this into our Rex discord today... the new `šš›ššŽšš”.ššžšš’` primitives provides a new set of simple but powerful methods to build interactive scripts within Rex that require user interaction. Now you can build the workflow of your dreams, that little action you always wanted or just a pizza topping selector. I wrote some docs up that go into detail about how this feature works superlogical.com/rex/docs/cu…
52
13
2
690
45,861
The Rex for Windows alpha begins today! I think this is a better terminal than Windows Terminal, and I think WT is pretty good. Nick did an amazing job here, I think you’re about to feel one of the snappiest, most beautifully rendered Windows apps ever. This is all Nicks amazing work but some cool tech details: this is written in Odin! And it’s built on a completely custom GUI framework that leverages native widgets where possible but does plenty of fully custom drawing. The renderer is completely custom and built on DirectX, highly optimized to draw the full UI in one pass and supports things like animation and cursor shaders. Overall its one hell of a piece of software and I can’t wait for people to feel it.
Here's what I've been working on at @superlogical: Introducing Rex for Windows. We're starting to roll out the Alpha today!
103
53
27
1,298
115,355
Replying to @migueldeicaza
@migueldeicaza lol. (Markov robot)
SwiftTerm is great. This isn’t verbatim. It’s social media rage circle.
2
59
29,683
A thousand years ago, I made a dent in dev envs with ā€œVagrant.ā€ The most popular request always was ā€œI want Vagrant for remote envs.ā€ I’ve been asked this to this day!! I tried and failed many times. I made things that worked but didn’t work right. Well, Rex is done right. Rex is my answer, finally. It’s always lived in the back of my mind no matter what I did. I would come up with something and try it and it didn’t feel right. I got really close around 5 years ago to the point I setup a website branding etc (via HashiCorp). But at the last minute I pulled it. It still wasn’t right. I couldn’t explain why and didn’t have a better solution. I just knew it had to be binned. Well, Rex is it. This is the real deal. Rex is doing for remote development (and a lot more than just dev) what I think a proper solution should’ve done. It’s far more than just a dev tool but I think part of what I knew is once you reach into remote environments that line isn’t clear anymore. You have to solve both remote dev and remote prod. Here we go, back to the beginning.
95
63
14
2,727
121,371
Rex demo time: magical and automatic remote copy/paste, drag/drop, and port forwarding (e.g. open web servers running on remote machines in your local browser). Plus, showcasing some of the internal plumbing that powers this and how you can hook into it with Lua scripting. Our goal with Superlogical and Rex is for everything to feel local. I've said before: the moment any UI shows a selector between "local" and "cloud", the product has failed. The lines should blur, and we should build the foundational technology that makes it happen performantly, securely, and beautifully.
200
211
106
3,967
291,892
Appreciate it! I think I speak for everyone at Superlogical that we’re tired of software that feels like demoslop and we’re motivated to show the world what meticulously crafted software feels like again. We use AI of course, but showing the difference between tasteless prompting and a team of experienced craftspeople enhanced by AI. We hope!
Rex by @superlogical is phenomenal software. tremendous fit and finish, feels like it was built and designed pre-AI (compliment)
149
104
22
3,106
134,416
libghostty-vt 1.0.1 released. ABI stable so its a drop-in upgrade. Biggest highlight is that we provide prebuilt Windows builds now (DLL and static libs)! Also just a good group of performance improvements and bug fixes. Enjoy the hand-written release notes below. Windows builds here: lib.ghostty.org/vt/installin… ("Windows") Highlights - Prebuilt Windows builds. Releases now include zips for x86_64 and aarch64 (Windows on Arm), each with the DLL, import and static libraries, headers, CMake and pkg-config files. - Faster memory operations on Linux. Builds that dynamically link glibc now use its memset, memcpy and memmove, which pick the best CPU features at runtime and beat Zig's compiler_rt in every benchmark we have. - Fixed garbled input with an AVX-512 system. Bug Fixes - Resizing the column count no longer leaves stale shell prompts behind when the shell redraws its prompt (OSCĀ 133). This was most visible with full-line prompts like powerlevel10k. - A resize that grows rows and shrinks columns at the same time now pulls scrollback down correctly, matching what you get from doing the two resizes one after the other. - A failed render state update no longer marks unfinished rows as clean. Those rows stay dirty and are rebuilt on the next update, instead of being rendered from incomplete data (which could crash). - Kitty graphics: during a chunked transmission that replaces an image, the old image now stays until the transmission ends, instead of disappearing on the first chunk. Performance - Setting a scrollback line limit now performs the same as a byte limit. We previously decommitted memory only in the line-limit case, which caused storms of page faults. With a 1,000-line limit, ASCII throughput went from 298 to 1,983 MB/s on Linux (6.7x) and from 2,214 to 4,093 MB/s on macOS (1.8x). Matches byte limit performance. - A restored snapshot's last page now gets its full pooled capacity, so the first write after a restore doesn't immediately allocate. - Linux builds that dynamically link glibc now use glibc's memset, memcpy and memmove (with runtime CPU feature detection) instead of Zig compiler_rt's. ASCII with no scrollback is 23% faster on arm64 and 10% faster on x86_64. Resizing is 4–10% faster. - UTF-8 decoding after the first invalid sequence no longer decodes valid runs twice. Valid input is unchanged, and input with invalid sequences decodes 6–10% faster. - Faster CSI parameter parsing: 14 instructions and 2 branches per digit on x86-64, down from 23 andĀ 5. Style-heavy streams are up to 5% faster. - Less per-segment overhead in RenderState.endUpdate. - Validating C enums no longer scans every field. Packaging - Releases now include prebuilt Windows zips for x86_64 and aarch64 (*-windows-gnu). - On Windows, pkg-config files are relocatable and aarch64-windows-gnu builds. - Statically linked Darwin builds no longer pick up our memset over libSystem's.
39
11
2
528
41,943
We're still so small but I'm loving the team we've got at Superlogical. They're so talented and kind and love their craft. It's a different era of software development and our expectations and practices reflect that. I want to share a bit about how we work. First, everyone is trusted to push to main. We do machine-aided code review pre-push and human plus more machine-aided code review post-push. Limited to no PRs. Culturally, we've all agreed that if we ever hire someone who we DON'T trust to push directly to main, then they probably aren't the right fit for the team (so far, not an issue). Some common sense here: if someone is stepping outside their lane or comfort zone, we'll open PRs. For example, I'm pretty trash at macOS/iOS UI, so I'll open PRs for UI-affecting functionality and ask for eyeballs/help. But for business logic and internals, I push to main. Second, everyone can cut a release. Our release process is fully automated and when you start a release (for any platform) it triggers a Slack notification and a 15 minute countdown. The 15 minute warning is a final gate that allows people to review plus collaborate on a changelog. During that 15 minutes, anyone in the company can pause the release rollout. After 15 minutes, the train leaves the station. You can't override the 15 minutes (except to pause). It gives everyone a chance to step in. Third, we avoid synchronization through fast remediation rather than through planning. The server and clients on various platforms ship features as fast as they can. We use post-hoc human review and AI-assistance to identify feature mismatches across products ("Windows has support for X and Mac doesn't." or "Mac and Windows differ in their behaviors for Y in this way."). This avoids expensive "sync" meetings and coordination. We trust that producers of features are mindful of what they're producing and we trust that adjacent product lines will self-synchronize quickly. In practice, we see feature parity across platforms within 24 to 48 hours. All of this works on mutual trust. It ONLY works with mutual trust. Everyone at all times has to trust that they've got each others back: 1. Push to main only works if you fix your mess, or if you don't, that someone else will quickly but that you'd do the same (and generally in equal amounts). 2. Anyone can deploy only works if you trust everyone to cut at the right time, with the right changelog, and that people will respect the 15 minute timer. 3. Sync through fast remediation only works if you trust other teams will pick up and integrate your work quickly, which only works if you would too. It also only works if you are fairly producing mismatches (e.g. not constantly). We've got a great team. I know we're still small and that these practices will change in many ways as we scale. But this is already a markedly different practice than what I would've done 15 years ago. In general, we are building from day 1 on a foundation of mutual respect, excellence, and trust. And it's been awesome.
179
196
71
4,636
301,664
This is a good filter for people who I don’t want to work with. Please understand how computers work. This isn’t even about understanding Docker. Any software person should know how the layers work at a high level and this is a VERYYYYY high level.
A surprising amount of people don't know that Docker on macOS is actually a VM
192
176
46
5,795
520,748
libghostty 1.0 is here! I started Ghostty ~5yrs ago to work towards this. Today, libghostty is in hundreds of projects used by tens of millions of people. 1.0 marks ABI stability, quality, and an invite for distros to begin packaging. mitchellh.com/writing/libgho… Since starting the Ghostty project in 2022, the most common question I've been asked is "why?". Today, I'll answer this by showing the broad industry impact libghostty has already had. On top of JetBrains and Neovim already mentioned (that alone being over 10 million users): -KDE developers are experimenting with a Konsole replacement built on it. - Vercel's Turborepo uses it to render task output in its TUI. - devenv uses it to drive shells. - Antithesis used it to fuzz TUI programs and found real bugs in btop and others. -Ghostel brings it to Emacs. - ghostty-web is the WASM build with an Xterm.js-compatible API. - Commercial products like OrbStack embed it. - And a whole wave of new terminals and "agentic" coding tools, such as herdr and cmux, have been built on it rather than writing yet another emulator. There are community bindings for Rust, Go, JavaScript, Swift, Python, .NET, Elixir, Dart, Java, and more, and the awesome-libghostty list tracks well over a hundred projects. More people today use a terminal powered by libghostty than use Ghostty the application, by a very large multiple. And libghostty is having a much larger impact than being "just" a terminal emulator. I'm excited to see where people take it from here.
113
305
37
4,763
121,348
Surprise! We have a gorgeous, high quality windows client. We’ve been waiting to share until we have a relatively complete (but still pre alpha) client here, but we’re getting ready to start external testing. Hello, Windows.
our goal for Rex clients from the start was to build the most magical terminal app and to make it feel native on every platform. to me that doesn’t mean porting the same UI around. it means embracing the norms and quirks of each platform, so the app feels at home on your system rather than a guest that calls attention to itself. we’re about two weeks away from inviting the first wave of alpha users to Rex for Windows. it’s a fully reimagined version of our Mac app that still keeps the feel that makes the Mac app special. it’s crazy fast, the UI is entirely gpu-driven, and just like on Mac, it works as both server and client. here's a little video of me demonstrating some of the basics. I'll stress that this is pre-alpha right now, there is a lot to polish and port still, but I'm very excited about putting this in the hands of users soon.
105
38
6
1,710
68,927
Congrats to Pierre! I have many great friends that work there and I’m so happy for them. I’m also a minor investor so I’m happy for myself. LOL.
Today we’re announcing that OpenAI will acquire @pierrecomputer to accelerate our vision for making Codex a place where teams can build software together with AI, from first idea to the version they ship. Pierre’s open-source developer tools already power parts of Codex today. Together, we’ll build on that foundation for the agentic era. openai.com/index/openai-to-a…
45
16
2,236
120,683
Everyone is an expert on mach tuck and the aerodynamic effects of icing now I guess. Their stated qualifications are that they've been Delta Platinum Medallion for 8 years and got to shake hands with the pilot one time. Alright.
28
5
1
682
47,361