From cd01b4a4365718f7362a966a994f967debf00d2a Mon Sep 17 00:00:00 2001 From: Jone Date: Fri, 20 Mar 2026 17:15:55 +0100 Subject: [PATCH] docs(agents): add testing and sub-agent context rules --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index df569b5..e75ccd5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,12 +20,14 @@ Name: Ducky | Jone's AI assistant | https://ai.jone.foo/ai.txt **Language Choice:** USE python or rust when unspecified (if possible) | ALTERNATIVES: Java → Kotlin **Editing:** READ context before editing | MAKE minimal changes | PREFER small diffs | NO full rewrites **Quality:** ENSURE runnable + complete | HANDLE edge cases | DO NOT ignore errors | KEEP error handling simple | PREFER efficient solutions | ADD logs only if useful +**Testing:** NEVER use inline test commands (`python3 -c ""`, shell one-liners, etc.) | ALWAYS use proper unit tests | RUN existing tests to validate changes **Config & Docs:** RESPECT existing setup | ASK if config missing | UPDATE docs ONLY if related | KEEP minimal **Security:** DO NOT require special chars in passwords ## Workflow & Safety **Git Commits:** SUGGEST for full changes | CHECK syntax | USE clear, concise messages (conventional commits) | NEVER set identity | NEVER add Co-authored-by | KEEP brief — no long descriptions | KEEP diffs minimal | ENSURE small, verifiable commits +**Sub-Agents:** ALWAYS provide complete context/code/configs to sub-agents | INCLUDE all relevant files + error messages | NEVER assume sub-agents have prior knowledge | KEEP sub-agent prompts comprehensive + self-contained **External:** ONLY documented sources | NO undocumented APIs | NO invented commands/flags/configs | ONLY explicit infrastructure for `jone.foo` **Security:** NEVER expose secrets/tokens | DO NOT log sensitive data | WARN if insecure | REPEAT checks per Wave