Command Palette

Search for a command to run...

crossxrGitHub
Blog

The new agentic world

819views

Language models are starting to act, not just answer. A practical look at how AI agents work, from the agent loop and tool calling to context engineering, subagents and the guardrails that make them safe to use.

The new agentic world

For most of the last few years, working with a language model meant a single exchange. You wrote a prompt, the model wrote a response, and you decided what to do with it. The model could explain, summarise and draft, but every action in the real world still went through a person.

That is changing. The same models now read files, run code, search the web, call APIs and check their own work, often for many steps in a row without a person in between. We call these systems agents, and they are changing what software can do and how we build it.

This post is a practical tour of how agents work today: the loop at their core, the tools they use, the patterns for deciding how much freedom to give them, and the engineering that keeps them reliable and safe.

From answers to actions

A useful working definition: an agent is a language model using tools in a loop to reach a goal. Each part of that sentence matters.

  • A language model does the reasoning. It reads the situation and decides what to do next.
  • Tools let it affect things outside the conversation, from reading a file to sending a request.
  • The loop feeds the result of each action back into the model, so it can adjust.
  • A goal tells it when to stop.

Take away the loop and you have a chatbot with plugins. Take away the tools and you have a model thinking out loud. Put them together and the model can take on a task that needs many steps, where each step depends on what the previous one found.

The loop

Most agents, whatever framework they are built with, run some version of the same cycle. They gather context, decide on an action, take it, and check the result.

AgentsLoopsFeedback

The loop

Gather contextPlanActVerify

Task: fix the failing date test

Reads the failing test, the stack trace and the parser it points to.

The new
agentic world

An agent is a model running in a loop: it gathers context, acts with tools, checks the result, and repeats until the task is done. Tap a step to stop on it.

The verify step is what makes this work. A model that writes code and stops is guessing. A model that writes code, runs the tests and reads the failures has feedback, and feedback is what turns a plausible first attempt into a working one. The more concrete the check, such as a test suite, a type checker, a linter or a screenshot, the better the agent performs.

The loop also explains a common failure. An agent with no reliable way to check its work tends to either stop too early or keep going in circles. When an agent struggles on a task, a good first question is whether it has a clear signal for "done".

Tools are the interface

Everything an agent does in the world goes through a tool call. The model produces a structured request, usually a function name with JSON arguments. The host application runs it and returns the result as new context.

AgentsToolsProtocols

Tools

web searchfile systemcode runnerbrowserdatabase

call web_search({ query: "month-end date parsing bug" })

result 3 results, one matching issue

The new
agentic world

Every action an agent takes is a tool call: a structured request out, a result back into its context. MCP gives those tools one common interface. Tap a call to stop on it.

For a while, every application wired up its tools in its own way. The Model Context Protocol (MCP), an open standard Anthropic introduced in late 2024, gave tools a common interface. A service exposes its capabilities once as an MCP server, and any compatible agent can use them. Other AI labs and developer tools have since adopted it, which is why the same database or issue tracker can now plug into many different agents.

Tool design turns out to matter as much as prompt design. Agents do better with tools that:

  • have clear names and descriptions that say when to use them, not only what they do,
  • take simple, well-typed arguments that are hard to get wrong,
  • return concise, relevant results instead of dumping everything they have,
  • fail with error messages that explain how to fix the call.

A useful habit is to treat tool definitions like a public API for a new colleague. If a person would need three reads to understand a tool, the model will probably misuse it.

Not everything should be an agent

Giving a model full control over its own steps is powerful, but it costs predictability, latency and money. Many problems are better solved with a workflow, where your code decides the sequence and the model fills in specific steps.

WorkflowsAgentsAutonomy

Autonomy

ChainRouterParallelOrchestratorAgent

Who decides the path: Your code

Prompt chaining. Fixed steps, and each model call feeds the next.

The new
agentic world

Patterns from Anthropic's “Building effective agents”. Moving right, more of the control flow moves from your code into the model. Tap a pattern to stop on it.

The patterns above come from Anthropic's guide Building effective agents. On the left, the path is fixed in code, which makes it easy to test and cheap to run. On the right, the model decides the path at run time, which handles open-ended tasks but is harder to predict.

A sensible default is to start at the simplest point that works and move right only when the task needs it. If you can write down the steps in advance, a workflow is usually the better choice. Agents earn their cost when the number and order of steps depend on what the model discovers along the way, as in debugging, research or navigating an unfamiliar codebase.

Context is the scarce resource

A model only knows what is in its context window: the instructions, tool definitions, conversation so far and any documents it has pulled in. That window is large, but it fills up, and models tend to become less reliable as it gets crowded.

ContextMemoryLimits

Context

20%of the window used
LIMITCONTEXT WINDOW
  • System prompt
  • Tool definitions
  • Conversation and tool results
  • Retrieved documents

