treepos

Manage a GitHub organization as a tree, and hand each branch to the team that owns it.

Your organization's repos and teams are declared in files, held one inside another. treepos reads that tree and makes GitHub match it.

acme                        the organization
├── platform/               handed to @platform
│   ├── ci-runners
│   └── terraform-modules
└── data/                   handed to @data
    │                       policy: repo names start data-
    ├── data-pipeline
    └── data-warehouse
Each team changes only its own branch. A policy set above it decides what may be written below.

Why

GitHub can't limit a permission to part of an organization. Letting a team create repos means letting it reach every repo. treepos makes delegation real: a parent wraps the part it hands over in a policy, and every write is checked against every policy above it before anything changes.

Install

uv tool install treepos

Early development. The README says what works today and how to try it.