Agentic coding workflows fail when agents get bad context. Here's how to structure task input, connect your tools, and run agents that produce production-ready code.