ActiveContext for long-running agents

Your coding agent,
without the drift.

ActiveContext sits between your agent and the model and actively manages session history and context. Your agents stay focused and avoid compaction. 20–70% savings and increased performance.

Start freeSee the benchmarks →
$0 to try · no card required
~/repo · session · 412k tokens · 38 turns
Stock agent harnessDrifting
ctx412k / 400k
t-32read_file × 14 · stale38.2k
t-28abandoned plan branch12.6k
t-21tool error retry loop9.4k
t-18read_file · re-read22.1k
t-12actual task spec2.1k
t-6scratch reasoning14.8k
⚠ Compaction event · -218k tokens · prior turns lost
+ ActiveContextFocused
ctx148k / 400k
t-32read_file × 14 · pruned
t-28abandoned plan · pruned
t-21tool result · summarized1.2k
t-18file diff · current state3.4k
t-12task spec · preserved2.1k
t-6active reasoning · live5.8k
✓ No compactioncache hit · 94%
The problem

Agents don't fail because the model is dumb.

They fail because the context fills up with noise — old tool calls, stale file reads, abandoned reasoning — and the model stops paying attention to what matters now. Then compaction hits and your agent totally goes off the rails.

ActiveContext prunes dead context between tasks, preserves what's still driving decisions, and hands the model a clean working set every time. Same model. Better outcomes. One environment variable to install.

Between-task pruningGoal-aware preservationWorks with all agents
activecontext · between-turn pass
Incoming history
noise read_file · stale
noise abandoned plan
keep task spec
noise retry loop
keep file diff
Clean working set
task task spec
task file diff (current)
task tool result · summarized
keep active reasoning
prune → preserve → hand off−64%
How it works

Prompt compression has been tried. This is different.

Agent loops are stuck with an append-only design. What was added 35 turns ago becomes completely irrelevant to the current goal. With task aware history restructuring, we ensure the LLM is given the most relevant context.

Encoder compression and cheap-model summarization strip out what the agent needed and leave in what it didn't. Past attempts have been one-shot and task-blind. The agent loses the thread.

ActiveContext is dual-core. A second intelligence layer reads the session as it unfolds, identifies what your primary agent is actually trying to accomplish, and curates context around that goal. When a task completes and the next one begins, we restore exactly the context the new task needs.

It's not compression. It's understanding.

Goal-tracking curatorCross-task restoreTask-aware
Primary agent
claude-opus-4.7
your coding agent · streaming
Curator core
Active Context
async · between turns· short prompts
turn 14 → primary agent emits 6 tool calls
↳ curator read_file × 4 redundant · prune to 1 · summary added
turn 15 ← clean working set, goal preserved
Cache-aware

A very high cache hit ratio. By design.

ActiveContext works best with providers that offer explicit prompt caching — Anthropic and Alibaba Cloud today. Because we control where the cache breakpoints land, we maintain a very high cache hit ratio despite history restructuring. If your session pauses for 5 minutes? Cache falls off anyway and we take advantage of the free opportunity to curate. That's a meaningful chunk of the savings.

Our curator core adds inference of its own. Those calls run async between turns, use short prompts on optimized models, and never block your agent. Net: no noticeable latency, and the savings on your primary model dwarf the cost of the curator driving them.

AnthropicAlibaba CloudZero blocking
Prompt cache · live session94% hit ratio
cache hitmissidle
t-3211.8k
t-2814.2k
t-249.1k
t-2015.6k
t-1612.8k
t-1213.4k
t-0810.2k
t-0416.1k
curator overhead+ $0.18 · saves $4.62
Per-agent control

Tune it to your agent.

Every agent uses context differently. A coding agent, a research agent, an open-ended exploratory agent — each one needs context managed differently to perform its best.

ActiveContext puts you in control. Tune the aggressiveness per agent, per model, per workflow. See exactly where your tokens are going through built-in analytics — which sessions, which agents, which patterns are driving spend.

The defaults are good. When you know your workload, you decide how it runs.

Agents4 active
coding-agent
claude-sonnet-4.5
78
aggressiveness
$1,284
research-agent
claude-opus-4
52
aggressiveness
$642
exploration-agent
qwen3-max
35
aggressiveness
$218
docs-agent
claude-haiku-4.5
84
aggressiveness
$98
this month$2,242 saved · 23.4M tokens curated
● See it on your numbers

Token consumption calculator.

See how much ActiveContext can save over long sessions

