Cheaper models, a stateless MCP spec, MCP CVEs, approvals everywhere and EU transparency rules: what changed in AI in 2026 and the 10xGraph code to handle each one.

Between July and mid-October 2026, AI labs shipped new models every few weeks and cut prices again. MCP removed sessions in its largest revision so far. MCP servers started showing up in vulnerability catalogs. Every major agent framework added human approvals, sandboxes or durable runs. This post explains each change, why it matters in production, and the 10xGraph code that handles it.

10xGraph is open-source, self-hosted infrastructure for AI applications. You write the agents, tools and tasks; 10xGraph runs them behind an API server with authentication, role-based access, tenant isolation, durable state in Postgres and Redis, background jobs, metrics and tracing, and generates Docker and Kubernetes deploy files. MIT licensed, by 10xScale. Formerly Agentflow.

The post follows one example the whole way through: a customer support agent for an online store. It looks up orders, answers questions and issues refunds. Each section adds a piece to it, and the last section puts the whole graph together.

How this post was checked

Industry facts were checked on 18 October 2026 against vendor pages, release notes and law-firm summaries, and each one links to its source. Where only press reports exist, the text says so. The code first targeted 10xgraph 0.10; the auth and config examples were updated on 10 November 2026 for 1.0 (roles with reach, cache_store), and imports and parameter names were checked against the source. Model names are the ones each provider listed in October 2026.

The short version

What changed Why it matters What to do in 10xGraph
New models monthly, small models at $0.10 per million input tokens Routing work by difficulty can cut model cost by an order of magnitude or more Several Agent nodes with different models, plus RetryConfig and fallback_models
Vendors changed their headline benchmarks Public scores no longer predict how a model handles your tools Your own eval set, run with AgentEvaluator and 10xgraph eval in CI
1M-token context is standard Long threads get slow and expensive long before they hit the limit SummaryContextManager or MessageContextManager with trim_context=True
MCP 2026-07-28 dropped sessions MCP servers scale like ordinary stateless HTTP services Streamable HTTP servers on ToolNode, stateless API workers on PgCheckpointer
MCP servers appeared in CVE and exploited-vulnerability lists An MCP server is attack surface like any other API PromptInjectionValidator, role-checked tools, permissions per route, narrow tokens per server
Approvals, sandboxes and durable runs in every framework Pausing is easy; resuming without repeating side effects is not interrupt(), the tool ledger, node_timeout and tool_timeout
OpenTelemetry GenAI conventions still unstable Dashboards built on gen_ai.* attributes can break on upgrade OtelPublisher, pinned convention versions
EU transparency duties apply since 2 August 2026 Users must be told they are talking to an AI Disclosure in your client, auth roles and ownership in 10xgraph.json, run history in Postgres
Consolidation of hubs and gateways Dependencies you do not control can change owner and price Self-hosted server from 10xgraph init and 10xgraph build

The rest of the post covers each row in detail.

1. Models ship monthly and cost less

The release cadence is now a point version every few weeks per lab, and prices are falling at both ends of the range.

Model Released Price per 1M tokens (input / output) Source
Claude Opus 5.5 22 Sep 2026 $4 / $20 (Opus 5 was $5 / $25) Anthropic
Claude Sonnet 5.5 Late Sep 2026 $2 / $10 Anthropic (price table)
Claude Haiku 5.5 7 Oct 2026 $0.10 / $0.50 for prompts up to 100K tokens, $0.50 / $2.50 above Anthropic
GPT-6 Astra Rolling out from early Sep 2026 $10 / $50 OpenAI models, Bloomberg Government
GPT-6.1 Sol Sep 2026 $2 / $10 OpenAI models
GPT-6 Luna Sep 2026 $0.10 / $0.50 OpenAI models
Gemini 4 Argon GA 13 Oct 2026 Not listed on the model page Gemini API changelog

