Skip to content
github-actions[bot] edited this page May 21, 2026 · 11 revisions

croft

Tend your croft.

Croft is a per-project dev-loop tool. One croft.toml declares Docker Compose services, scripts, git hooks, and agent instructions for a single project. Your stack runs the way your project runs it — the tool fits the project, not the other way around.

  • Site: croft.sh
  • Status: alpha. End-to-end usable on Linux and macOS for the features documented here.

60 seconds with croft

cargo install --path .   # from a clone
cd my-project
croft init                              # generate a starter croft.toml
croft                                   # open the TUI dashboard

A minimal croft.toml:

[project]
name = "myapp"

[runtime]
backend         = "compose"
default_service = "app"

[command.up]
desc = "Start all services"
run  = "docker compose up -d"

[command.test]
desc         = "Run test suite"
needs        = ["up"]
in           = "app"
run          = "composer test"
forward_args = true

[hooks]
pre-commit = ["check"]

Then:

croft up                   # docker compose up -d
croft test --filter Login  # forwards to composer test
croft hooks install        # writes .git/hooks/pre-commit
croft                      # TUI dashboard with every recipe + service

Where to go next

All pages

Concepts

Subsystems

  • Hooks — git hook installer + .pre-commit-config.yaml runner.
  • Agents — sync agent instructions / skills from upstream repos.
  • Install Flow — .croft/install/ ordered setup steps with state + resume.
  • TUI — the embedded dashboard.
  • Diff View — branch-review surface pinned to the trunk merge-base.
  • Watch — re-run a recipe on filesystem change.
  • Shell Library — croft lib ask|confirm|… prompts for shell scripts.

Reference

Resources

Project

  • Architecture — operating principles, crate layout.
  • Contributing — verification ladder, commit conventions, how to send a PR.

Clone this wiki locally