A fresh session holds only the instructions and the tool definitions.

The new
agentic world

The context window is the agent's working memory, and it is finite. Most agent engineering is deciding what goes in it. Tap a stage to stop on it.

This has given rise to what is now often called context engineering: deciding, at every step, what the model should see. Common techniques include:

  • Just-in-time retrieval. Keep references, like file paths or search queries, and load content only when it is needed.
  • Compaction. When the window gets full, summarise older history into a short note and continue from there.
  • Structured memory. Let the agent write notes to a file it can read back later, so progress survives beyond a single window.
  • Trimming tool output. Return the ten relevant lines of a log, not ten thousand.

Good context engineering is the difference between an agent that stays sharp for hours and one that loses the thread after twenty minutes.

Teams of agents

One way to manage context is to split the work. A lead agent breaks a task into parts and hands each part to a subagent with its own fresh context window. The subagents explore in parallel and return only short summaries.

AgentsTeamsContext

Subagents

The lead agent breaks the question into independent parts and starts a subagent for each.

The new
agentic world

A lead agent can hand work to subagents. Each gets a clean context, and only its summary comes back. Tap a phase to stop on it.

This works well for tasks with independent parts that can run side by side, like researching a question from several angles or reviewing a large change file by file. Each subagent can go deep without filling the lead's context, and the lead keeps a clean view of the whole problem.

It has costs. Several agents use many more tokens than one, and coordination adds its own failure modes: duplicated work, gaps between assignments, and summaries that leave out the detail that mattered. For tightly coupled work, where every step depends on the last, a single agent with good context management is often the better design.

Trust is designed, not assumed

An agent that can act can also act wrongly. The goal is not to prevent every mistake, which is impossible, but to make sure mistakes are cheap, visible and recoverable.

AgentsPermissionsPeople

Trust

AGENTDONEApprovedDeniedread_fileAction 1: read_filerun_testsAction 2: run_testsgit pushAction 3: git pushdrop tableAction 4: drop table

Allowed: read-only

Reading files changes nothing, so it runs without asking.

The new
agentic world

Most actions should run without friction. The few that are irreversible or visible to others should wait for a person. Tap an action to stop on it.

In practice, that comes down to a few principles:

  • Least privilege. Give the agent only the tools and access the task needs.
  • Sandboxing. Run code and commands in an isolated environment, so a bad command cannot reach anything important.
  • Human approval for high-stakes actions. Anything irreversible, like deleting data, or outward-facing, like sending a message or pushing code, should wait for a person.
  • Treat inputs as untrusted. Web pages, emails and documents can contain text written to steer the agent. This is known as prompt injection, and the safest assumption is that anything the agent reads is data, not instructions.

Reliability also needs measurement. Teams building agents rely on evaluations: sets of realistic tasks with a clear definition of success, run every time the prompt, tools or model change. Reading full traces of what the agent did, step by step, is just as important. Most agent bugs show up there long before they show up in a metric.

What changes for engineers

Agents do not remove the need for engineering judgement. They move it.

Less of the work is typing out each step, and more of it is designing the environment the agent works in: which tools it has, what context it sees, how it checks its work and where a person needs to step in. Writing a clear task description, building a good test suite and reviewing output carefully have become core skills, not extras.

In many ways it is system design again. Small parts with clear jobs, well-defined interfaces between them, and a plan for what happens when one of them fails. The parts are now models and tools instead of services and queues, but the thinking is familiar.

Where this is heading

The agentic world is not arriving all at once. Agents are already good at bounded tasks with clear feedback, like fixing a failing test, researching a question or migrating a codebase, and still uneven on long, ambiguous work. Each improvement in models, tools and context management moves that line a little further.

For people who build software, the useful response is neither hype nor dismissal. Learn how the loop works, build good tools, keep humans in the places that matter, and measure everything. The teams that do this well will be the ones that get real value from agents, rather than just demos.

Enjoyed this article?

Leave a like to let me know this was valuable to you.

Get new posts by email

One email when a new article goes up. Unsubscribe anytime.

Discussion

(6)
  1. Anonymous Reader

    Brilliant summary of where software development is heading. Required reading for tech teams.

  2. Anonymous Hacker

    Loved the distinction between passive assistants and goal-driven agent swarms. Great forward-looking piece.

  3. Anonymous AI Dev

    Multi-agent choreography with specialized tools vs monolithic reasoning models is going to be the dominant architectural debate of 2026.

  4. Anonymous Infra Engineer

    State management and deterministic rollback mechanisms for agent execution will become standard backend primitives over the next 2 years.

  5. Anonymous Software Architect

    The point about human engineers shifting from writing line-by-line code to designing test environments, constraints, and reward signals is 100% accurate.

5 of 6
Command Palette

Search for a command to run...