Skip to content
Proyek

Tentang

A lightweight, high-efficiency desktop Agent assistant with multi-task parallel capability.

AI dan pembelajaran mesin

Cara angka ini diukur

Yang dapat Anda lakukan

  • Project collaboration and Work log: enable Project Management to assign steps, track delivery receipts, and review results before unblocking dependent steps. Expand a reply’s Work log to inspect thinking and tool activity separately from the answer.
  • Archives: in the desktop Archive drawer, read or restore a conversation, or confirm permanent deletion of its saved history. With a compatible remote client and gateway, you can read archived Agent conversation history from authorized, existing shared directories. The remote archive view is read-only: it cannot restore or delete archived conversations.
  • Personal Assistant: included with the app and off by default on a fresh install. Enable it in Plugins → Local extensions without a separate ZIP. Turning it on does not authorize memory learning or background model use.
  • Sessions & projects - Organize conversations by project, sort by recent activity, search and pin; read, restore or permanently delete saved history from the desktop Archive drawer

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

asHub

asHub

A quiet workspace for ambitious ideas

Website & downloads · Releases · English · 简体中文

License Node agent-sh

asHub is an open-source desktop workspace powered by agent-sh. Keep conversations, models, subagents, terminals and project files together, with a readable result and an inspectable execution trail.

Available for macOS (Apple Silicon / Intel), Windows x64 and Linux x64. The desktop app and local browser view share the same client. Connect your own model provider with API credentials or supported Codex sign-in; provider billing and plan limits apply.

asHub workspace with session tabs, project analysis and a formatted table

English workspace screenshot from v0.21.1, using isolated demo data.

Highlights

asHub v0.22.0 brings reusable roles, clearer project handoffs, and better ways to inspect work and read past conversations.

  • Custom subagents and Python workflows: save custom roles for reuse in the same project or define one for a single task. The Python workflow preview runs on macOS: review the script, input, and role bindings before each run. An isolated script calls saved roles for text-only work, with no file tools. The script has no shell, network, or direct workspace access.
  • Project collaboration and Work log: enable Project Management to assign steps, track delivery receipts, and review results before unblocking dependent steps. Expand a reply’s Work log to inspect thinking and tool activity separately from the answer.
  • Archives: in the desktop Archive drawer, read or restore a conversation, or confirm permanent deletion of its saved history. With a compatible remote client and gateway, you can read archived Agent conversation history from authorized, existing shared directories. The remote archive view is read-only: it cannot restore or delete archived conversations.
  • Personal Assistant: included with the app and off by default on a fresh install. Enable it in Plugins → Local extensions without a separate ZIP. Turning it on does not authorize memory learning or background model use.
Capability Experience
Sessions & projects Organize conversations by project, sort by recent activity, search and pin; read, restore or permanently delete saved history from the desktop Archive drawer
Conversation collaboration Send tasks, follow receipts, supplement work, report blockers and record reviews; optional Git worktrees isolate changes
Readable execution Replies and progress first; thinking and tool output stay in the expandable Work log
Tasks, subagents & workflows Task progress, built-in and custom subagents, and Python workflows that orchestrate isolated roles
Models & context Codex sign-in, model search and native thinking levels; inspect context and reported cache usage
Reviewable actions Permission prompts, change previews, session-wide approval and background notifications
Project tools PTY terminals, file browsing, image input, inline image previews and a skills marketplace
Plugins Enable included extensions or import trusted ZIPs; configure, disable, uninstall and restore
Background mode Keep tasks and remote access running when windows close; reopen or quit from the tray
Proxy controls Choose a global proxy default and override it per conversation
Persistent work Saved conversations, branches, rewind, Markdown export and downloadable workspace results
A consistent interface Warm light and graphite dark themes; English and Chinese; display scaling and a collapsible status bar
Device interconnect · preview Continue authorized conversations or read authorized archives on another computer or in the mobile web app
Dark workspace

Project collaboration in dark mode

Project files

Conversation and project file drawer side by side

Install & get started

Download from the website or GitHub Releases. Desktop packages include their runtime; no separate Node.js installation is needed.

Platform Package
macOS Apple Silicon arm64.dmg
macOS Intel x64.dmg
Windows x64 Setup.exe
Linux x64 .AppImage
  1. Install and open asHub
  2. Configure your provider and default model in the right panel, or use supported Codex sign-in
  3. Create a session, choose a project directory and start a conversation; open files, terminals and other panels as needed

