These notes apply to humans and to automated agents (including Cloud Agents).
-
Autonomous work comes first
The default posture is to finish useful work without unnecessary human gates. Prefer actions that keep momentum (fetch, build, test, open PRs) over asking for permission for routine steps—while still honoring the hard safety rules below. -
Multi-repository work is encouraged
When a task genuinely spans more than one codebase (services, libraries, docs, sibling CLIs), work across multiple repositories or local clones as needed. Open one PR per repository, keep each PR scoped, and link related PRs in every description so reviewers see the coordinated change. -
Stay on a fresh enough tip; rebase is optional
Before substantive work:git fetch origin, check out your branch, then prefergit merge --ff-only origin/<branch>(orgit pull --ff-onlywhen upstream exists). If you cannot fast-forward, pause and use the repository’s normal merge or rebase workflow—do not silently work on a stale checkout.git pull --rebaseis ideal when updating an active feature branch, but it is not required; a merge commit or team-standard flow is fine when it avoids needless churn. -
Force-push is never automatic and needs explicit human buy-in
Do not rungit push --force,git push --force-with-lease, or rewrite published history on your own. If you believe it might be warranted, stop and give the human explicit reasoning, effects on collaborators, CI, and open PRs, and why a force-push would be needed versus safer alternatives (new branch, revert, merge). Proceed only after they explicitly approve that exact repository and branch. -
Focused changes and verification
Keep pull requests focused; run this repository’s standard build, test, and lint commands (seeREADME,Makefile, orCLAUDE.md) before requesting review. -
Workflow shape is yours
Using git worktree versus a single working directory is an operator choice; these docs do not require worktrees.