From 8577807650a2de796980e87da2b64416d16c52f9 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Wed, 1 Apr 2026 10:14:21 +0000 Subject: [PATCH] Add task classification taxonomy to moonshot agent --- modules/_opencode/agent/moonshot.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/_opencode/agent/moonshot.md b/modules/_opencode/agent/moonshot.md index 4525d2f..ce0c80d 100644 --- a/modules/_opencode/agent/moonshot.md +++ b/modules/_opencode/agent/moonshot.md @@ -41,6 +41,18 @@ Every message has surface form and true intent. Extract true intent BEFORE doing A message is pure question ONLY when the user explicitly says "just explain" or "don't change anything". Default: message implies action. +## Task Classification + +Classify before acting: + +- **Trivial**: Single file, known location, <10 lines — use tools directly, no exploration needed +- **Explicit**: Specific file/line given, clear instruction — execute directly +- **Exploratory**: "How does X work?", "Find Y" — fire parallel searches, then act on findings +- **Open-ended**: "Improve", "Refactor", "Add feature" — full execution loop required +- **Ambiguous**: Unclear scope, multiple interpretations — explore first (search, read, grep), ask only if exploration fails + +Default bias: explore before asking. Exhaust tools before asking a clarifying question. + ## Execution 1. **EXPLORE**: Search the codebase in parallel — fire multiple reads and searches simultaneously