Open-weight models kept pace:

  • Kimi K3. Moonshot launched this 2.8-trillion-parameter model on 16 July (Axios). The weights followed on 27 July under a custom Kimi K3 licence, so read the licence before you call it open source.
  • Mistral Large 4. It opened as a hosted preview on 6 October. Mistral promised the weights by the end of October.
  • DeepSeek-V4.1-Flash-1017. It was released and open-sourced on 17 October.

Why it matters

At these prices, sending every step to your largest model is the expensive default. Take a triage step that reads 2,000 tokens and writes 10:

  • On Claude Opus 5.5 it costs about $0.0082.
  • On Claude Haiku 5.5 it costs about $0.0002.

That is roughly a 40x difference for a step a small model handles well. Across millions of conversations, routing by difficulty is the largest cost lever most agent teams have.

The second effect is churn. A model you pick today will have a successor within a quarter. Model choice has to be a configuration detail, and switching must not require touching graph or tool code.

The baseline agent

Here is the support agent before any changes. In 10xGraph, an Agent node takes a model string and a provider, and a ToolNode runs the tools the model asks for:

graph/agent.py

from tenxgraph.core.graph import Agent, StateGraph, ToolNode from tenxgraph.core.state import AgentState, Message from tenxgraph.storage.checkpointer import InMemoryCheckpointer from tenxgraph.utils import END def lookup_order(order_id: str) -> dict: """Look up an order by its id.""" # Replace with your database or order service. return {"order_id": order_id, "status": "shipped", "total": 59.0} main = Agent( model="claude-sonnet-5-5", provider="anthropic", system_prompt=[{"role": "system", "content": "You are a support agent for an online store."}], tool_node="TOOL", ) def route(state: AgentState) -> str: last = state.context[-1] if last.role == "assistant" and last.tools_calls: return "TOOL" return END graph = StateGraph() graph.add_node("MAIN", main) graph.add_node("TOOL", ToolNode([lookup_order])) graph.add_conditional_edges("MAIN", route, {"TOOL": "TOOL", END: END}) graph.add_edge("TOOL", "MAIN") graph.set_entry_point("MAIN") app = graph.compile(checkpointer=InMemoryCheckpointer()) result = app.invoke( {"messages": [Message.text_message("Where is order 1042?")]}, config={"thread_id": "cust-77", "user_id": "u-77"}, ) print(result["messages"][-1].text()) 

Always pass a thread_id. Without one, 10xGraph generates an id and logs a warning, and you cannot resume or continue that conversation later. invoke runs its own event loop, so inside async code (a FastAPI handler, for example) call await app.ainvoke(...) with the same arguments.

Route by difficulty with two models

Add a cheap triage node in front. It labels each message, and a conditional edge sends simple questions to a small model and everything else to the main agent with tools:

graph/agent.py

triage = Agent( model="claude-haiku-5-5", provider="anthropic", system_prompt=[{"role": "system", "content": ( "Classify the customer's message. Reply with one word: faq or complex." )}], ) faq = Agent( model="gpt-6-luna", provider="openai", system_prompt=[{"role": "system", "content": "Answer store policy questions briefly."}], ) def after_triage(state: AgentState) -> str: label = state.context[-1].text().strip().lower() return "FAQ" if label == "faq" else "MAIN" graph = StateGraph() graph.add_node("TRIAGE", triage) graph.add_node("FAQ", faq) graph.add_node("MAIN", main) graph.add_node("TOOL", ToolNode([lookup_order])) graph.set_entry_point("TRIAGE") graph.add_conditional_edges("TRIAGE", after_triage, {"FAQ": "FAQ", "MAIN": "MAIN"}) graph.add_edge("FAQ", END) graph.add_conditional_edges("MAIN", route, {"TOOL": "TOOL", END: END}) graph.add_edge("TOOL", "MAIN") 

