Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:23blocks OS Ai maestro Install Agent CLI

From Leeroopedia
Knowledge Sources
Domains Installation, CLI
Last Updated 2026-10-26 18:00 GMT

Overview

Concrete tool for installing the AI Maestro agent CLI (`aimaestro-agent.sh`) and the agent management skill, idempotently and signal-safe, provided by AI Maestro's `install-agent-cli.sh`.

Description

The install-agent-cli script installs `aimaestro-agent.sh` and `agent-helper.sh` into `~/.local/bin`, and the ai-maestro-agents-management skill into the Claude Code plugins directory. It is idempotent (safe to run multiple times), signal-safe (traps SIGTERM and SIGINT for clean cleanup), handles partial/corrupted installations, and supports a complete uninstall and a repair mode. A manifest JSON tracks installed files for clean removal. Supported platforms: macOS and Linux (requires tmux).

Usage

Run `./install-agent-cli.sh` to install, `--uninstall` to remove, `--status` to check, `--repair` to fix a corrupted installation.

Code Reference

Source Location

  • Repository: ai-maestro
  • File: install-agent-cli.sh
  • Lines: L1-L848

Signature

./install-agent-cli.sh              # Install
./install-agent-cli.sh --uninstall  # Uninstall
./install-agent-cli.sh --status     # Check installation status
./install-agent-cli.sh --repair     # Repair corrupted installation

Import

# Shell script — invoked directly, not imported
./install-agent-cli.sh -y

I/O Contract

Inputs

Name Type Required Description
\| --status \|\| --repair flag No Operation mode (default: install)

Outputs

Name Type Description
exit code 1 Success or failure
manifest JSON file `~/.local/share/aimaestro/.aimaestro-agent-cli-bash-manifest.json` tracks installed files

Usage Examples

Install and check status

# Install the agent CLI (non-interactive)
./install-agent-cli.sh

# Check installation status
./install-agent-cli.sh --status

# Uninstall
./install-agent-cli.sh --uninstall

Related Pages

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment