Skip to content
daniil4545Public

About

Agent-first terminal for macOS, built on Ghostty: session sidebar with Claude Code and Codex state, file viewer, agent CLI. Local only.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

18,943 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tarn

An agent-first terminal for macOS, built on Ghostty.
Every tab in a sidebar, optionally grouped, with the state of each Claude Code and Codex session at a glance.

tarn is an unofficial fork of Ghostty and is not affiliated with the Ghostty project; see NOTICE.md.

What it adds to Ghostty

Ghostty keeps rendering, input, splits and config. tarn adds:

  • Sidebar. A vertical tab list in place of the tab bar. Tabs stay ungrouped or sit in groups you name (a group may be tied to a project folder); a tab running claude, codex or opencode shows the agent's icon.
  • File viewer. A click on a path in the terminal opens the file in a pane beside it: markdown rendered, mermaid diagrams, highlighted code, an editor with save, live reload when an agent rewrites the file. A file it cannot show (an image, a pdf, an archive) opens in its default app.
  • Window layout. Drag a terminal or a viewer to a zone: under another pane, beside it, or at the window edge.
  • Agent status and card. Claude Code and Codex state shows as a colored dot: working, needs permission, asks a question, done, error. Hover a row: the card shows the request and answers it with one click (Allow, Deny, or a numbered option).

Local only: no account, cloud, telemetry or built-in AI model.

Features in motion

Taken from the browser demo of the tarn window (dark theme).

Sidebar File viewer
Switch tabs, fold a group, drag a tab into another group A click on a path opens the viewer; edit and save
Window layout Agent status and card
A terminal dragged under another: the split turns horizontal The dot turns orange; the card answers the permission request

Try the demo

demo/ is a static page that shows the tarn window in a browser: a real terminal emulator per pane, a simulated shell and a scripted claude session. It is a preview of the interface, not the app; it also has tarn new, a command of the second wave, marked as planned. Nothing is published or hosted. Run it locally:

python3 -m http.server 8000 --directory demo

Open http://localhost:8000 in current Chrome or Edge. Details, tests and the list of built and planned parts: demo/README.md.

Stage

tarn-v1.4.0. What works:

  • a vertical sidebar with optional groups; a tab running claude, codex or opencode shows the agent's icon, and Claude Code and Codex state shows as a colored dot with a card that answers a permission request or a question with one click;
  • a file viewer next to the terminal: markdown with mermaid, source view, editing, a files tree; a path click opens what the viewer cannot show in the default app;
  • a settings window with Ghostty options, a Help page of keys and switches for each module;
  • one notification per need of an agent, and cmd+U to jump to the session that waits for you;
  • the tarn command for agents: tarn open, ls, notify, new and run (a split or a tab beside the agent), wait, read, close, skill, module ls;
  • its own app, Tarn.app, next to Ghostty.

Next: see docs/roadmap.md.

Install

curl -fsSL https://raw.githubusercontent.com/daniil4545/tarn/main/install.sh | sh

The script downloads the latest release, checks its checksum and puts Tarn.app into /Applications. The build is ad-hoc signed, not notarized; installing by hand needs one xattr command, see the guide. Tarn installs next to Ghostty and reads the same config. Full steps, the Claude Code plugin, zsh setup and upgrades: docs/install.md.

Build from source

Requirements: macOS, Xcode and Zig as listed in HACKING.md, Nushell for the build script, Claude Code for agent state.

zig build run is not used on macOS (it looks for Ghostty.app).

  1. Build the app: macos/build.nu --configuration Debug --action build
  2. Open macos/build/Debug/Tarn.app.
  3. Add the plugin: claude plugin marketplace add <path to this repo>/plugin, then claude plugin install tarn@tarn.
  4. Start claude in a tab of the app: its dot turns blue while it works.

Tests: macos/build.nu --action test; hook contract: python3 -I plugin/test/hook_test.py.

Checks: make lint.

Documents

Question Where
how to install, upgrade, add the plugin and set up zsh docs/install.md
what tarn is for and why it is built this way docs/spec.md
how windows, groups, sidebar and layout behave docs/spec/workspaces.md
how the viewer pane behaves docs/spec/viewer.md
agent commands, sessions, modules and settings docs/spec/: agent-cli.md, sessions.md, modules.md
how it is built and where things live docs/architecture.md
how fast it runs against upstream Ghostty docs/bench.md
what is planned docs/roadmap.md
what the browser demo shows, how to run and test it demo/README.md
what changed in each release CHANGELOG.md
ported code and its licenses THIRD_PARTY.md
the Ghostty trademark notice NOTICE.md
building and hacking on the Ghostty base HACKING.md

License

MIT, as Ghostty: LICENSE.

About

Agent-first terminal for macOS, built on Ghostty: session sidebar with Claude Code and Codex state, file viewer, agent CLI. Local only.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages