Skip to content

GUI overview

The Agent to Bricks GUI is a desktop application built with Tauri 2, React, and TypeScript. It gives you a visual way to manage AI coding agent sessions that interact with your Bricks Builder sites. Instead of juggling terminal windows and remembering CLI flags, you get a single interface where your tools, sites, and prompts live together.

The app wraps AI coding tools (Claude Code, Codex, OpenCode, or any CLI tool you add) in managed terminal sessions. You pick a tool, configure it, and launch. The app handles the PTY (pseudo-terminal) connection, streams output in real time, and lets you switch between multiple running sessions.

On top of that, the prompt composer lets you write prompts that reference your actual site objects. Type @page and the app pulls your real pages from the WordPress REST API. Type @query or @product and it pulls live query loops or WooCommerce products. That context gets injected into the prompt before it reaches the AI tool, so the agent knows exactly which page, section, class, loop, or product you mean.

Here is what you get:

  • Managed terminal sessions for each AI tool, with scrollback preserved when you switch between them
  • @mention autocomplete that queries your live Bricks site for pages, sections, query loops, products, classes, colors, components, and media
  • Prompt presets for common workflows like generating sections, pulling pages, and converting HTML
  • Multi-site switching so you can work across production, staging, and local environments
  • Persistent configuration saved to ~/.agent-to-bricks/config.yaml and shared with the CLI

Before you run the GUI, make sure you have:

  • Bricks CLI (bricks) installed and on your PATH. This is a hard requirement; the app will not start without it. See Installation for setup options.
  • Node.js 18 or newer
  • Rust (stable toolchain). Tauri needs this to compile the native shell
  • At least one AI coding tool installed globally. The app auto-detects Claude Code (claude), Codex (codex), and OpenCode (opencode). You can also register your own. These are optional. The app works without them but you won’t be able to run agent sessions.
  • A Bricks Builder site with the Agent to Bricks WordPress plugin installed and an API key generated. This is optional for basic use, but @mentions and site context won’t work without it.

Clone the repository, then:

Terminal window
cd gui
npm install
npm run tauri dev

The first run takes a few minutes while Rust compiles the Tauri backend. After that, hot-reload kicks in for the React frontend and changes appear immediately.

For a production build:

Terminal window
npm run tauri build

This produces a platform-native binary (.app on macOS, .msi on Windows, .deb/.AppImage on Linux).

When the app opens it runs a startup detection sequence. You will see a real-time log showing:

  1. Environment detection: your OS, architecture, shell type, and augmented PATH directories.
  2. Bricks CLI check: the required dependency is checked first. If it is not found, the app shows a blocking gate with installation instructions (Go install or website download). You must install Bricks CLI and click “Re-check” before the app will proceed.
  3. Optional agent scan: Claude Code, Codex, and OpenCode are checked. Missing agents are reported but do not block the app.

The detection system supports all major shells (bash, zsh, fish, PowerShell, Nushell, cmd.exe) and augments the search PATH with common tool directories so that CLI tools installed via Homebrew, Cargo, Go, npm, and other package managers are found even when the app is launched outside a terminal.

After detection, onboarding tooltips walk you through the main areas: the tool list, the prompt builder, the command palette shortcut, and the site switcher. You can skip these or step through them at your own pace. They won’t appear again after you finish or dismiss them.

The GUI reads and writes ~/.agent-to-bricks/config.yaml. This is the same file the CLI uses, so settings stay in sync. The file stores:

  • Connected sites (name, URL, API key)
  • Active site index
  • Theme preference (dark or light)
  • Custom prompt presets
  • Prompt history (last 50 entries)
  • Session pre-prompt template
  • Onboarding state

Changes are auto-saved with a one-second debounce. You do not need to manually save or export anything.