Each Agent node has its own provider, so one graph can mix Anthropic, OpenAI and Google models. Swapping claude-haiku-5-5 for next quarter's small model is a one-line change, and the graph, tools and stored threads stay the same.

The triage label stays in the thread as a short assistant message, so the main agent sees it. Keep the triage prompt strict so the label is a single word. Any reply other than faq falls through to the main agent, which is the safe direction to fail.

Retries and fallbacks across providers

Monthly releases also mean more deprecations, rate limits and launch-week outages. Agent retries by default. To make that explicit and add fallbacks:

graph/agent.py

from tenxgraph.core.graph import Agent, RetryConfig main = Agent( model="claude-sonnet-5-5", provider="anthropic", tool_node="TOOL", retry_config=RetryConfig(max_retries=3, initial_delay=1.0, max_delay=30.0), fallback_models=[("gpt-6.1-sol", "openai"), ("gemini-4-argon", "google")], ) 

RetryConfig retries status codes 429, 500, 502, 503 and 529 with exponential backoff (factor 2 by default). An optional circuit breaker turns on with circuit_breaker_enabled=True.

When the primary model runs out of retries, the agent tries each fallback in order, each with its own retry budget, and raises the last error only if all of them fail. A fallback written as a plain string, such as "claude-opus-5-5", uses the primary's provider. A (model, provider) tuple switches provider.

Fallbacks and custom endpoints

Fallback attempts reuse the primary agent's base_url. If the primary points at a custom endpoint, keep its fallbacks on the same endpoint and provider. Use cross-provider fallbacks only with the default endpoints.

Open-weight models behind your own endpoint

Open-weight releases such as DeepSeek V4.1 Flash usually run behind an OpenAI-compatible server like vLLM. Point an Agent at it with base_url:

graph/agent.py

