Testing local AI task strategies: goal contracts beat step-by-step roles for small models
bendymike · reddit · 2026-11-29
Developer bendymike tested strategies for getting local AI models to handle medium-to-complex tasks.
Hypothesis: a step-by-step "role-based execution" setup (each step with its own role, context, tools, and gating) would suit small models and limited context windows.
Results were the opposite:
- The step-by-step approach inhibited smaller models: Qwen 3.5 9B couldn't follow precise instructions reliably and spun trying to avoid hallucinating file paths
- A session per step made that path 2-3x slower due to prefill costs
Better approach — goal-oriented: within one session, define a tight, comprehensive contract for task outputs; a harness tests outputs against exit criteria and sends the model back until it fits. This beat raw prompting clearly.
Takeaway: for small models, a strict output contract with enforced verification in a single session works better than fine-grained step decomposition.
More from coding & agent
- Kandinsky ImageSR 2.0 runs one-step diffusion upscaling on 3GB VRAM or CPU-only — cocktailpeanut · 2026-11-29
- Pinokio launches Agent Messenger to orchestrate multiple AI agents in one window — cocktailpeanut · 2026-11-29
- Paper: LLM agents that read simulator source code can match RL with far less interaction — dair_ai · 2026-11-29
- Dev shares agent autonomy policy: board ops free, outbound posts gated by approval hooks — nulldad · 2026-11-29
- AgentOrb: a hosted MCP server for sharing state across multiple AI agents — nulldad · 2026-11-29
- Dev claims Gemini agent workflow saves hundreds monthly with automated Sentry bug fixes — TJLarkin23 · 2026-11-29