Skip to content
المشاريع

حول

A simple Shell client via MyGo.

الأنظمة والبنية التحتية

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • SSH, Docker and Kubernetes hosts. Kubernetes hosts take a kubeconfig and context, or a server and token.
  • Several sessions per host, listed as children under it in the sidebar.
  • A flat list of hosts beside LOCAL, with icons and colors telling SSH, Docker and Kubernetes apart. Click a host to fold or unfold its sessions; the + starts new ones.
  • A search field in the sidebar that filters hosts and sessions.

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

GoShell

English | 简体中文

GoShell is a simple terminal GUI client, written in Go via MyGo. It keeps SSH, Docker and Kubernetes hosts in one native window, opens terminal sessions under them, and remembers the hosts in a sidebar.

Features

  • SSH, Docker and Kubernetes hosts. Kubernetes hosts take a kubeconfig and context, or a server and token.
  • Several sessions per host, listed as children under it in the sidebar.
  • A flat list of hosts beside LOCAL, with icons and colors telling SSH, Docker and Kubernetes apart. Click a host to fold or unfold its sessions; the + starts new ones.
  • A search field in the sidebar that filters hosts and sessions.
  • A split middle area: the terminal, and beside it a pane of tabs for files and web pages. Double-click a file to open it as what it is: Markdown rendered, with a switch to its source; a picture in a preview; any other text in the built-in code editor, with syntax highlighting, find and replace, line wrapping a button turns on and off, and Save back to the local disk, the SSH server, the container or the pod. The row's menu opens a file with the system's app instead.
  • Command+click (Control+click elsewhere) a URL the terminal shows to open it in a web tab in that pane, with back, forward, reload and open in the system's browser; a link inside the page that asks for a window of its own, as target="_blank" does, stays in the same web tab. Settings > General chooses whether terminal URLs use that web tab or the system's browser. A file path a command printed opens in the editor.
  • A right sidebar of files for local, SSH, Docker and Kubernetes sessions, with a Follow toggle for the shell's current directory and actions to make files and folders, rename them, delete them and copy their paths.
  • Its Git view splits into the changes, with a box to write and make a commit of the files checked in the list, a + on an untracked file that adds it to Git, and the branch's commits; a double click opens a file's changes in MyGo's diff viewer, and the graph button opens the commits in lanes with their branches and tags. A commit, there or in the graph, is chosen by a click and opens its message with the diffs of every file it changed on a double click. The branch row switches branches, and searches them; the commits and the graph filter by subject, author or hash, or by author:, msg: and hash:. It works for this machine, an SSH server, a container or a pod.
  • Docker container picker with search, images, states and one-click connection.
  • Kubernetes picker with searchable namespace, pod and container fields, and sensible defaults.
  • Shortcut commands as chips under the terminal, with a live preview, an icon picker and a delete badge on hover.
  • Six color themes with previews, beside the light and dark appearance that follows the system by default.
  • A Settings dialog (Command+,) for where new sessions start, the appearance, the language, the color theme, the terminal's font family, size, weight and line height, copy on select, a Ghostty theme for each light and dark appearance, the sidebars, and notifications. Every change applies at once.
  • Ghostty terminal themes.
  • Next and previous session (Command+Shift+] and [, or Control+PageDown and PageUp), and Command+1 to 9 for the session of that place.
  • English and Simplified Chinese.
  • Windows, Linux and macOS, thanks to MyGo.
  • Saved passwords, key passphrases and tokens encrypted on disk.
  • Finds a local Docker daemon and adds a config for it on first launch.
  • Program status (OSC 7501): session row icons show what long-running programs are doing; hover for the message.
  • Coding agents are recognized from what they report and the title they set: Claude Code, Codex, Gemini, OpenCode, Copilot, Cursor, Aider, Cline, Qwen, Kimi, Amp, Goose, Droid and Kiro show their logo in the sidebar and their name in the terminal's title bar.
  • Notifications when a session needs you: a program that is blocked on you, fails or finishes notifies you while you look elsewhere, with a click that brings its session forward. Command+J (Control+Shift+J elsewhere) jumps to the next one, and the app icon counts them.
  • Program resume (OSC 7577): a program that is gone comes back with the command it asked for, from File > Resume Programs….
  • Find in the terminal's title bar, and a download reminder at the foot of the sidebar when an update is available.
  • Signed automatic updates from GitHub releases, with Help > Check for Updates…

