tony1223/better-agent-terminal

Multi-workspace terminal aggregator with Claude Code AI integration

What it solves

Better Agent Terminal is a desktop app that brings together multiple project terminals and AI coding agents into a single window. Instead of juggling separate terminal windows, a Claude Code or Codex agent session, file browsing, and git history, you get one workspace per project with all of these side by side. It also adds practical safeguards like permission controls for agent actions, session resume/fork, and cost/usage tracking, so long-running agent tasks are easier to manage.

How it works

The app is built with Tauri 2: a Rust host handles the backend (terminals, agent processes, remote server), and a React renderer provides the UI. Each workspace is bound to a project folder and can contain multiple terminals (powered by xterm.js) plus tabs for Files, Git, and an agent panel. The built-in Claude Code agent runs via the SDK directly inside the app, with streaming output, configurable permission modes (default, accept edits, plan, bypass), session resume/fork, and a statusline showing tokens, cost, context usage, and rate limits. An optional Codex agent backend is also available, and a semantic navigation tool (cx) can be enabled to reduce context tokens. The app supports multiple workspaces, groups, profiles, detachable windows, and per-workspace environment variables. It also includes a file browser with syntax highlighting, a git viewer with commit history and diffs, a snippet manager, markdown preview, and a worker panel for running multiple processes from a Procfile.

Who it’s for

Developers who work on multiple projects and rely on AI coding agents (Claude Code or Codex) for day-to-day tasks. It’s especially useful for those who want to keep terminals, agent sessions, file navigation, and git operations in one place, and who need fine-grained control over agent permissions, session persistence, and API cost/usage visibility. The app runs on Windows, macOS, and Linux, and also offers mobile clients (iOS/Android) for remote access.

Highlights

  • Multi-workspace management with drag-and-drop reordering, groups, profiles, and detachable windows
  • Built-in Claude Code agent with streaming, permission modes, session resume/fork, and auto-compact
  • Optional Codex agent backend with sandbox modes and approval policies
  • Statusline with 15 configurable items (tokens, cost, context %, rate limits, cache efficiency)
  • Cache cost awareness: per-turn cache breakdown, TTL countdown badge, and expiry warning
  • Git worktree isolation for safe agent runs
  • File browser with syntax highlighting, git viewer with PR/issue browsing, snippet manager, and markdown preview
  • Worker panel (Procfile) for running multiple processes with combined logs
  • Semantic code navigation via cx to cut context tokens
  • Internationalization: English, Traditional Chinese, Simplified Chinese
  • Slash commands and auto-continue for long agent tasks
  • Remote server mode and mobile apps (iOS TestFlight, Android)

Related

  • Project
  • Project
  • Project
  • Project
  • Project