DevRev
Evolution of
Agent Harness
How DevRev rebuilt its agent harness three times as models learned to hold more context, reason longer, and use computers.
Anshu Avinash
How models have evolved
CONTEXT WINDOW, REASONING, AND OPERATING TIME
MAR 2023
4K
GPT-3.5 Turbo
NOV 2023
128K
GPT-4 Turbo
FEB 2024
1M
Gemini 1.5 Pro
SEP 2024–2026
REASONING MODELS
MULTI-DAY WORK
02
Era 1 · 2023
Retrieval and narrow chains
Question
Retrieve
Answer
Message
Classify intent
Conversation
Summarize
Query
Search
The application authored every step. State lived in a scratchpad string.
4K
the whole working set
DevRev: answer engine, search chain, intent and spam classifiers, summarizers, release notes. OpenAI’s first function-calling examples were just as narrow.
03
Era 2 · 2024–25
Give state a home
Pause. Inspect. Resume.
the model loops until the work is done
Decide
Call a tool
Wait or request approval
Resume
Temporal
durable execution — survive a worker crash, wait for a human, resume hours later
LangGraph made state explicit; Temporal made execution durable. METR put Claude 3.7 Sonnet’s 50%-success horizon near 50 minutes of human-equivalent work.
04
The graph fixed state, not context
one context window
Customer history
Search results
Tool schemas
Logs and traces
Intermediate reasoning
Large tool response · logs · full thread
[truncated: 18,421 tokens dropped]
We started discarding evidence before the investigation was complete.
What we tried
  • Moving summaries
  • Per-output token budgets
  • Truncation
Anthropic later reported that compaction alone did not sustain long-running work: agents lost unfinished work, misread earlier decisions, or declared completion too early.
Windows grew, but task ambition grew with them — a larger window postpones this failure, it does not remove it.
05
Deep research broke the in-context model
The context window is the desk, not the filing cabinet
The desk — context window
Current hypothesis
Relevant evidence
Next action
The filing cabinet — filesystem
Complete logs
Search results
Customer history
Generated analyses
Intermediate artifacts
one file, only when needed
Anthropic’s long-running agent harness keeps git history, progress files, init scripts and structured feature records outside the prompt.
06
Era 3 · 2025–26
Give the agent a computer
sandbox
Shell
run commands
Filesystem
working memory
MCP tools
org integrations
Model loop
decide, act, observe
Skills
loaded on demand
Sub-agents
isolated context
LLM gateway
model portability
Temporal
long-running lifecycle
Permissions & credentials
what the agent may touch
6+
hours
individual Codex runs reported by OpenAI
30+
hours
focus reported for Claude Sonnet 4.5
Claude Agent SDK · one TypeScript loop in cloud and desktop. OpenAI also described roughly 1,500 agent-generated PRs merged over five months on one internal project.
07
The new wall · the world changes
The reasoning can be correct while the action has become wrong
better reasoning
longer tasks
more change during execution
more stale actions
A human fixes the issue and closes the case
1 Read case
2 Inspect logs
3 Form diagnosis
4 Draft response
5 Send
every step here was right
acts on a case that no longer exists
Devin reacts to review comments, CI failures, linter findings and security-scanner events raised after the coding task began.
08
Our bet
The event-aware harness
More autonomy inside the task requires stronger control at the action boundary.
Business events
Reasoning agent
Proposed action
Authority & freshness check
External system
new events wake the work
Durable work record — the unit that survives
Objective · Owner · Dependencies · Proposed next action · Completion condition
Events: customer replied · ticket closed · approval revoked · deployment recovered · someone else took ownership
09
The changing boundary
Era
Model owns
Harness owns
Chains
Answer the question
Author every step
Graphs
Choose a route
Author states and transitions
Computer
Construct the route
Provide workspace and boundaries
Event-aware
Repair the objective
Reconcile change, validate effects
The next harness must know when the world has changed enough to stop, repair the plan, or begin again.
DevRev
2023 chains · 2024–25 graphs · 2025–26 computer · next: event-aware
10