From 83ff8360ef0c1d0e35d03fb8a6e507fde9ccc410 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Fri, 28 Aug 2026 16:26:45 -0400 Subject: [PATCH] add canonical agent instructions with per-tool symlinks Store agent instructions at ~/.config/agents/AGENTS.md and symlink ~/.copilot/copilot-instructions.md and ~/.config/opencode/AGENTS.md to it. Instructs agents to omit attribution trailers and to get the commit message approved before committing. --- dot_config/agents/AGENTS.md | 6 ++++++ dot_config/opencode/symlink_AGENTS.md.tmpl | 1 + dot_copilot/symlink_copilot-instructions.md.tmpl | 1 + 3 files changed, 8 insertions(+) create mode 100644 dot_config/agents/AGENTS.md create mode 100644 dot_config/opencode/symlink_AGENTS.md.tmpl create mode 100644 dot_copilot/symlink_copilot-instructions.md.tmpl diff --git a/dot_config/agents/AGENTS.md b/dot_config/agents/AGENTS.md new file mode 100644 index 0000000..1e6755a --- /dev/null +++ b/dot_config/agents/AGENTS.md @@ -0,0 +1,6 @@ +# Agent instructions + +## Commits + +- Do not add a `Co-authored-by` trailer (or any other agent attribution) to commit messages. +- Before committing, show the proposed commit message and wait for approval. Apply any edits I request, then commit. diff --git a/dot_config/opencode/symlink_AGENTS.md.tmpl b/dot_config/opencode/symlink_AGENTS.md.tmpl new file mode 100644 index 0000000..d7c91bf --- /dev/null +++ b/dot_config/opencode/symlink_AGENTS.md.tmpl @@ -0,0 +1 @@ +{{ .chezmoi.homeDir }}/.config/agents/AGENTS.md diff --git a/dot_copilot/symlink_copilot-instructions.md.tmpl b/dot_copilot/symlink_copilot-instructions.md.tmpl new file mode 100644 index 0000000..d7c91bf --- /dev/null +++ b/dot_copilot/symlink_copilot-instructions.md.tmpl @@ -0,0 +1 @@ +{{ .chezmoi.homeDir }}/.config/agents/AGENTS.md