Real-World Agents

Agents in Action

See how agents decompose complex tasks into steps, use tools, and produce results. Pick an agent type and watch it work through a real scenario.

Reads your codebase, plans changes across multiple files, writes code, runs tests, and commits β€” like a senior developer who never sleeps.

Your Request

"Add a dark mode toggle to my website"

πŸ“‚
Reading your codebase
Scanning project structure, existing styles, and component hierarchy to understand the codebase
🧠
Planning the implementation
Identifying files to modify, choosing CSS variable strategy, and designing the toggle component
⌨️
Writing code
Creating the dark theme stylesheet, building the toggle component, wiring up state management
βœ…
Running tests
Executing the test suite to verify the toggle works and no regressions were introduced
πŸ“¦
Committing changes
Staging files and creating a commit with a descriptive message for your review
Result

Dark mode is live across all pages. Toggle persists user preference. All 47 tests pass.

terminal
$ agent run --task "dark mode"
reading src/styles/main.css
reading src/components/Header.tsx
planning 3 files to modify
writing src/styles/dark-theme.css
const darkColors = {
bg: '#0f172a',
text: '#f8fafc',
primary: '#818cf8'
}
writing src/components/ThemeToggle.tsx
testing all pages render correctly
βœ“ 3 files created, 0 errors
The Brain

The Model

The LLM is the reasoning engine. It interprets your instructions, plans multi-step solutions, and decides what to do next.

It understands language, generates code, and makes decisions β€” but cannot interact with the world on its own. No file access. No API calls. No memory of past conversations.
model.py
from openai import OpenAI

client = OpenAI()

# The model reasons β€” but can't act
response = client.chat.completions.create(
    model="gpt-5",
    messages=[{
        "role": "user",
        "content": "What's the weather in Tokyo?"
    }]
)
# β†’ "I don't have access to real-time data."

A standalone LLM can reason about anything you ask β€” but it can only respond with text. To take action, it needs a harness.

β€” Andrej Karpathy, "The Building Blocks of Agentic Systems" (2025)

Large Language Model

Input
"Book a table for 4 at 7PM"
Output
"I found availability. Shall I confirm the reservation?"
Reasoning Generation Understanding
The Body

The Harness

The harness is the execution layer. It gives the model hands β€” tool APIs, databases, web search, file systems, and memory.

Without a harness, a model can only generate text. With one, it can query your database, send emails, write files, and take real-world actions.
agent.py
# The harness wraps the model with tools
agent = Agent(
    model=OpenAI("gpt-5"),
    tools=[WebSearch(), DatabaseQuery(), FileWriter()],
    memory=ConversationMemory(),
)

result = agent.run("Find CRM pricing for HubSpot")
# β†’ Searches web β†’ Reads pricing page β†’ Returns structured data

The harness pattern separates thinking from doing. This makes agents testable β€” you can mock tools, swap models, and debug each layer independently.

β€” LangChain Documentation, "Agent Architectures" (2025)

Agent Harness

πŸ”§
Tools
APIs, DB, Web
🧠
Memory
Context & History
🧩
Skills
Plug-in Modules
πŸ›‘οΈ
Guardrails
Safety & Rules
The Complete Picture

Model + Harness = Agent

A model alone produces text. A harness alone has no intelligence. An <strong class="text-white">agent</strong> emerges when you combine them β€” the LLM reasons through problems while the harness executes actions, manages state, and enforces constraints.

Model
+
Harness
=
Agent
Model β€” reasons, plans, decides
"I need to find CRM pricing for HubSpot" β€” parses intent, plans approach
"I'll search the web first" β€” decides which tool to use
"Now I'll read the pricing page" β€” reasons over search results
"Let me cross-check with the database" β€” decides more data is needed
Synthesizes all sources into a final structured answer
tool_call
Harness β€” executes, manages, enforces
Calls WebSearch with query web_search
Calls HTTPGet on the URL http_get
Calls DBQuery for internal CRM records db_query
Loops until task is complete

Swap any LLM and the harness keeps working. Add new tools without retraining the model. This is what makes agents composable and maintainable.

β€” Andrew Ng, "Agentic Design Patterns" (2025)

Why This Matters

Why Model + Harness Architecture?

πŸ”„
01

Model Flexibility

Swap between GPT-5, Claude, Gemini, or open-source models without rewriting agent logic. The harness abstracts the model layer, so you can always use the best model for the job β€” or the most cost-effective one.

🧩
02

Extensibility

Add new tools, API integrations, and skills on the fly. Your agent gains new capabilities as your business grows β€” no model retraining required. Just register a new tool and the agent learns to use it.

πŸ”
03

Full Observability

Every decision is traceable. See exactly what the model reasoned, which tools it invoked, what data it accessed, and why it chose a specific action. Essential for debugging, compliance, and building trust.

πŸ›‘οΈ
04

Safety & Control

Set guardrails, rate limits, business rules, and content filters at the harness level. The model operates within defined boundaries automatically β€” no prompt engineering gymnastics required.

Common Questions

Frequently Asked Questions

What is the difference between an AI agent and a chatbot?

A chatbot responds to messages with pre-written or generated replies. An AI agent goes further β€” it can use tools, access databases, browse the web, write and execute code, and take multi-step actions to accomplish a goal. Chatbots are reactive; agents are proactive and goal-oriented.

What is the Model + Harness architecture?

Model + Harness is a design pattern where the AI model (the reasoning engine) is separated from the harness (the execution framework). The model handles thinking β€” understanding language, planning, and decision-making. The harness handles doing β€” calling APIs, managing memory, enforcing rules, and providing tools. This separation makes agents flexible, testable, and easy to upgrade.

How does an AI agent use tools?

When an agent needs to perform an action β€” like searching the web, querying a database, or sending an email β€” the model generates a structured tool call. The harness receives this call, executes the appropriate API or function, and returns the result to the model. The model then uses that result to continue its reasoning or produce a final answer.

Can I use different AI models with the same agent?

Yes. Because the model and harness are separate, you can swap the underlying LLM without changing your agent logic. Switch from GPT-5 to Claude to an open-source model β€” the harness, tools, memory, and guardrails all stay the same.

What is agent memory and why does it matter?

Agent memory lets the system retain information across interactions β€” conversation history, user preferences, past actions, and learned context. Without memory, every interaction starts from scratch. With memory, agents can personalize responses, maintain continuity, and improve over time.

Are AI agents safe to use?

Safety depends on the guardrails configured in the harness. A well-designed agent has safety constraints β€” output filters, action limits, approval workflows, and content policies β€” enforced at the harness level. The model operates within these boundaries, and every action is logged for review.

Ready to Build Your Own Agent?

Create an AI agent tailored to your business in minutes. No coding required. Connect your tools, set your rules, and let the agent handle the rest.