baseline vs active context management
CLAUDE OPUS 4.7 · IDENTICAL WORKLOAD · SYNCED PLAYBACK
SCRUBBER · TURN0 / 400
ReadWriteEditBashSearchThinkSubAgentCompactRestructureDualCore
baseline
1M CONTEXT · COMPACTION AT 92%
TOTAL COST
$0.0000
Cache hits
$0.0000
0
Cache writes
$0.0000
0
Output
$0.0000
0
Compaction cost
$0.0000
Compaction · 0 events
CTX vs 1.00M8.0k · 0.8%
TIMELINE
RECENT (last 5)
press Play to begin
active context management
DUALCORE · MANAGED ≤115K · CACHE BREAKPOINT
TOTAL COST
$0.0000
Cache hits
$0.0000
0
Cache writes
$0.0000
0
Output
$0.0000
0
DualCore cost
$0.0000
DualCore · 0 calls
CTX vs 1M REF8.0k · 0.8%
vs MANAGED CEILING (115.0k)7.0%
TIMELINE
RECENT (last 5)
press Play to begin
base input $5/MTok·cache write 5m $6.25·cache write 1h $10·cache hit $0.50·output $25

Let's be real: model providers are in the business of selling you tokens.

Every long session, every redundant file read, every blown-out context window — that's revenue on their side and a bill on yours. They aren't incentivized to make your agent more token-efficient. They're incentivized to charge you for the compaction event that erased the work you already paid them to do.

ActiveContext is built by people who don't supply tokens. We sit on your side of the meter.

— the AJNT team
Benchmarks

Proven on benchmarks, not vibes.

Every claim here is reproducible. Full methodology and code published.

Read the full report →

Where it doesn't help

Short single-turn requests. Tightly scoped RAG. Workflows that don't accumulate tool history. We publish those too.

SWE-Bench Verified · 200K+ context
−47%
fewer tokens vs. stock agent harness
1.3×
completion rate, same model
Multi-task agentic runs · 5 cases / session
+1
case solved that the underlying model couldn't solve alone
0
compaction events across 5-task chain
Net cost (curator overhead included)
40–70%
savings depending on session length and model
3.8%
curator-inference cost as share of primary spend
For teams

Learn from your whole team. Apply rules consistently.

Your best engineer figures out a prompt pattern. Someone else cracks a tricky tool sequence. A third teammate finds the rule that keeps the agent from going off the rails. Today, none of that propagates.

ActiveContext surfaces what's working across your team's sessions so managers can see how their developers are actually using agents, learn what's driving results, and roll out shared rules every teammate runs against — consistently, every session.

  • Team-wide rule sets
  • Manager visibility
  • Cost per developer
  • BYO provider keys
  • Audit logs, RBAC
  • SSO
Team · agent rules
AllCodingResearch
Maya · staff eng
rule: pin task spec turn-0
$418
Devon · platform
rule: collapse read_file ≥3x
$326
Priya · ml infra
rule: preserve diffs in scope
$284
Jules · web
rule: drop tool errors > 5 turns
$192
Alex · iOS
rule: keep last-seen schema
$148
shared rules deployed across team12 active · 3 pending review
Provider-agnostic

Works with the providers and models you already use.

Swap models without changing code. Mix providers in the same workflow.

Full provider list →
AnthropicClaude · Sonnet, Opus, HaikuCache-native
Alibaba CloudQwen3 familyCache-native
OpenAIGPT-5, GPT-5 mini
GoogleGemini 2.5 Pro & Flash
MistralLarge, Codestral
DeepSeekV4, R1
xAIGrok 4
TogetherHosted open models
FireworksHosted open models
BedrockAWS-routed
Vertex AIGCP-routed
Self-hostedOpenAI-compatible endpoints
Pricing

You only pay when we save you money.

Every session is logged. Every dollar of savings is calculated against what your provider would have charged for the same work. You see the math.

Pay-as-you-go
33%of savings
Auto-recharge balance · no monthly fee
Pay only when we save you money. Perfect to start with no commitment.
Start free
Starter
$20/ mo
Up to $100 saved / mo
For individual developers running long agent sessions. 5× ROI at the cap.
Choose Starter
Most popular
Pro
$50/ mo
Up to $400 saved / mo
For heavy users and small projects burning real token spend.
Choose Pro
Team
$100/ seat / mo
Up to $1,000 saved / seat
Everything in Pro plus shared rules, team insights, analytics, admin, SSO.
Choose Team
Enterprise · custom
Higher caps · SOC 2 · dedicated capacity · on-premise deployments
Contact us
Hit your tier's ceiling? Upgrade — or keep going without savings, bypassing the platform. We won't stop your agents.

Set up in one env var. Save by the next turn.

One line in your environment. The rest of your stack stays the same.