A multi-agent orchestration system for managing AI coding agents (Claude and Gemini) in parallel git worktrees with a real-time web dashboard.
Project description
The Pitch
Coral brings sanity to coding with AI agents without disrupting your workflow. The goal is to augment, not take over. Activity across all your agents is visible so you can see which ones need attention at a glance.
Stop losing track of what your AI coding agents are doing. As you scale your workflow, the chaos of scattered terminals, lost context, and untracked changes slows you down. Coral is the mission control center you need to effortlessly orchestrate your entire AI workforce. Maintain total visibility over every agent's progress, organize your history, and automate routine tasks so you can focus on building. Stop fighting your tools and start multiplying your productivity—with all your data completely secure and private on your own machine.
Coral is an MIT-licensed multi-agent orchestration application built with tmux, FastAPI, and vanilla HTML5/JS for easy extensibility and modification. We welcome feedback and contributions.
Features
- Multi-agent support — Launch and manage both Claude and Gemini agents side-by-side across worktrees
- Web dashboard — Real-time monitoring with pane capture, status tracking, and command input
- Session history — Browse past sessions with advanced filters (date range, agent type, tags, full-text search)
- Full-text search — Search across all session content using SQLite FTS5 with porter stemming
- Auto-summarization — Sessions are automatically summarized and indexed for search
- Scheduled jobs — Create cron-scheduled tasks that launch agents in isolated worktrees, send prompts, and clean up automatically
- Webhook notifications — Get notified via webhook when agents need input or complete work
- Session notes & activity — Add markdown notes and track activity that occurred in each session, live and historically
- Remote control — Send commands, navigate modes, and manage agents from the dashboard
- Attach/Kill/Restart/Resume — Open a terminal attached to any agent's tmux session, kill it, or relaunch as a new session
- Git integration & PR linking — Tracks commits, branches, and remote URLs per agent and session
- Custom macros — Add configurable toolbar buttons for frequently used commands
Installation
Install from PyPI:
pip install agent-coral
Or install directly from GitHub:
pip install git+https://github.com/cdknorow/coral.git
macOS Menu Bar App
On macOS, you can run Coral as a menu bar app that stays out of your way:
# Install with tray support
pip install agent-coral[tray]
# Launch — starts in background, terminal is freed immediately
coral-tray
# Stop the tray app
coral-tray --stop
A coral icon appears in your menu bar. Click it to open the dashboard in your browser or quit the server. No terminal window needed.
Alternatively, download Coral.dmg from the Releases page, drag Coral.app to Applications, and double-click to launch.
Launch agents and web dashboard
You can launch the web server directly using coral or coral-dashboard:
# Start the web dashboard directly (default: http://localhost:8420)
coral
# Custom host/port
coral --host 127.0.0.1 --port 9000
Note: This system is currently mostly tested with Claude Code and to some extent Gemini CLI. However, the underlying architecture is extensible to any cli based agents.
Session history search and filtering
The sidebar History section includes a search bar and filters for browsing your entire AI coding session history along with activity, notes, and git commit tracking
On startup, the server launches three background services:
- Session indexer (every 2 min) — Indexes all Claude sessions from
~/.claude/projects/**/*.jsonland Gemini sessions from~/.gemini/tmp/*/chats/session-*.json, builds a full-text search index (FTS5), and queues new sessions for auto-summarization - Batch summarizer — Continuously processes the summarization queue using Claude CLI
- Git poller (every 2 min) — Polls git branch, commit, and remote URL for each live agent and stores snapshots in SQLite
Features:
- Search — Type in the search bar to find sessions by content (uses SQLite FTS5 with porter stemming)
- Filter by tag — Select a tag from the dropdown to narrow results
- Filter by source — Show only Claude or Gemini sessions
- Filter by date — Narrow results to a specific date range
- Pagination — Browse through all sessions with prev/next controls
- URL bookmarking — Session URLs use hash routing (
#session/<id>) so you can bookmark or share links - Notes & tags — Add markdown notes and color-coded tags to any session, stored in
~/.coral/sessions.db
Managing sessions from the dashboard
The web dashboard provides quick-action buttons for each live session:
| Action | Description |
|---|---|
| Esc / Arrow / Enter | Send navigation keys to the agent |
| Plan Mode | Toggle Claude Code plan mode |
| Accept Edits | Toggle Claude Code auto-accept mode |
| Bash Mode | Send ! command to enter bash mode |
| Base Mode | Toggle base mode |
| /compact / /clear | Send compress or clear commands (adapts per agent type) |
| Reset | Compress then clear the session |
| Attach | Open a local terminal window attached to the agent's tmux session |
| Restart | Restart the agent in the same tmux pane |
| Kill | Terminate the tmux session and remove it from the dashboard |
You can also type arbitrary commands in the input bar and send them to the selected agent.
Scheduled Jobs
Coral supports cron-scheduled jobs that automatically launch agents in isolated git worktrees. Create and manage them from the Scheduled section in the sidebar.
Each scheduled job:
- Creates a fresh git worktree from the specified branch
- Launches an agent (Claude or Gemini) with optional CLI flags
- Sends the configured prompt to the agent
- Monitors the session with a configurable timeout
- Cleans up the worktree on completion (optional)
- Tags the session as "scheduled" for easy filtering in history
Run history is tracked per job with links to view each session's full history.
Webhook Notifications
Configure webhooks from the dashboard settings to receive HTTP notifications when agents need input or when other events occur. Useful for integrating with Slack, Discord, or custom monitoring.
Claude Code Hooks (settings.json)
To fully integrate Claude Code's agentic state and task management into the Coral dashboard, configure the provided coral-hook scripts in your Claude Code settings.json (usually located at ~/.claude.json or ~/.claude/settings.json).
If you are already using other configuration options like a custom statusLine or other hooks, simply merge these hook definitions into your existing JSON:
"hooks": {
"PostToolUse": [
{
"matcher": "TaskCreate|TaskUpdate",
"hooks": [
{
"type": "command",
"command": "coral-hook-task-sync"
}
]
},
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "coral-hook-agentic-state"
}
]
}
],
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "coral-hook-agentic-state"
}
]
}
],
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "coral-hook-agentic-state"
}
]
}
]
Or use launcher which discovers worktree subdirectories, creates a agent for each one, and starts launches the dashboard:
# Launch Claude agents and web dashboard for worktrees in the current directory
launch-coral
# Launch Gemini agents from a specific path
launch-coral <path-to-root> gemini
Remote server development (SSH port forwarding)
If you're running Coral on a remote server, forward the dashboard port over SSH to access it in your local browser:
# Forward remote port 8420 to localhost:8420
ssh -L 8420:localhost:8420 user@remote-host
# If using a custom port
ssh -L 9000:localhost:9000 user@remote-host
Then open http://localhost:8420 (or your custom port) in your local browser. You can add this to your ~/.ssh/config to make it persistent:
Host my-dev-server
HostName remote-host
User user
LocalForward 8420 localhost:8420
Manual tmux management
# Attach to a specific agent session
tmux attach -t claude-agent-1
# Switch between windows
Ctrl+b n # next
Ctrl+b p # previous
# Detach from tmux
Ctrl+b d
Agent Protocol
Agents emit structured markers using the ||PULSE:<EVENT_TYPE> <payload>|| format. The dashboard parses these from agent output in real time:
||PULSE:STATUS <Short description of current task>||
||PULSE:SUMMARY <One-sentence high-level goal>||
||PULSE:CONFIDENCE <1-5> <short reason>||
The protocol is automatically injected via PROTOCOL.md when launching agents. See src/coral/PROTOCOL.md for the full specification.
Advanced Information
For information on project structure, API endpoints, and the database schema, please see DEVELOP.md.
Dependencies
- Python 3.8+
- FastAPI + Uvicorn — Web server
- Jinja2 — HTML templating
- aiosqlite — Async SQLite (WAL mode)
- tmux — Session management
- Claude CLI (optional) — Powers auto-summarization
Contributing
We welcome contributions! Whether it's adding support for new AI coding agents natively or improving the web dashboard, please feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_coral-2.3.0.tar.gz.
File metadata
- Download URL: agent_coral-2.3.0.tar.gz
- Upload date:
- Size: 13.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10865fc256c111442a2a6631d3ff88aa221f22e1633442473f4d6871bc4310b7
|
|
| MD5 |
855c502ce91a3de0ee12c21cfe21ab92
|
|
| BLAKE2b-256 |
240e519c0bb9514dcdd26878a26c77ece8012f332a2bda647afcf5f722223753
|
Provenance
The following attestation bundles were made for agent_coral-2.3.0.tar.gz:
Publisher:
publish.yml on cdknorow/coral
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_coral-2.3.0.tar.gz -
Subject digest:
10865fc256c111442a2a6631d3ff88aa221f22e1633442473f4d6871bc4310b7 - Sigstore transparency entry: 1108183188
- Sigstore integration time:
-
Permalink:
cdknorow/coral@168288043022f8f5ce4be2c4afd6616ad5ef9340 -
Branch / Tag:
refs/tags/v2.3.0 - Owner: https://github.com/cdknorow
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@168288043022f8f5ce4be2c4afd6616ad5ef9340 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agent_coral-2.3.0-py3-none-any.whl.
File metadata
- Download URL: agent_coral-2.3.0-py3-none-any.whl
- Upload date:
- Size: 13.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b15ed05a09ef73507b9bf24ffeb798afb140fb27d3bc2a36bec9329840d9632
|
|
| MD5 |
112c175ddf3053b66d6f8d1bb5ac1edd
|
|
| BLAKE2b-256 |
f32ed5fdb5e87161fcb54ef90dd4364e3f5e9ee1810599ecc7adb55f7325e82a
|
Provenance
The following attestation bundles were made for agent_coral-2.3.0-py3-none-any.whl:
Publisher:
publish.yml on cdknorow/coral
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_coral-2.3.0-py3-none-any.whl -
Subject digest:
3b15ed05a09ef73507b9bf24ffeb798afb140fb27d3bc2a36bec9329840d9632 - Sigstore transparency entry: 1108183193
- Sigstore integration time:
-
Permalink:
cdknorow/coral@168288043022f8f5ce4be2c4afd6616ad5ef9340 -
Branch / Tag:
refs/tags/v2.3.0 - Owner: https://github.com/cdknorow
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@168288043022f8f5ce4be2c4afd6616ad5ef9340 -
Trigger Event:
release
-
Statement type: