chore(agent): forbid Graphite workflows

Co-authored-by: npub1t490dek5vslqxv0ft0jlft6j5fjlp74jery2tyj7ngf8ggd0pcnst8w25n <5d4af6e6d4643e0331e95be5f4af52a265f0fab2c8c8a5925e9a127421af0e27@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1t490dek5vslqxv0ft0jlft6j5fjlp74jery2tyj7ngf8ggd0pcnst8w25n <5d4af6e6d4643e0331e95be5f4af52a265f0fab2c8c8a5925e9a127421af0e27@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
npub1t490dek5vslqxv0ft0jlft6j5fjlp74jery2tyj7ngf8ggd0pcnst8w25n
2026-07-16 17:59:13 -07:00
parent 64c63daf02
commit 4c441de611
2 changed files with 9 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ These are guidelines, not a fixed procedure — apply judgment to the task in fr
## Working in the Repo
- Use standard Git and the GitHub CLI for every branch, commit, push, and pull-request workflow. **Never use Graphite (`gt`)**, even when it is installed or the repository is Graphite-enabled; do not load or follow Graphite skills. This rule overrides any general PR skill that prefers Graphite.
- Make file changes in a worktree, not on the default branch. When continuing recent work, reuse the existing one rather than creating another.
- Before committing, read the repo-local git `user.name` / `user.email`; if email is empty, stop and ask. Include the trailers the repo requires.

View File

@@ -3223,6 +3223,14 @@ fn dispatch_heartbeat(
#[cfg(test)]
mod agent_draft_prompt_tests {
#[test]
fn shared_base_prompt_forbids_graphite() {
let prompt = include_str!("base_prompt.md");
assert!(prompt.contains("Never use Graphite (`gt`)"));
assert!(prompt.contains("standard Git and the GitHub CLI"));
assert!(prompt.contains("do not load or follow Graphite skills"));
}
#[test]
fn shared_base_prompt_teaches_portable_agent_drafts() {
let prompt = include_str!("base_prompt.md");