WhoBuilt

How to Build Planning Agents without losing control

Jul 23, 2025· 16 min· 10K views·Watch on YouTube

Speaker

Yogendra Miraje of FactSet shares how to build agentic workflows that use planning while keeping enterprise systems controllable, at AI Engineer.

Workflows and agents

Miraje defines an augmented LLM as a model combined with tools and memory. A workflow puts it on a predefined path, while an agent has greater autonomy and a feedback loop. In an agentic workflow, an agent plans and runs a dynamic workflow based on the goal, context, and feedback.

Plan by breaking goals into steps

Miraje recommends moving beyond ReAct-based agents toward proactive agents, using tools, memory, reflection, and planning by subgoal division. He adapts the LLM Compiler architecture into a blueprint generator, planner, executor, and joiner, with replanning or termination logic and an optional recursion limit.

Use blueprints and agent-oriented tools

Tools built around microservices need clear purposes, descriptions, input and output contracts, and validation checks. Miraje’s blueprint is a natural-language outline of workflow steps based on tool capabilities; it helps reduce planner overload, restrict the tools in context, and make plans easier to review. For an NVIDIA earnings-call report, the example steps summarize the prior call, retrieve financial data, suggest questions, and produce a report.

Evaluate the parts that matter

Miraje calls for component and end-to-end evaluations, using code-based checks, an LLM judge, and human review according to the metric. For example, code can check tool selection, an LLM judge can compare a plan with its blueprint, and a person can review report formatting. He advises against agentic workflows for fixed repetitive jobs, use cases that cannot be expressed as workflows, deterministic safety-critical tasks, and low-latency or cost-sensitive settings.

Build up carefully and choose tools for the use case

Miraje recommends starting with simple blueprints, then growing toward more complex task systems, while investing in guardrails, evaluations, observability, and sound software engineering. In the Q&A, he points to LangChain examples as a place to start with plan-and-execute agents. He describes MCP as a way to make tools reusable across AI applications, with orchestration frameworks such as LangGraph chosen to suit the use case.

Takeaways

  • Start with a simple natural-language blueprint to give the planner a high-level plan and a focused set of tools.
  • Design tools around agent needs, with clear purpose, invocation guidance, input and output contracts, and validation.
  • Reuse enterprise microservices through tools, but do not assume each service needs exactly one tool.
  • Evaluate each stage with a method suited to the metric, and maintain both component and end-to-end evals.
  • Prefer fixed pipelines when tasks are repetitive or require deterministic, low-latency, or cost-sensitive execution.

Mentioned in this talk

Search inside this talk

What was claimed 8

Related talks