From cea74725172babbd0ffe602dc1512d8cebb35c55 Mon Sep 17 00:00:00 2001 From: npc0-hue Date: Sat, 25 Jul 2026 11:48:11 +0800 Subject: [PATCH] docs: require main branch edits --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 63db68f..678c913 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -41,6 +41,8 @@ When creating a task, include the following prompt boundaries before implementat ## Git Completion Rules +All repository modifications must happen on `main` unless the user explicitly asks for another branch in the current task. Do not create, switch to, or push `codex/*` or other task branches by default. If the working tree is not on `main`, switch back to `main` before editing; if local changes block the switch, stop and report the blocker instead of creating a new branch. + For every substantial session task that modifies repository files, automatically stage only the files changed for that task, create a concise git commit after verification succeeds, and push the current branch to its configured git remote before sending the final response. Do not include unrelated pre-existing worktree changes in the commit. If commit or push is blocked by missing credentials, a missing remote, conflicts, or a failing required verification step, report the blocker clearly instead of broadening the commit scope.