AIToday

Husk desktop app wraps terminal AI agents in graphical interface

Hacker News12h agoSend on LINE
Husk desktop app wraps terminal AI agents in graphical interface

Key takeaway

Husk is a new graphical desktop wrapper for command-line AI agents that adds a drag-drop file interface, persistent sessions, workflow automation with a visual graph editor, and MCP server integration. The tool keeps the underlying agent (Claude, Copilot, Aider, or others) unchanged while making it more approachable for users unfamiliar with terminals. Installation is one line on Linux, macOS, or Windows, with no external dependencies required.

Summaries like this, in your inbox every morning.

Sign up free →

3 Key Points

  • What happened

    Husk is a new Electron-based desktop application that packages command-line AI agents (Claude, Copilot, Codex, Aider, or others) with a graphical interface, drag-drop file context, voice output, session resume, persistent project folders, workflow automation with a visual graph editor, and integrated Model Context Protocol (MCP) server management. Installation is one line on Linux, macOS, or Windows; the app bundles its own Electron runtime and requires no Node, npm, or git clone.

  • Why it matters

    CLI AI agents are powerful but intimidating to newcomers—black-on-black terminals hide features and make it easy to lose track of work. Husk lowers the barrier by wrapping the same underlying agent in a usable desktop surface while keeping the agent's full capabilities intact for experienced terminal users. This may expand access to open-source AI tooling for non-technical users.

  • What to watch

    Installation links are available at dorshaer.github.io/Husk for all platforms (Linux x86_64, macOS Intel/Apple Silicon, Windows). The app bundles a reasoning layer and LifeOS framework on first launch into ~/.claude/. macOS and Windows builds are unsigned (code signing is on the roadmap); Linux builds are glibc-linked and do not support musl distros (Alpine) or arm64 yet.

In Depth

Husk is an Electron-based desktop application that wraps command-line AI agents in a graphical interface. It ships as a single-line installer for Linux, macOS, and Windows. On launch, the user specifies the agent command (default: `claude`) and the agent's display name (default: `Husk`), which are saved to ~/.config/husk/config.json. The app spins up the agent in a real pseudo-terminal (PTY) with full terminal capabilities: tool calls, slash commands, stdin, Ctrl+C, scrollback, and keyboard interrupts all work as they would in a bare terminal.

