Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

corral

Round up your projects into herdr workspaces.

corral sets up a herdr workspace for any project under a root directory. Each workspace gets a utility tab (file manager, shell and git UI by default) and one or more agent tabs, each named for the model and effort it runs: Sonnet•medium, Opus•high, Codex•xhigh. Use the TUI to browse projects and act with single keys, or the CLI (with --json) for scripts and coding agents.

                                     corral 0.4.0 • ~/Code
────────────────────────────────────────────────────┬───────────────────────────────────────────
  Project               WS  Agents        Branch    │ shop/api
○   ~                                               │ ~/Code/shop/api
●   blog                w2  ● Sonnet med  main      │
○ ▾ shop                                  main      │ kind     git repo, nested in the shop repo
● ├─ api                w1  ● Opus xhi    develop   │ branch   develop  2 changed
○ ├─ infra                                main      │
○ └─ web                                  feat/cart │ workspace w1 'shop/api'  2 tabs
○ ▸ Archive/ · 3 repos                              │   ● Opus•xhigh  working  claude-opus-xhigh
○   dotfiles                              master    │
────────────────────────────────────────────────────┴───────────────────────────────────────────
$ up blog
workspace w2 'blog' -> /Users/you/Code/blog
  added  blog (yazi / shell / lazygit)
  added  Sonnet•medium (claude-sonnet-medium, w2:p4)
ready: w2
  done
────────────────────────────────────────────────────────────────────────────────────────────────
space Fold  o Open  a Add agent  u Utility  s Stop  x Close WS  / Filter  g Refresh  , Settings

Install

corral needs herdr 0.8 or later. Install it one of two ways; either gives you the corral command.

Homebrew

brew install chocs-cat/tap/corral-herdr

The formula lives in the chocs-cat/tap tap and brings its own Python. It's named corral-herdr because homebrew/core's corral is the Pony package manager, which also installs a corral command, so the two can't be installed together.

PyPI

uv tool install corral-herdr

This installs the corral-herdr package from PyPI into its own environment.

The utility tab's tools

The default utility tab runs two programs corral doesn't bundle: yazi, a terminal file manager (browse, preview, open and rename the project's files), and lazygit, a terminal UI for git (stage, commit, branch, rebase and push with single keys). A pane whose program isn't installed opens a plain shell. corral can install them for you, with Homebrew, pacman, or go install for lazygit:

corral tools            # what each does, and whether it's installed
corral tools install    # install the missing ones

The TUI's settings screen (,, then the Utility tab) has an Install button for each, and the TUI mentions them at start-up when they're missing. It needs Python 3.11 or later; pipx install corral-herdr works the same way.

Use

corral                                  # the TUI
corral up ~/Code/api                    # build the workspace, or focus it if it exists
corral up ~/Code/api --agent opus/high --agent codex/xhigh
corral tab opus/high                    # an agent tab in the workspace you're in
corral tab sonnet --new                 # another one: Sonnet•medium-2
corral stop "Opus•high"                 # by tab label, agent name or pane id
corral close courses --dry-run          # what closing would take with it
corral ls                               # projects, workspaces, agents
corral models                           # the model matrix

Every command takes --json: the result goes to stdout as JSON, progress to stderr. Exit codes: 0 ok, 1 a target failed, 2 usage/config error, 3 herdr not running. --json, --root and --config go before or after the command (corral --root ~/Work ls).

Projects and labels

Every directory in the root is a project. So is every git repo nested up to scan_depth levels inside one (shop/api), along with the plain folders that lead to one (Archive/2024/). A project's workspace is labelled with its path relative to the root, so two nested repos that share a name don't collide. Hidden directories and dependency/build folders (node_modules, vendor, dist, …) are skipped.

Your home directory is a project too: it heads the list as ~, and its workspace is labelled ~ (quote it on the command line: corral close '~').

TUI keys

Key Action
o / enter open: build the workspace, or switch to it
a add an agent tab: pick a model, then an effort (always a new tab)
u open with only the utility tab (switches to an existing workspace)
s stop running agents (pick them)
x close the workspace: shows what goes with it, runs on y
→ ← space unfold / fold / toggle the tree
/ g q filter, refresh, quit
, settings

Configure

Press , in the TUI for the settings screen. Its tabs cover the project root (with a folder browser), the agent tabs a new workspace gets, the utility tab's three panes and their sizes, the model matrix and effort levels, and a few advanced options. Saving writes the config file and keeps its comments and layout. If the root doesn't exist when the TUI starts, the settings screen opens so you can choose one.

From the command line:

corral config init      # writes a commented ~/.config/corral/config.toml
corral config show      # the settings in effect

The file lives at $CORRAL_CONFIG, else $XDG_CONFIG_HOME/corral/config.toml, else ~/.config/corral/config.toml (on macOS too). Every key is optional.

root = "~/Code"                     # also --root / $CORRAL_ROOT
scan_depth = 3
default_agents = ["sonnet/medium"]

[utility]                           # "" = plain shell
top = "yazi"
bottom_left = ""
bottom_right = "lazygit"
top_percent = 50                    # the top pane's share of the height
bottom_left_percent = 35            # the bottom-left pane's share of the bottom row

[efforts]
claude = ["low", "medium", "high", "xhigh", "max"]

[[models]]                          # any herdr agent kind: claude, codex, gemini, opencode, ...
key = "opus"
tool = "claude"
display = "Opus"
args = ["--model", "opus", "--effort", "{effort}"]

Agent skill

skills/corral/SKILL.md teaches coding agents to drive corral through its --json CLI. The repo is also a Claude Code plugin marketplace:

/plugin marketplace add chocs-cat/corral
/plugin install corral@corral

Or copy skills/corral into your agent's skills directory.

Develop

uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .
uv run ty check

Tests run against an in-memory fake herdr (tests/fake_herdr.py); nothing touches a real herdr session. See CONTRIBUTING.md for commit conventions and the release process, the issues for the roadmap, and docs/decisions.md for settled design questions.

License

MIT

Metadata

Release files for corral-herdr 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for corral-herdr 0.5.1
File Size Uploaded Provenance
corral_herdr-0.5.1.tar.gz 61.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for corral-herdr 0.5.1
File Interpreter ABI Platform
corral_herdr-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 110.8 kB

Release files / corral_herdr-0.5.1.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL corral_herdr-0.5.1.tar.gz
Size 61.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2f2ccf5c0933f06c1720fdfecefc4dde9015434b3fd261446c2f0218625c180c
BLAKE2b-256 checksum
How to use checksums
836c1f30bf8f41ce7bb197e7b65e57f4ec60a8cfd89a994b40bb5764b0da923c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

Release files / corral_herdr-0.5.1-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL corral_herdr-0.5.1-py3-none-any.whl
Size 49.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a5fefecd3cb7a3414c4481551fef72516539b662f6ed0bcba6b9b88ab36fcd8
BLAKE2b-256 checksum
How to use checksums
b7a6c99c418e88b5cd6bc2a91440a41e7c44f67e44b5bcbbe0561e49abcaac81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

Security for corral-herdr 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Change of provenance

The repository that created this release differs from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Repository

  • Removed 0.5.0 GitHub: johnfoland/corral
  • Added 0.5.1 GitHub: chocs-cat/corral
Select from 2 files

Attestation for corral_herdr-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page