The AI Gazette

Practical AI techniques, workflows, tools and research for hands-on engineers.

By Ravi AutarRSS feed

Top news

No. 8

Cost and routingContext and memory

A CLI used 1,421 tokens for a GitHub task that cost 59,417 through the default MCP server

OpenRouter measured the same GitHub question through a CLI, a skill and MCP on four models, and tool definitions and oversized results explain most of the gap.

Every tool definition is sent to the model on every request. On Claude Sonnet 5.5 the GitHub MCP server's 46 default tools add 19,436 input tokens per request, against 8,903 on GPT-6 Luna, so the count depends on the model. On one task, the gh CLI used 1,421 input tokens, a gh skill 3,315, and the default MCP server 59,417, about 17 times the CLI's cost per task.

Results matter as much as definitions. One get_latest_release call returned a 42,182-character object, about 20,400 tokens on Sonnet 5.5, more than all 46 definitions. Scoping the server to the two tools the task needed cut the first request from 19,487 to 1,406 tokens, and capping results at 4,000 characters brought the task to 5,357 tokens with correct answers.

Tool Search, which defers tool definitions until the model searches for them, brought the up-front cost of 46 tools under 600 tokens. Whole-task results varied by model: it halved the cost on Sonnet 5.5 and raised it on Haiku 5.5, which retried a malformed list_issues call several times.

Delegation is a theory-of-mind problem: the agent has to picture what the worker on the other side won't know.
Worth quotingnikvdp, Subagents considered harmful?

Multi-agentContext and memory

Subagents that start from a summary were slower and costlier; forks keep the context

A practitioner write-up argues that a written brief loses the decisions that make a task make sense, and shows how to pick between a fresh subagent and a fork.

The post cites a 137k-token Opus 5.5 session: doing the task in the main agent took 67 seconds and $0.38, while handing it to a summary-fed subagent took 123 seconds and $0.57. In the author's own example, the summary dropped the half of the request that mattered and the subagent never knew.

A forked subagent inherits the full conversation plus a note naming its part of the work. Forks have quirks: the first one read the request that created it as an instruction to itself and started a sub-fork, so the fork prompt now states that it is the fork and which piece is its job.

The agent's own instructions ended up as one paragraph: work needing the intent, decisions and corrections usually benefits from a fork; small mechanical work benefits from a fresh agent; give weight to what a brief could lose. A third option filters history with a fast yes/no decision model before the fork starts. A cited skill eval found selected chunks carried 99 of 105 needed facts against 102 for the full transcript at about a quarter of the tokens, while a written summary carried 82.

GoogleCost and routing

Gemini Decisions API scores up to 1,000 yes/no, choice and rubric questions in one pass

A new endpoint and model, gemini-decision-1, returns probabilities instead of generated text for routing, policy checks and context grading.

One multimodal input of up to 256K tokens (text, images, audio, video, PDF) can be checked against up to 1,000 independent questions. Question types are yes/no, choice from 2 to 255 options, and ordered rubric score, and every answer carries a confidence from 0 to 1.

Google reports 150 to 250 ms end-to-end latency, $0.10 per 1M input tokens and no billed output tokens, with a no-cost tier in Google AI Studio. Internal uses include routing queries to a model tier and thinking level in Gemini Notebook, with up to 40% lower latency on everyday queries, and a safety check for MCP tools in Search.

The same post lists rollouts to OpenRouter, LangChain, Vercel, LiteLLM, Pydantic AI, Pipecat, LiveKit and OpenCode.

In brief

Techniques and workflows

Tools and releases

Research

Say hi.