faq = Agent( model="support-faq", # the model name your server exposes provider="openai", base_url="http://vllm:8000/v1", api_key="EMPTY", # most self-hosted servers ignore the key api_style="chat", ) 

Unknown model names fall back to the OpenAI client and are sent unchanged, so names like org/model-name work. Use the same pattern for a model gateway you run yourself. See Providers and the OpenAI integration for every option.

2. Benchmarks changed, so run your own evals

Anthropic's launch pages for the 5.5 models report Terminal-Bench 4.0, OSWorld 2.1 and Humanity's Last Exam, not SWE-bench. Benchmarks now change from one model generation to the next. Even before that, a high public score said little about whether a model calls your refund_order tool with the right arguments, or refuses when it should.

The answer is an eval set built from your own traffic, run against every model you route to, on every change.

Compare models on your own eval set

10xGraph ships an evaluation package. Build a small EvalSet, then run it against several models:

evals/compare_models.py

import asyncio from injectq import InjectQ from tenxgraph.core.graph import Agent, StateGraph, ToolNode from tenxgraph.qa.evaluation import AgentEvaluator, CriterionConfig, EvalCase, EvalConfig, EvalSet from tenxgraph.qa.evaluation.testing import create_eval_app from tenxgraph.utils import END from graph.agent import lookup_order, route eval_set = EvalSet( eval_set_id="support-v1", name="Support agent regression set", eval_cases=[ EvalCase.single_turn( eval_id="order-status", user_query="Where is order 1042?", expected_response="shipped", ), ], ) config = EvalConfig( criteria={"status": CriterionConfig.contains_keywords(keywords=["shipped"], threshold=1.0)}, reporter={"enabled": False}, ) def build_graph(model: str, provider: str) -> StateGraph: # One InjectQ container per graph, so runs in one process do not share state. graph = StateGraph(container=InjectQ()) graph.add_node("MAIN", Agent(model=model, provider=provider, tool_node="TOOL")) graph.add_node("TOOL", ToolNode([lookup_order])) graph.add_conditional_edges("MAIN", route, {"TOOL": "TOOL", END: END}) graph.add_edge("TOOL", "MAIN") graph.set_entry_point("MAIN") return graph # uncompiled: create_eval_app compiles it async def main() -> None: for model, provider in [("claude-haiku-5-5", "anthropic"), ("gpt-6-luna", "openai"), ("claude-sonnet-5-5", "anthropic")]: app, collector = create_eval_app(build_graph(model, provider)) report = await AgentEvaluator(app, collector, config=config).evaluate(eval_set) summary = report.summary print(model, summary.pass_rate, summary.avg_duration_seconds, summary.total_token_usage) asyncio.run(main()) 

The container=InjectQ() argument matters when you build several graphs in one process. Without it, graphs share one dependency container, and the second graph's trajectory collector records nothing.

The CriterionConfig factories cover the common checks:

  • contains_keywords and response_match check the text of the answer.
  • tool_name_match and trajectory check which tools ran and in what order.
  • llm_judge grades the answer with a model.

The summary reports pass rate, average duration and token usage, which together give you quality, latency and a cost estimate per model.

Gate releases in CI

For the agent your server actually runs, put eval files in evals/ and run the CLI:

Terminal

10xgraph eval --threshold 0.9 

The CLI finds every *_eval.py and eval_*.py file, runs the agent from 10xgraph.json, and writes HTML and JSON reports to eval_reports/. The command fails when the pass rate drops below the threshold, so it works as a CI gate. Add --parallel to run cases concurrently.

For unit tests that should not call a model at all, swap in TestAgent from tenxgraph.qa.testing, which returns scripted responses. Testing and evaluation covers both.

3. Long context is standard, but it is not free

OpenAI lists a 1.05M-token context for all three GPT-6 models. Google gives Gemini 4 Argon a 1M-token budget shared by input and output. Large windows are now the default.

Why it matters

The window is a ceiling, not a target. Cost and latency scale with every token you send, on every turn. A support thread that resends 900,000 tokens of history to Claude Opus 5.5 costs about $3.60 in input alone, per model call. Haiku 5.5 charges its higher rate above 100K-token prompts, so long prompts also lose the cheap tier.

Very long prompts also tend to dilute attention on the parts that matter: the current question and the last tool result.

Trim or summarize long threads

10xGraph has two context managers. MessageContextManager keeps the last N user turns. SummaryContextManager compresses older turns into a running summary with a cheap model:

graph/agent.py

from tenxgraph.core.state import MessageContextManager, SummaryContextManager # Keep the last 20 user turns (system messages are always kept): context = MessageContextManager(max_messages=20) # Or summarize older turns with a small model and keep the 8 most recent: context = SummaryContextManager( "gpt-6-luna", max_messages=30, token_budget=8000, keep_recent=8, ) main = Agent(model="claude-sonnet-5-5", provider="anthropic", tool_node="TOOL", trim_context=True) graph = StateGraph(context_manager=context) 

Both settings are required: trim_context=True on the agent and context_manager= on the graph. With only one of them, 10xGraph logs a warning and does not trim.

The summary model is a separate choice from the main model. This is another place where a $0.10-per-million-token model does the work. See Context management.

4. MCP 2026-07-28: the protocol went stateless

The MCP specification released on 28 July 2026 is the largest change since the protocol launched:

  • No more sessions. The initialize handshake and the Mcp-Session-Id header are gone. Each request carries its own protocol version, client info and capabilities, and an optional server/discover call replaces the handshake.
  • Routable requests. Streamable HTTP requests must now include Mcp-Method and Mcp-Name headers, so a gateway can route and authorize a call without parsing the body.
  • Deprecations with a long runway. Roots, Sampling and Logging are deprecated and keep working for at least 12 months. The legacy HTTP+SSE transport is deprecated too.

The same post reports close to half a billion downloads a month across the Tier 1 SDKs. The roadmap published on 22 August sets the next priorities:

  • Agent identity and enterprise-ready security.
  • Server-initiated events: "webhooks and channels, so clients aren't left polling for results."

Why it matters

With sessions, an MCP server had to remember each client, so a load balancer needed sticky sessions and a restart dropped every connection. Without sessions, any replica can answer any request. An MCP server now scales and deploys like any stateless HTTP API.

The new headers also put policy where operations teams already work. A reverse proxy can allow lookup_order and block delete_customer by reading one header.

Connect MCP servers over Streamable HTTP

In 10xGraph, MCP tools sit next to local Python tools in one ToolNode. You connect through a fastmcp client:

graph/agent.py

import os from fastmcp import Client # pip install "10xgraph[mcp]" from tenxgraph.core.graph import ToolNode mcp_client = Client({ "mcpServers": { "orders": { "url": "https://mcp.internal.example.com/mcp", "transport": "streamable-http", "headers": {"Authorization": f"Bearer {os.environ['ORDERS_MCP_TOKEN']}"}, }, }, }) tool_node = ToolNode([lookup_order], client=mcp_client) 

The model sees local and MCP tools as one list and can call several in parallel in one turn. Set pass_user_info_to_mcp=True on the ToolNode to forward the caller's user info to the server as a user argument. Use it when the server needs to apply per-user rules.

10xGraph talks to MCP servers through the official mcp Python SDK and fastmcp. Support for the new spec therefore arrives as those libraries ship it. Check their versions before you move a server to the 2026-07-28 spec. Use Streamable HTTP for new servers, because HTTP+SSE is on its way out. The full guide is Use MCP tools.

Keep your own API workers stateless too

The same logic applies to the server that runs your agent. If thread state lives in worker memory, you need sticky sessions and you lose threads on every deploy. Keep it in a shared checkpointer instead, and any worker can continue any thread:

graph/agent.py

import os from tenxgraph.storage.checkpointer import PgCheckpointer # pip install "10xgraph[pg_checkpoint]" checkpointer = PgCheckpointer( postgres_dsn=os.environ["DATABASE_URL"], redis_url=os.environ["REDIS_URL"], ) # Create the schema once, from an async context: await checkpointer.asetup() app = graph.compile(checkpointer=checkpointer) 

PgCheckpointer caches active thread state in Redis for fast reads (24 hours by default) and keeps durable, versioned history in Postgres. If Redis goes down, runs continue on Postgres, more slowly. The design is covered in Hot and cold agent memory.

5. MCP security became ordinary vulnerability management

In 2025 most MCP security writing was about prompt injection and tool poisoning. In 2026 it is about CVEs:

  • LiteLLM CVE-2026-59822. This authentication bypass on LiteLLM's MCP Streamable HTTP endpoint is fixed in 1.84.0. Security press reported that CISA added it to the Known Exploited Vulnerabilities catalog on 2 September 2026. That listing means attackers were exploiting it in the wild.
  • Ordinary bug classes. Adversa's September roundup lists path traversal and cleartext-token bugs in MCP servers from well-known vendors.
  • A supply-chain campaign. The same roundup describes a malicious MCP server pushed through pull requests to unrelated repositories. Once installed, it turned tool metadata into instructions to collect SSH keys and cloud credentials.

Why it matters

These are web bug classes: auth bypass, path traversal, leaked tokens. The difference with agents is that an attacker who controls a tool's output also controls text the model reads next. Every MCP server you connect is both an API you call and a source of instructions your model may follow.

The defenses come in layers:

  1. Patch the infrastructure.
  2. Scope what each server can reach.
  3. Check what comes into the model.
  4. Check permissions inside the tools that matter.

Validate input before the model sees it

10xGraph runs input validators before any model call. Register PromptInjectionValidator on a CallbackManager and pass it to compile:

graph/agent.py

Source:https://dev.to/10xgraph/ai-agents-in-fall-2026-what-changed-and-how-to-build-for-it-with-10xgraph-2f1b

Related posts