From 0ad3ae0620a7955eb6264b2e6b596f45ff14e62b Mon Sep 17 00:00:00 2001 From: Penpot Dev Date: Thu, 26 Mar 2026 14:41:48 +0100 Subject: [PATCH] :books: Add explicit commit guideline to builtin agents --- .opencode/agents/engineer.md | 4 ++++ .opencode/agents/testing.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.opencode/agents/engineer.md b/.opencode/agents/engineer.md index d31fd17f88..b85205f031 100644 --- a/.opencode/agents/engineer.md +++ b/.opencode/agents/engineer.md @@ -31,3 +31,7 @@ Requirements: exact commands). * Make small and logical commits following the commit guideline described in `CONTRIBUTING.md`. Commit only when explicitly asked. +- Do not guess or hallucinate git author information (Name or Email). Never include the + `--author` flag in git commands unless specifically instructed by the user for a unique + case; assume the local environment is already configured. Allow git commit to + automatically pull the identity from the local git config `user.name` and `user.email`. diff --git a/.opencode/agents/testing.md b/.opencode/agents/testing.md index 299b5a7112..17c19aade1 100644 --- a/.opencode/agents/testing.md +++ b/.opencode/agents/testing.md @@ -31,3 +31,7 @@ Requirements: commands). * Make small and logical commits following the commit guideline described in `CONTRIBUTING.md`. Commit only when explicitly asked. +- Do not guess or hallucinate git author information (Name or Email). Never include the + `--author` flag in git commands unless specifically instructed by the user for a unique + case; assume the local environment is already configured. Allow git commit to + automatically pull the identity from the local git config `user.name` and `user.email`.