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
Corral is an MIT licensed multi-agent orchestration application for managing AI coding agents across git worktrees running locally on your local or remote machine. The application is built using tmux and FastAPI for easy extensibilty and modification.
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 from both Claude and Gemini
- Full-text search — Search across all session content
- Auto-summarization — Summarization of sessions are stored for text search later
- Session notes & activity — Add markdown notes and see the activty that occured in each seassion 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, or kill it directly from the UI, or relaunch as a neew session
- Git integration & PR Linking Tracks, commits, and remote URL per agent & session
As Demoed by Claude 😂😂😂
Installation
Install from PyPI:
pip install agent-corral
Or install directly from GitHub:
pip install git+https://github.com/cdknorow/corral.git
Usage
Launch agents and web dashboard
The launcher discovers worktree subdirectories, creates a tmux session with an agent for each one, and starts the web dashboard in its own tmux session:
# Launch Claude agents and web dashboard for worktrees in the current directory
launch-corral
# Launch Gemini agents from a specific path
launch-corral <path-to-root> gemini
Note: This system is currently mostly tested with Claude Code and to some extent Gemini CLI. However, the underlying architecture is designed to support other agents, which can be integrated with some additional work from others.
Web dashboard (standalone)
You can launch the web server directly using corral or corral-dashboard:
# Start the web dashboard directly (default: http://localhost:8420)
corral-dashboard
# Custom host/port
corral-dashboard --host 127.0.0.1 --port 9000
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.
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
- 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
~/.corral/sessions.db
Claude Code Hooks (settings.json)
To fully integrate Claude Code's agentic state and task management into the Corral dashboard, configure the provided corral-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": "corral-hook-task-sync"
}
]
},
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "corral-hook-agentic-state"
}
]
}
],
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "corral-hook-agentic-state"
}
]
}
],
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "corral-hook-agentic-state"
}
]
}
]
Remote server development (SSH port forwarding)
If you're running Corral 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/corral/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
- 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_corral-0.1.3.tar.gz.
File metadata
- Download URL: agent_corral-0.1.3.tar.gz
- Upload date:
- Size: 87.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e445e1984b74e8d5a4162c7e938d97b49eaadf57905438c5677f7ad933f9d45
|
|
| MD5 |
5de0d85fcacb3a62b2b26a3510eef859
|
|
| BLAKE2b-256 |
a6f0741be0c442e9d92354e99fdb36ef3f81559ae9d037c97c425f0f658f5772
|
File details
Details for the file agent_corral-0.1.3-py3-none-any.whl.
File metadata
- Download URL: agent_corral-0.1.3-py3-none-any.whl
- Upload date:
- Size: 95.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30c195877abc34b1b0c0ce7ce07b6551d63170616080abc205649be67353a4b0
|
|
| MD5 |
753e35ace58ac2da46acf94d80ad7dbd
|
|
| BLAKE2b-256 |
b9e3ab0b7af6a828a6024ae3bfd26bcc0990371156373ef76a13bac493cff72e
|