croft
Tend your croft.
Croft is the dev workspace you tend. One croft.toml keeps
Docker Compose, scripts, hooks, and agent instructions together
on a small plot of ground you know well — your project, the way
your project runs, not the way a tool demands.
Declare commands in croft.toml or drop shell scripts under
.croft/commands/. Hold Docker Compose, host tooling, git hooks
that natively read a .pre-commit-config.yaml subset, and
upstream agent instructions on the same ground, and mind the
whole stack from a built-in TUI.
- Site: croft.sh
- Status: alpha. End-to-end usable on Linux and macOS for the features documented in the wiki.
Install
Homebrew (macOS / Linux):
From a clone (any platform):
Once published to crates.io:
The binary is named croft.
60 seconds with croft
# croft.toml
[]
= "myapp"
[]
= "compose"
= "app"
[]
= "Start all services"
= "docker compose up -d"
[]
= "Run test suite"
= ["up"]
= "app"
= "composer test"
= true
[]
= ["check"]
Anything not matched as a recipe / script / built-in falls through
to docker compose <cmd> (croft ps, croft logs app, …) or, if
<cmd> is a compose service, to docker compose exec <cmd> (so
croft app php -v works).
Documentation lives in the wiki
The full feature set, configuration reference, command reference,
subsystem deep-dives, and onboarding flow live in the
croft wiki.
The wiki is auto-synced from
docs/ on every push to main, so the source-tree copy
is always the canonical reference.
Start here:
- Home — landing + page index.
- Getting Started — first project, first recipe, first hook.
- Quick Tour — guided walk through every major feature.
- Configuration Reference — every
croft.tomlkey. - Commands Reference — every CLI subcommand.
- Examples — runnable croft projects.
- Troubleshooting —
croft doctorand common pitfalls.
Examples (in this repo)
examples/minimal— smallest useful config.examples/laravel-app— Laravel + Docker Compose, modeled on the dev script croft was built to replace.examples/install-flow—.croft/install/ordered setup with optional + interactive steps.examples/hooks— native[hooks]plus a.pre-commit-config.yamlmixing local and external repos.examples/agents-upstream— sample upstream layout for sharing agent instructions across repos.
Contributing
See Contributing
in the wiki for the verification ladder, Conventional Commits
conventions, and how to add a new example. AI agents working on this
repo: read AGENTS.md.
License
Dual-licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.