The core interface is organized into pages accessible via a rail navigation: Chat (the PTY surface with drag-drop file input and a status panel), Agents (select or import agent personas for the next session), Workflows (a visual graph editor for chained steps with conditional branching and AI-routed transitions), Projects (pinned folders that set the agent's working directory), Autopilot (solo or team-based autonomous execution with budget and audit-log supervision), Prompts (a local-only saved-prompt library), Skills (toggle bundled skills or custom ones in ~/.claude/skills/), MCP (install and manage Model Context Protocol servers), Plugins (browse and manage Husk plugins), Files (drag-drop file context with a working-directory tree), and Sessions (resume prior agent conversations from their JSONL logs). Preferences (agent command, name, theme, voice, recap, sidebar defaults) open as a modal from the rail or Alt+6.

Installation differs by platform. On Debian/Ubuntu, `curl -fsSL https://dorshaer.github.io/Husk/install.sh | bash` adds a signed apt repository so `apt upgrade` keeps Husk current. On Fedora, it installs an .rpm; on other Linux, an AppImage. On macOS, it downloads and installs a .dmg (for Apple Silicon or Intel, auto-detected); on first launch, users must clear the quarantine flag with `xattr -dr com.apple.quarantine /Applications/Husk.app` because the builds are not code-signed yet. On Windows, `irm https://dorshaer.github.io/Husk/install.ps1 | iex` downloads the installer, verifies its checksum, and runs it; SmartScreen shows a warning on unsigned builds, requiring users to click More info > Run anyway. All installers verify SHA256 checksums and optionally validate Sigstore build-provenance attestations (via the gh CLI 2.49+).

The Autopilot mode splits a user-provided goal across multiple parallel agent runs. Each run executes in its own git worktree with a dedicated PTY, an independent time/token/dollar budget, a hash-chained audit log, and an optional pre-run snapshot for one-click revert. A swarm bar shows every active run. Workflows can chain steps with conditional branching and AI-decided routing; each step lights up as it runs, and every node keeps its own terminal, allowing independent exploration of parallel branches.

Husk is built on Electron and node-pty. The main process (src/main.js) assembles per-platform PTY spawning: direct pty.spawn on macOS, /usr/bin/script -q -c on Linux (for TIOCSCTTY setup with `claude --resume`), and PATH+PATHEXT resolution on Windows. The preload.js exposes a narrow window.husk API to the renderer through contextBridge, preventing the renderer from accessing Node directly. The renderer is a single-page view with an embedded xterm.js terminal, rail navigation, status panel, and the pages listed above. Helper modules in src/lib/ handle shell quoting, path confinement, PTY spawn assembly, shell PATH inheritance, agent markdown frontmatter parsing, workflow-graph traversal, MCP per-agent adapters, and Autopilot budget/audit/snapshot/supervisor logic; each is unit-tested and decoupled from Electron.

The app bundles LifeOS (a third-party framework) into the install and bootstraps it into ~/.claude/ on first launch. Uninstallation runs `./installer/uninstall.sh`, which removes the launcher, icon, and config; `--keep-data` preserves config and Piper voice models. Platform support is broad but not complete: Linux x86_64 builds are published (AppImage, .deb, .rpm), but arm64 and musl distros (Alpine) are not yet supported. macOS (Intel and Apple Silicon) and Windows (x64) builds are available. All releases ship SHA256SUMS and Sigstore attestations for provenance verification.

Context & Analysis

Husk addresses a friction point in the adoption of open-source AI tooling: powerful command-line agents like Claude (via the Anthropic CLI) and Aider are free and capable, but their terminal-only interface creates a barrier for users coming from graphical software. The project wraps existing agents without modifying them, preserving their full capabilities—tool calls, slash commands, keyboard interrupts, scrollback—while layering on visual affordances (file drag-drop, a status panel showing running agents, persistent projects, saved prompts) that make workflows discoverable and manageable.

The installation story is designed for simplicity: a single curl or PowerShell command handles checksum verification, platform detection, and registration with the OS (adding a .desktop file on Linux, a .app bundle on macOS, or a Start Menu entry on Windows). On Debian/Ubuntu, the signed apt repository keeps the app current via `apt upgrade`.

Husk also integrates Model Context Protocol (MCP) servers—a standard for extending AI agents with custom tools—with a UI for discovering, installing, and toggling them per skill or folder. The Autopilot mode adds structured autonomy: agents can run in isolated git worktrees with independent token and dollar budgets, hash-chained audit logs, and one-click snapshot revert.

At launch, the tool is feature-complete for local use but carries a few platform limitations: Linux builds are glibc-linked (Alpine is unsupported) and x86_64 only (no arm64 yet); macOS and Windows builds are unsigned (code signing is planned). These constraints suggest the project is early-stage, prioritizing feature velocity over distribution polish.

FAQ

Which AI agents does Husk support?
Husk wraps Claude, Copilot, Codex, Aider, or any other terminal-based AI agent. Users specify the agent command on first launch and can edit it in Preferences.
How do I install Husk?
Installation is one line: on Linux and macOS, run `curl -fsSL https://dorshaer.github.io/Husk/install.sh | bash`; on Windows, run `irm https://dorshaer.github.io/Husk/install.ps1 | iex`. No Node, npm, or git clone is needed. The app bundles its own Electron runtime.
What platforms are supported?
Linux (x86_64 AppImage, .deb, or .rpm), macOS (Intel or Apple Silicon .dmg), and Windows (.exe installer). Linux x86_64 builds are published; arm64 Linux and musl distros (Alpine) are not yet supported.
Can I automate workflows with Husk?
Yes; Husk includes a visual graph editor for workflows with conditional branching and AI-decided routing. Each step runs in its own terminal and lights up on the graph as it executes. An Autopilot mode lets you hand the agent a goal and walk away; it can run solo or split the goal across parallel collaborating runs with independent budgets and audit logs.

Get the latest Large Language Models news every morning

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytime

Discussion

No comments yet. Be the first to share your thoughts!

Log in to join the discussion

Related Articles

Stay ahead with AI news

Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.

Get Started Free

Free · takes 30 seconds · unsubscribe anytime