Screenshots

Main

GoShell main

Dark appearance

GoShell dark

Color theme

GoShell color theme

New session

GoShell new session

New command

GoShell new command

Program status

GoShell program status

Find

GoShell find

File sidebar

GoShell file sidebar

SSH host

GoShell SSH

Docker host

GoShell Docker

Docker container

GoShell Docker container

Kubernetes host

GoShell Kubernetes

Kubernetes container

GoShell Kubernetes container

Hosts and sessions

The left sidebar keeps hosts, not terminals: LOCAL and the saved SSH servers, Docker daemons and Kubernetes clusters, flattened in one list and told apart by their icons and colors. The sessions open on a host are its children in the sidebar. Click a host to fold or unfold them; the + shown on hover starts a new session on that host.

The + at the top of the session list opens the new-session popover: LOCAL first, then each host with its address and open-session count, and a New Host action at the end. With no saved hosts, it starts LOCAL directly. There are no tabs above the terminal: the terminal's own title bar names the session, and its host is lit in the sidebar.

SSH connects to the host. Docker and Kubernetes open a picker first:

  • Docker lists running containers with a search field, image, status and state; click a container to open a shell.
  • Kubernetes selects the default namespace and the first pod and container, with searchable fields for changing them.

Adding a host starts with cards for SSH, Docker and Kubernetes, then asks only for that kind's fields.

Shortcut commands

File > New Command adds a command to the bar under the terminal. The dialog shows a live preview of the command chip and offers sixteen icons. A command has a name, the text to send and an Auto-submit switch.

Clicking a chip sends it to the focused terminal. Hovering a chip shows a red delete badge at its top-right corner; right-clicking it opens edit and delete.

File sidebar

The right sidebar lists the selected terminal's folder. It reads this machine's disk, an SSH server over SFTP, a Docker container and a Kubernetes pod through commands in the container. Click a folder to enter it, use the arrow to go up, or refresh to list it again; drag the edge to resize the sidebar, and double-click the edge to reset it.

"Follow" keeps the sidebar on the shell's current directory. It uses the directory a shell reports with OSC 7 when it does; for Docker, Kubernetes and SSH on Linux it reads the interactive shell's /proc entry instead, so it follows cd without shell configuration. With Follow off, the sidebar stays where you left it. The choice is kept for the next launches. A zsh without a directory reporter can add one:

precmd() { printf '\e]7;file://%s%s\e\\' "$HOST" "$PWD" }

Program status

GoShell speaks the Program Status Protocol (OSC 7501). A program reports whether it is idle, working, done, blocked or error, and may add an app, a base64 title and msg, a progress percentage, and a kind (permission, question or auth) when it is blocked. Reports with an id keep several records at once, with clear removing one and the records beneath it.

The session row shows a spinner, an alert, a check or a cross, and its host wears the most important state among its sessions. Hover the status icon for the program, its message and its progress. Typing in a terminal dismisses its done and error records; a new shell prompt drops working and blocked ones. Feature detection (OSC 7501;?) is answered.

A shell function that reports around a command:

status() {
  printf '\e]7501;state=%s:msg=%s\e\\' "$1" "$(printf '%s' "$2" | base64 | tr -d '\n')"
}

status working "Syncing photos"
rsync -a ~/Photos backup:/photos && status done "Photos synced" || status error "rsync failed"

Agents

A session is marked with the coding agent it runs, when the app knows it: the program's app in a Program Status report, the name a terminal title starts with (as ✳ Claude Code), or, for a local session started with the agent's own command as a resumed one, that command. The agent's logo shows beside the session in the sidebar, from Simple Icons, or its letter when Simple Icons has no logo; its state stays a dot on the mark, and the terminal's title bar names the agent. Notifications about the session name the agent too.

The agents the app knows by name are Claude Code, Codex, Gemini, OpenCode, Copilot, Cursor, Aider, Cline, Qwen, Kimi, Amp, Goose, Droid and Kiro.

Sessions that need you

A session whose program is blocked, error or done asks for the user: its row shows what the program said under its name, the host wears the same mark, and the count of them sits beside the sidebar's search field. The app icon carries the count too.

