LangChain (or not) for your first agent

Framework weight vs plain tool calling, decide when LangChain helps and when it slows your first agent.

code · Published 2026-11-09 · Translation: VI

LangChain (and similar frameworks) bundle “batteries for agents”: tool calling wrappers, retrievers, memory patterns, runnable graphs. For a first agent, that can either save weeks or bury you in abstractions you cannot debug.

The concrete trap is building a framework graph before you can answer one question: does your agent solve a scored task reliably?

Decide: LangChain, or plain tool calling?

Pick LangChain when integration speed is the job:

  • You need to wire multiple retrievers, prompt templates, and tool catalogs fast
  • A platform team wants shared patterns across many agents
  • You already know the framework and can debug it under pressure

Start plain when clarity is the job:

  • The agent is a thin loop with a handful of tools
  • You need full control over latency, logs, and error handling
  • Your team is still learning the domain and agent basics

A small agent you understand beats a clever graph you fear.

Fix before you commit: a two-day decision spike

Spike

Spike

Run a short spike that forces a decision:

  • Day 1: build the thin loop (model → tools → observe → stop conditions) without any framework.
  • Add 3 eval tasks: real tasks with pass or fail criteria and a score you can track.
  • Day 2: try the framework on the same tasks. Keep the surface area small.

Decision rule: adopt the framework only if it reduces time to a better score, not if it merely looks cleaner.

Three failure modes that show up early

Failure modes to catch early

Failure modes to catch early

  • Abstraction fog. Bugs live in wrappers you did not write. Fix: keep explicit state and log the full tool inputs and outputs.
  • Version churn. Online examples target old APIs. Fix: time-box the spike and pin versions if you adopt.
  • Tool spaghetti. Too many overlapping tools hide ownership. Fix: define tool contracts and delete duplicates.

A weekly loop for staying sane

Once a week, run the eval suite and review the diffs for any regressions. If a framework upgrade breaks more than it helps, pause upgrades until you have capacity. If you do not have evals, you do not have upgrade confidence.

Bottom line

When this fits vs when it does not

When this fits vs when it does not

Choose LangChain when integration breadth clearly pays rent and you can measure improvement. Choose plain tool calling when production clarity dominates. Either way, build one reliable agent first, then add frameworks as an amplifier.

Related: LangSmith tracing for observability, and Linear issue agents for a practical “agent does tickets” workload.

Share

X Facebook LinkedIn