Atuin terminal history

Somehow, Atuin Just Got EVEN Better

🎬 DevOps Toolbox πŸ“… Aug 14, 2026 ⏱ 11:24
Atuin terminal shell history AI open source

🐒 What Atuin Is

"There aren't many terminal utilities I take with me anywhere, but if I had to pick just one, Atuin may very well be it." The "magic turtle" is at 30,000 stars, has a refreshed docs page, and recently open-sourced its AI server and custom bindings. 0:00

At its core: Atuin replaces your shell history with a fuzzy, structured, searchable prompt that persists inside a local database. "You get timestamps, color-coded exit codes, and even Vim-like range rulers. The combination of a forever-persistent list of commands is a game-changer β€” it's saved me more times than I like to admit." 1:50

Version 18.13 is the milestone release: better search, a PTY proxy, and β€” the headline β€” AI. "It's not just AI, it's not just in your terminal, it's part of it. With your history as context, making it the killer of another product you probably already know: Warp." 0:37

⚑ 78Γ— Faster β€” The SQL Trick

The most impressive non-AI upgrade is the daemon and a query rewrite that made Atuin up to 78 times faster. The commit came from a developer who changed a single SQL statement. 2:40

The old query vs the new: "Suppose Atuin had 1 million commands in history and Ctrl-R only needs the latest 100 unique commands. The old query read all 1 million rows, worked out every unique command, sorted by recency, then returned the first 100 β€” SQLite had to process almost the entire history first." 3:55

"The new query starts with the newest commands, ignores a command if a newer copy already exists, keeps collecting unique ones, and stops as soon as it has enough. It scans backwards and keeps unique commands until it reaches the wanted amount β€” rather than processing everything every single time." 4:15

πŸ€– Atuin AI β€” The Warp Killer

"I wasn't kidding when I said this is what Warp is, or at least used to be, for." Atuin AI triggers with the question mark (after logging in and authorizing). Ask for a command in natural language, and it generates it β€” with your shell history as context. 4:57

Natural-language history search: "Most of us, while searching history, are basically trying to guess keywords or subcommands we had. How about using free language to find the command I previously ran to port-forward to Grafana β€” or any port-forward command for that matter?" Since it's already in your terminal, hit Enter to execute or Tab to insert and edit inline. 7:17

There's also a setting that lets Atuin AI read the last sent command "kind of like a skill" β€” run a failing command, then ask "why did it fail?" and it infers context from the last command and explains. 10:16

One limitation: "I'm sorry to disappoint those who listened to me and got Nushell as their main shell β€” Atuin AI doesn't currently support Nushell specifically." (The tmux pop-up feature also isn't in Nushell yet.) 5:05

πŸ” Security & Guardrails

The worry everyone raises: "your history has tokens and secrets." Atuin can be configured to never record them, and β€” for the AI specifically β€” the commands themselves are not sent to the model by default. 6:30

Built-in refusal: "Atuin won't just give you anything. There are limitations built in." Ask it to expose a server publicly and "Atuin is going to refuse to cooperate with compromising my own system." You can likely jailbreak it if you try hard enough, "but that's not the point." 7:42

"You don't have to sync to a server you don't trust, let alone feed it into a random AI model. All of these things can be easily configured." For the privacy-conscious: "you can just simply not sync. Use Atuin for what it mainly is β€” an amazing search over your local command history." 2:14

πŸ–₯️ PTY Proxy & tmux

The old Atuin "messed up your history" when it popped up, often scrambling the display or clearing the screen. The new PTY proxy (replacing the old "hex" component) overlays the existing terminal, renders its own pop-up, and removes cleanly when you return. 3:36

tmux users get their own feature: "tmux has pop-ups as well. Well, I'm proud of you. Real tmux users have a feature of their own." Set tmux enable true in the Atuin config, configure pop-up dimensions, and Atuin renders inside a tmux pop-up instead. 8:05

πŸ“¦ Scripts, Dotfiles & Aliases

Beyond history and AI, Atuin syncs more: parameterized scripts (a library of snippets runnable from everywhere, synced across machines β€” "no copy-pasting, no git pushing and pulling with random hooks"), and dotfiles. 8:49

The alias trick: "under the dotfiles Atuin command, you can set aliases β€” like alias k to kubectl β€” set it, make sure dotfiles are enabled in config, and the next time you call k on any machine, voilΓ , synced everywhere. In a way, this replaces your RC files." 9:33

Last but not least: syntax highlighting for all history commands β€” "flags, subcommands, strings, and parameters all beautifully set, making it much, much easier to read." 10:40

βœ… Key Takeaways

  1. 78Γ— faster from one SQL rewrite. The old query processed the entire history then sorted; the new one scans backwards, dedupes on the fly, and stops early once it has enough unique commands.
  2. Atuin AI is Warp's job, done inside your existing terminal. Natural-language history search with your shell history as context β€” Enter to run, Tab to edit inline.
  3. Private by default. Commands aren't sent to the model unless you opt in, secrets can be filtered, and you can skip cloud sync entirely and use it purely locally.
  4. Guardrails, not a sandbox. It'll refuse obviously self-compromising requests, but it's jailbreak-able if you try hard β€” "that's not the point."
  5. PTY proxy fixes the render mess β€” and tmux users get native pop-ups instead.
  6. It's grown beyond history. Scripts, dotfiles, and aliases all sync across machines β€” a lightweight replacement for git-managed RC files.
  7. Nushell is not supported yet. Atuin AI and the tmux pop-up feature both require Bash/Zsh for now.

πŸ”— Resources & Links

πŸ“ Timestamp Index

0:00 Intro β€” the terminal utility that goes everywhere
1:50 What Atuin is β€” fuzzy history search
2:40 The 78Γ— speedup β€” SQL rewrite
4:57 Atuin AI β€” natural-language search
6:30 Security β€” commands not sent by default
8:05 PTY proxy + tmux pop-ups
8:49 Scripts, dotfiles, aliases sync
10:40 Syntax highlighting
☰ View all