Metadata-Version: 2.4
Name: ashlar-ao
Version: 1.0.0
Summary: Local-first agent orchestration platform — one developer, many AI coding agents, single command center.
Author: Mason Wyatt
License: MIT License
        
        Copyright (c) 2026 Mason Wyatt
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/Ashlar-inc/ashlar-ao
Project-URL: Repository, https://github.com/Ashlar-inc/ashlar-ao
Keywords: ai,agents,orchestration,claude,codex,tmux
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: aiohttp-cors>=0.7.0
Requires-Dist: psutil>=5.9.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: aiosqlite>=0.19.0
Requires-Dist: bcrypt>=4.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Dynamic: license-file

# Ashlar AO

A local-first agent orchestration platform. Manage multiple AI coding agents (Claude Code, Codex, etc.) across projects from a single browser-based command center.

Spawn agents, monitor their status in real time, approve plans, respond to questions, and coordinate work — all without switching terminals.

## Installation

```bash
pip install ashlar-ao
```

Then run:

```bash
ashlar
```

### Prerequisites

- **Python 3.11+**
- **tmux** — used for agent process isolation and output capture
- At least one agent backend CLI:
  - [Claude Code](https://www.npmjs.com/package/@anthropic-ai/claude-code): `npm i -g @anthropic-ai/claude-code`
  - [Codex](https://www.npmjs.com/package/@openai/codex): `npm i -g @openai/codex`

If no backend is installed, agents run in demo mode.

#### Install tmux

```bash
# macOS
brew install tmux

# Linux
sudo apt install tmux
```

## Quick Start (from source)

```bash
./start.sh
```

The launch script handles everything: checks dependencies, creates a Python virtual environment, installs the package in editable mode, and starts the server.

Open **http://127.0.0.1:5111** in your browser.

### Port Conflicts

Port 5000 conflicts with macOS AirPlay Receiver. Ashlar defaults to port 5111 to avoid this. To use a different port:

```bash
ASHLAR_PORT=8080 ashlar
```

## Configuration

Config lives at `~/.ashlar/ashlar.yaml` (auto-created on first run). Defaults work out of the box.

### Optional Environment Variables

| Variable | Purpose |
|----------|---------|
| `ASHLAR_PORT` | Override server port (default: 5111) |
| `XAI_API_KEY` | Enable LLM-powered agent summaries via xAI Grok |

## Architecture

Two files make up the core application, packaged as `ashlar_ao`:

- **`ashlar_ao/server.py`** — Python aiohttp server. Manages agents via tmux, serves the dashboard, provides REST + WebSocket APIs, collects system metrics.
- **`ashlar_ao/dashboard.html`** — Single HTML file with all CSS and JS inline. No build step, no bundler, no node_modules.

Data is persisted in SQLite at `~/.ashlar/ashlar.db`.

## Usage

- **Spawn agents** from the dashboard or command palette (`Cmd+K`)
- **Monitor status** via live-updating cards (planning, working, waiting, error)
- **Respond to agents** inline when they need input
- **Push-to-talk** with `Space` for voice commands
- **Keyboard shortcuts**: `Cmd+N` new agent, `1-9` focus agent, `Cmd+Shift+A` approve

## Development

```bash
git clone https://github.com/masonwyatt/ashlar-ao.git
cd ashlar-ao
pip install -e ".[dev]"
pytest
```

See `CLAUDE.md` for full architecture, data models, API reference, and implementation details.