When such a session arrives while you are looking at another one, or while the app is in the background, GoShell shows a desktop notification with the program's message; a click brings the window forward and shows the session. Command+J (Control+Shift+J on Windows and Linux) jumps to the next session that needs you, a blocked one first, and says so when none does. Typing in a terminal dismisses its done and error records, as the protocol asks.

Program resume

GoShell speaks the Program Resume Protocol (OSC 7577). A local terminal gives the first process on its pseudo-terminal a token in OSC7577_TOKEN, and a program that finds it can report the command and the directory that bring it back. Each report's hash is checked against the token and its time against the clock, and what passes is kept in the app's data directory, readable only by the user. A session over SSH, in Docker or in a pod never gets a token, so no remote program can register a command.

When the process of a program is gone, File > Resume Programs… lists it with the command it asked for: a button brings one back in a new tab, in the directory it asked for, and Resume All brings them all. A record outlives the app, so a program can come back after a restart; closing its tab on purpose drops it. A program reports again when it wants to be brought back once more.

Appearance and settings

File > Settings… (Command+,), or the gear at the foot of the host sidebar, opens the Settings dialog. It has five pages:

  • General: whether a new local session starts in your home or in the folder of the local session shown, and whether terminal URLs open in the built-in web tab or in the system's browser.
  • Appearance: the system, light or dark appearance; the language; and the six color themes, each with a preview of the appearance the window shows.
  • Terminal: the terminal's font family, size, weight and line height, whether a selection is copied as it ends, and a Ghostty theme for the light appearance and one for the dark, or Default for the window's own colors, with a live preview of all of them.
  • Sidebar: whether the host and file sidebars show, and whether the files follow the shell's folder.
  • Notifications: which states notify you, whether they play a sound, the count on the app icon, and whether it bounces.

Every change applies to the open terminals and windows at once, and is kept for the next launches. The foot of the host sidebar keeps the palette, the moon or sun and the 中文/EN buttons as shortcuts: the palette opens the Appearance page, and the others still switch the appearance or language. The View menu has the same choices, with "System" to follow the desktop's appearance and languages; View > Terminal Theme… opens the Terminal page.

The terminal's title bar holds the sidebars' buttons, the session's name and Find; an update reminder sits at the foot of the sidebar; New Command is in the File menu.

Local Docker

At launch GoShell checks DOCKER_HOST, or the client's default socket or pipe, for a running Docker daemon. When one answers and no config for it is saved, it adds a "Local Docker" host once. Deleting that host keeps it deleted.

Updates

Packaged builds check the latest GitHub release for updates in the background, and Help > Check for Updates… asks right away. The native update window shows the version and notes, then downloads, verifies and installs the signed update and offers to relaunch. Help > About shows the running version; when a check finds a newer one, a download chip appears at the foot of the sidebar as well.

The update files are signed with the Ed25519 key whose public half is in mygo.json (updates.publicKey). mygo build reads the private half from MYGO_UPDATER_PRIVATE_KEY; the release workflow takes it from the repository secret of the same name:

gh secret set MYGO_UPDATER_PRIVATE_KEY < ~/Library/Application\ Support/mygo/update-keys/mygo-update.key

Without the secret, releases still build but carry no update manifests, so installed apps stay on their version. Development builds and apps installed by a package manager cannot update themselves.

Building

MyGo needs Go 1.27.3+. The terminal is emulated with Ghostty's libghostty-vt, which go run downloads once into the user's cache.

  • Linux / macOS
    git clone https://github.com/tk103331/goshell.git
    cd goshell
    go build
    sudo ./goshell
  • Windows (run as administrator)
    git clone https://github.com/tk103331/goshell.git
    cd goshell
    go build
    goshell

Languages

The app speaks English and Simplified Chinese (locales/en.json, locales/zh-Hans.json, said by the generated locales/catalog_gen.go). The language button at the foot of the host sidebar and View > Language switch between them; "System" follows the user's languages, and the choice is kept for the next launches.

Releasing

Commit, tag the version of mygo.json, and push the tag: the release workflow builds the macOS disk images, Windows installers and Linux packages, uploads them to a draft release, and publishes it.

    jq -r .version mygo.json          # 0.1.0
    git tag v0.1.0
    git push origin v0.1.0

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…