From 21059687eb39e5fddb0183e51c0745f639c94796 Mon Sep 17 00:00:00 2001 From: NagyVikt Date: Sat, 11 Apr 2026 18:36:38 +0200 Subject: [PATCH] Document GitHub auto-delete setting to reduce merged branch clutter Adds an explicit optional setup step for enabling GitHub's automatic head-branch deletion so merged agent branches are cleaned up remotely without manual pruning. Constraint: Setting lives in GitHub repository settings, not local CLI config Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep this note in the setup checklist near branch workflow steps so users enable it during initial repo setup Tested: README diff and checklist insertion verified locally Not-tested: End-to-end GitHub settings toggle behavior (external UI) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9d6195a..61bbafa 100644 --- a/README.md +++ b/README.md @@ -241,6 +241,9 @@ Use this exact checklist to setup multi-agent safety in this repository for Code 7) Optional: sync your current agent branch with latest base branch: gx sync --check gx sync + +8) Optional (GitHub remote cleanup): enable: + Settings -> General -> Pull Requests -> Automatically delete head branches ``` ## Basic commands