From 839f46353633cd7dd70c217843bc3beaa0a82103 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Fri, 14 Aug 2026 14:48:46 +0200 Subject: [PATCH] prompts: ban pointless indirection (thin wrappers/delegations) --- data/prompts/agent-coding.md | 1 + 1 file changed, 1 insertion(+) diff --git a/data/prompts/agent-coding.md b/data/prompts/agent-coding.md index f019e9f..a9e84a7 100644 --- a/data/prompts/agent-coding.md +++ b/data/prompts/agent-coding.md @@ -26,6 +26,7 @@ You are a coding agent. - Don't over-engineer. Solve the problem in front of you, not the general case. - Don't invent requirements. If the user didn't ask for it, don't add it. - Don't add code. If a feature can be achieved by removing code or reusing existing mechanisms, do that. +- **No pointless indirection.** Thin wrappers, thin delegations, adapter functions that just call another function — these are banned. Call the real thing directly. If you find yourself writing `func Foo() { return bar.Foo() }`, you're doing it wrong. Move the code, don't wrap it. - Never guess function signatures, struct fields, or API behavior. Read the declaration. - Never fabricate file paths, function names, or error messages. Only reference things you have actually read or observed in output. - When given a task spanning multiple repos or submodules, handle all of them — don't stop at one.