provision
Set up a shared GitHub repository for agent collaboration, creating it if needed, wiring the remote, and inviting partners to start using the claim protocol.
Instructions
Create the shared GitHub repository if it doesn't exist yet, then leave both collaborators ready to use the claim protocol. Run this ONCE, by one person, before anyone calls survey()/claim(). It is idempotent — safe to re-run; each step is skipped if already done.
What it does, in order:
Ensure AGENTSYNC_REPO is a local git repo with at least one commit (creates the directory + a starter README if empty).
Create the repo on GitHub via
gh(private unless private=False) and wire up the 'origin' remote, or reuse an existing remote/repo.Push the default branch.
Seed the coordination branch (agentsync) with an empty claims.json.
Invite the partner(s) as push collaborators, if any usernames are given here or via AGENTSYNC_PARTNER_GITHUB.
repo : 'owner/name', bare 'name' (owner = you), or '' to use the AGENTSYNC_REPO folder name. partner_github : one or more GitHub usernames to invite, comma- or space-separated (overrides env). Supports a whole team. private : create the repo private (default) or public. description : optional GitHub repo description.
Requires the gh CLI, authenticated (gh auth login) with 'repo' scope.
Returns a summary of what was created plus the clone URL to send your
partners.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| private | No | ||
| description | No | ||
| partner_github | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |