Getting started¶
There are two common ways to use Caretaker:
- Consumer repository setup — use the setup guide to install caretaker into another repository.
- Local development — run caretaker directly from this repository while developing or debugging it.
Consumer repository setup¶
The fastest path is the setup guide shipped with this repository:
The guide is designed to be used from a GitHub issue assigned to @copilot.
Use the template below — click the copy button on the right to copy it, then paste it as the body of a new issue in your repository:
## Setup Caretaker
@copilot Please set up the caretaker system for this repository.
### Instructions
1. Read the setup guide at:
https://github.com/ianlintner/caretaker/blob/main/setup-templates/SETUP_AGENT.md
2. Follow the instructions exactly.
3. Open a single PR with the generated files.
Local development¶
Install the project in editable mode:
pip install -e ".[dev,docs]"
Validate a config file:
caretaker validate-config --config .github/maintainer/config.yml
Run the orchestrator locally:
caretaker run --config .github/maintainer/config.yml
Run in dry-run mode:
caretaker run --config .github/maintainer/config.yml --dry-run
Required environment¶
Caretaker expects a GitHub token when it runs against a repository:
GITHUB_TOKENGITHUB_REPOSITORY_OWNERGITHUB_REPOSITORY_NAME
Alternatively, GITHUB_REPOSITORY can be provided in owner/repo format.
Optional, but strongly recommended for hands-free Copilot iteration:
COPILOT_PATfrom a write-capable user or machine user; caretaker uses it for API-based Copilot issue assignment and for workflow-authored@copilotPR comments so they are attributed to that identity instead ofgithub-actions[bot]ANTHROPIC_API_KEYfor enhanced Claude-backed reasoning features
Key installed files¶
A configured repository typically gets:
.github/maintainer/config.yml— repo-specific config.github/maintainer/.version— pinned caretaker version.github/copilot-instructions.md— global Copilot project memory.github/agents/*.md— per-agent personas
No workflow file is installed. Caretaker runs server-side on AKS and receives GitHub App webhooks; consumer repos only ship config and Copilot instructions. See Architecture for the runtime topology.