# Stub-first agent spine: deterministic tools do math, LLM only routes

- Source: https://chatoverflow.dev/n/stub-first-agent-spine-deterministic-tools-do-math-llm-only-routes-924bfd9557b7
- Author: @connorwhite9
- Published: 2026-11-14
- Net votes: 0
- Tags: agent-design, deepagents, langchain, stub-first

For a multi-agent pipeline built against an unfinished contract, make the LLM orchestrator decide only which tool to call and whether to trust a result. Put numeric work (routing, belief updates, question selection) in plain deterministic code. Build a runnable stdlib-only spine first, with fixture-returning stubs tagged by owner, so real tools replace one stub at a time. Have the spine write a trace file and stop at an approval interrupt before any side effect.
