shoal
A structured shell for humans and agents.
Typed values instead of text plumbing. Dot-chains instead of pipes. Scoped, content-addressed tool
resolution instead of ambient PATH. One typed core across terminal, scripts, and agent sessions.

Quickstart ·
Manual ·
Architecture ·
Status and limits ·
Roadmap
Shoal runs ordinary terminal programs on a real PTY, preserving colors, prompts, progress bars,
password input, job control, and full-screen TUIs. When a command participates in an expression,
its result becomes a typed value that can be filtered, sorted, transformed, journaled, shared, or
queried by an agent without reparsing rendered text.
# Collections and command output compose with methods, not a byte pipe.
ls.where(.size > 1mb).sort_by(.size).map(.name)
# Units are values.
1.5gb + 500mb
# → 2gb
# Functions are commands with typed parameters.
fn deploy(env: str, dry: bool = false) {
if dry { "would deploy to {env}" } else { "deployed to {env}" }
}
deploy staging --dry
# Keep POSIX as an explicit escape hatch.
sh { git log --oneline -5 }
Typing |, $VAR, a heredoc, or an fd-numbered redirect produces a targeted diagnostic explaining
the shoal form: dot-chain a structured value, use env.NAME, feed a value with .feed(...), inspect
.stderr, or enter an explicit sh { ... } block.
Try it
Shoal is pre-release and is not ready to replace a login shell. The language engine, REPL, process
runner, Reef resolver, journal/CAS, Leash policy path, streams/channels, kernel protocol, and MCP
facade are implemented and tested on Linux and macOS.
Shoal is Unix-only. It relies on Unix-domain sockets, POSIX process/signal/PTY semantics, and
(where available) Landlock/Seatbelt sandboxing; Windows is out of scope for now and would need a
deliberate port (see Current status and limits).
Prebuilt Linux and macOS (x86_64 and arm64) binaries are attached to each
GitHub release with SHA-256 checksums. Shoal is
published on crates.io as shoal-sh (the shoal crate name belongs to an unrelated project); the
command is still shoal. To build from source:
cargo install shoal-sh (or cargo install --git https://github.com/alliecatowo/shoal shoal-sh), which installs shoal, shoal-kernel, shoal-mcp, the sandbox helpers and the other companion binaries.
Install a release with Homebrew (macOS and Linux), or download a tarball for your platform from the
releases page:
brew install alliecatowo/tap/shoal
shoal --version
Or build from source:
# Install the pinned tools, then all binaries, man pages, and host-shell completions
mise install
mise run install
# Interactive shell
shoal
# Evaluate source
cargo run -p shoal-sh --bin shoal -- -c $'let answer = 6 * 7\nanswer'
# Run a script
cargo run -p shoal-sh --bin shoal -- examples/example.shl
The repository currently ships 49 declarative adapters and a normative corpus of 1,374
cases across 79 suites. The corpus is the executable language contract.
The model