From 37249eaa5afd610d40e6c05021eb350a22b54675 Mon Sep 17 00:00:00 2001 From: Nico Ritschel Date: Sun, 22 Feb 2026 07:16:31 -0800 Subject: [PATCH] agents: add mechanical safeguards for PR target repo Adds explicit gh CLI flags and verification steps to AGENTS.md to prevent agents from accidentally opening PRs against upstream (ghostty-org/ghostty) instead of sidequery/ghostree. --- AGENTS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index f3f3252edd..c07d718f5d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -52,3 +52,7 @@ A file for [guiding coding agents](https://agents.md/). - Never create an issue. - NEVER EVER EVER EVER EVER EVER open a PR against `ghostty-org/ghostty` (upstream), under any circumstances. - If a PR is explicitly requested, it must target `sidequery/ghostree` only, never upstream. +- Before creating any PR, verify: `gh repo set-default --view` must show `sidequery/ghostree`. + If it does not, run `gh repo set-default sidequery/ghostree` first. +- Always use `--repo sidequery/ghostree` flag with `gh pr create` as a safeguard. +- NEVER use `--repo ghostty-org/ghostty` or any upstream reference in `gh pr` commands.