macOS one-line install

curl -fsSL https://raw.githubusercontent.com/firslov/asHub/main/install.sh | bash

The script detects Apple Silicon or Intel, installs to /Applications and removes the quarantine flag. If a manually installed DMG is blocked, choose Open Anyway in System Settings → Privacy & Security, or run:

/usr/bin/xattr -dr com.apple.quarantine "/Applications/asHub.app"

Windows

Install Git for Windows to use Bash commands and Git worktrees. asHub detects standard and per-user Git installations automatically.

Linux

After downloading the AppImage, run these commands in its directory:

chmod +x ./asHub-*.AppImage
./asHub-*.AppImage

Device interconnect & mobile access · preview

asHub Mobile is a mobile web app. The desktop app's Device Interconnect extension also lets one computer open the workspace of another.

  1. On the computer that will run tasks, enable Device interconnect in Plugins → Local extensions. Open its toolbar entry, choose Allow access to this computer, sign in or register, and confirm the directories you want to share. Upgrading from the old Mobile Access feature preserves the existing device identity and authorization.
  2. If a recovery code appears, save it and select 恢复码已保存 (Recovery code saved).
  3. Sign in with the same account on your phone, or open 访问其他电脑 (Access another computer) in the desktop extension and sign in. Select the target computer. Signing in to view another device does not share this computer.

The target computer must be online, awake, and running asHub. To keep access after closing the window, turn on Settings → Background activity → Keep running when the window closes. Quitting asHub or putting the computer to sleep can still interrupt access.

Only conversations in authorized, existing directories are shared. On a supported device, open Archive in the remote client to read eligible archived conversations without restoring them. To continue or permanently delete an archived conversation, use the desktop Archive drawer. On mobile you can follow streamed replies, view authorized image attachments, change models, and approve individual operations. When sync takes too long, choose Resync this conversation to keep your draft and check pending sends without sending them again. Mobile access and voice input require a compatible gateway. The relay forwards content without persisting conversation bodies; it is not end-to-end encrypted.

Plugins

In Plugins → Local extensions, enable the extensions that ship with asHub. They start disabled on a fresh install. Existing manual installations take precedence and keep their settings. If you uninstall an included extension, it stays removed across upgrades until you choose to reinstall it. Other plugins can be installed from a trusted ZIP; see the installation guide.

You can disable Google Gemini and Google Antigravity independently under Plugins → Built-in components. Restart asHub to apply changes. Existing conversations retain their history and provider identity and are read-only while the integration is unavailable. Disabling an integration does not delete credentials. Antigravity project workers also require their separate experimental flag. See Build without optional integrations to omit both integrations from a build.

Availability Plugins
Included on macOS, Windows, and Linux Kimi Coding Plan, Project Management, Conversation Browser, Image Display, Device Interconnect, Scheduled Tasks, Voice Input, Personal Assistant
Included on macOS only Desktop Control

The WeChat Bot example is a separate agent-sh extension and has its own setup instructions.

  • Personal Assistant: the sidebar opens one dedicated conversation. Memory learns only from this conversation after you authorize it, and you can correct, forget, or pause memories. First setup and memory authorization happen on the desktop. To use the same assistant from your phone, share its workspace directory.
  • Project Management: assign and supplement tasks, track delivery and blockers, and continue an authorized workflow as members finish. User stops and tool approvals still apply.
  • Conversation Browser and Image Display: open websites beside your conversation in the Electron app, isolate logins per conversation and site, and review uploads and downloads. Image Display adds inline previews for authorized workspace images. Download confirmation and persistent browser grants stay on the desktop.
  • Scheduled Tasks and Voice Input: schedule messages to existing conversations once or on a recurring basis while asHub is running and the computer is awake. Voice transcription writes an editable draft for you to send. Use asHub's free shared quota or configure your own service.
  • Desktop Control: requires macOS 14+ and Python 3.12+. Enable it, run /desktop install in a new conversation, and grant the system permissions you need.
  • Kimi Coding Plan: use /kimi-login for Kimi web sign-in.

Run from source

Use Node.js 22 or 24 to run from source (the .nvmrc pins 22.23.3). The CLI requires >=22.12.0 <26 and refuses to start on Node.js 26 and later because the current proxy configuration is incompatible with Node.js 26. This restriction does not affect the bundled Electron app.

The project pins the official agent-sh 0.17.0 npm release. Installation verifies Windows Codex login and applies the remaining provider and retry compatibility patches. With nvm:

git clone https://github.com/firslov/asHub.git
cd asHub
nvm install && nvm use
npm ci
npm run electron:dev

For a local browser-only server:

npm start -- --port 7878
# Open http://localhost:7878

Access from another device

npm start -- --host 0.0.0.0 --port 7878

The default bind address is 127.0.0.1. Non-loopback access requires a token: startup prints a generated token, which you enter at /auth. Set ASHUB_TOKEN for a persistent token; API clients can send Authorization: Bearer <token>. Use a trusted network or an HTTPS reverse proxy.

Conversation history is stored locally. When using a cloud model, relevant request content is sent to your configured provider. ACP session restoration depends on the backend's session/load capability. When unsupported, or when a legacy session has no remote ID, history remains readable but you must create a new session to continue.

How it works

src/hub.ts is the core: a bridge-agnostic HTTP + SSE server that spawns and supervises one bridge per session. Whatever runs the conversation just has to emit BusEvents and implement submit / cancel / close — see src/bridges/types.ts.

Electron shell (electron/main.cjs)          browser (any modern browser)
        │                                             │
        └──────────────► hub (src/hub.ts) ◄───────────┘
                     one HTTP port, path routing /<id>/events, /<id>/submit
                                 │
        ┌────────────────────────┼────────────────────────┐
        ▼                        ▼                        ▼
   AshBridge               AcpBridge               TerminalBridge
   agent-sh kernel         child process           PTY shell
   in-process              speaking ACP            (node-pty)
Bridge Runs Selected by
AshBridge agent-sh's kernel in-process — no subprocess, one less hop default (--backend ash)
AcpBridge a child process speaking ACP, e.g. agent-sh-acp or claude-code-acp --backend acp [--cmd "CMD ARGS"]
TerminalBridge a PTY shell session (agent-sh's shell or a plain terminal) session kind terminal

Adding a backend therefore means implementing one interface; the hub, the SSE protocol, and the web client stay untouched.

Command line

These flags apply to ashub / npm start. The Electron app starts the same hub in-process with its defaults.

Flag Default Description
--backend ash|acp ash Bridge implementation: in-process agent-sh kernel, or an ACP subprocess
--cmd "CMD ARGS" agent-sh-acp Spawn command for --backend acp (double quotes are honoured)
--port N 7878 HTTP port
--host HOST 127.0.0.1 Bind address
--web PATH ./web Static web root
--model NAME settings default Model override (ash backend)
--provider NAME settings default Provider override (ash backend)
-h, --help — Show usage
# in-process kernel (default)
ashub --port 8080

# spawn Claude Code's ACP server instead
ashub --backend acp --cmd "claude-code-acp"

Project layout

src/                  HTTP/SSE server, session lifecycle, history and permissions
  bridges/            agent-sh / ACP / PTY bridge implementations
  history/            History store, frame capture and context compaction
web/                  Plain ES modules and CSS; no frontend build step
  js/stream/          Thinking, tools, tasks, replies and live output renderers
  assets/brand/       Shared icons, mark and vector wordmark
electron/             Desktop window, IPC, auto-update and application icons
website/              Homepage, download template, fonts and app screenshots
scripts/              Build helpers and showcase capture
tests/                Isolated regressions, HTTP and kernel compatibility checks
examples/extensions/  Example extensions

Development & validation

Command Purpose
npm run check:core Build, typecheck and run the core regression suites
npm run build Compile backend TypeScript into dist/
npm run typecheck Backend type checking
npm run typecheck:web Frontend project checking
npm test Isolated regression suite
npm run test:http HTTP and session endpoint checks
npm run test:kernel Build and check kernel and Codex compatibility
npm run test:network Proxy and network behavior
npm run test:worktrees Isolated Git worktree behavior
npm run electron:pack Create an unpacked desktop app
npm run electron:dist:mac Build macOS packages
npm run electron:dist:win Build Windows packages

Electron loads compiled dist/; the CLI runs source via tsx. Frontend libraries are vendored, so interface resources need no external CDN. Regression tests use temporary data and mocked boundaries, without model calls or access to real API credentials.

Install skills through the built-in marketplace. Extensions load from ~/.agent-sh/extensions/ and support TypeScript; see the extension example. HTTP routes live in src/hub.ts; the backend contract lives in src/bridges/types.ts.

License

MIT

Jelajahi proyek terkait

Memuat…