Topic
Context, memory and skills
What an agent sees and remembers: context windows, compaction, memory, skills and tool definitions.
In the section Agents at work
10 days · 8 stories · 11 briefs, newest first
Deep diveCost and routingCoding agents
Changing models mid-session throws away the cache a coding agent paid for
A post from Edgee, which runs a gateway that routes coding agents between models, argues that choosing the cheapest capable model for each request is only half of routing. Every change of model throws away the prompt cache, so the other half is deciding when a running session should move, and that has the shape of a classic rent-or-buy problem.
Practical takeaway
Before moving a long session to a cheaper model, count what it costs to make the new model read the whole conversation again. The cheap moments to switch are right after the conversation has been compacted or after a long pause, when everything has to be read again anyway. Move up to a stronger model as soon as the work needs it.
In brief
Perplexity's Context API hands agents web pages as clean text (opens in a new tab)
The new Context API takes up to ten web addresses and returns each page without menus, cookie banners or ads, or only the passages that match a question. Agents that read the web get the page's own wording with far less clutter to pay for, and pages that fail to load are not billed.
perplexity.ai
Deep diveLocal modelsContext and memory
Together AI with Ollama explain what breaks the prefix cache in long agent sessions
A coding agent sends the whole conversation again on every turn, and prefix caching is what keeps that affordable. In a joint post, Together AI, which runs an inference service, and Ollama, which connects coding harnesses to open models, set out what each side has to get right so a session stays fast at turn ninety.
Practical takeaway
A quick audit of any agent harness: render two consecutive requests and compare them from the first byte; the first difference shows where the cache breaks. Keep the system prompt and tool list identical for the whole session and across sessions, add late-loaded tools and changing values at the end, set the reasoning effort once, and make every truncated tool result say what was left out.
In brief
Claude for Manufacturing packages 17 skills and four connectors (opens in a new tab)
The plugin drafts quotes, quality reports and supplier requests from plant systems, with change-making in Infor kept behind user approval.
claude.com
In brief
Retool's MCP server for coding agents (opens in a new tab)
One
claude mcp addorcodex mcp addcommand plus OAuth lets an agent build Retool apps, import React apps, query connected resources and manage users. Admin scopes can disable users and reset 2FA, so grant only the scopes a job needs.docs.retool.com
Count MCP usage in Snowflake with one join (opens in a new tab)
Query history cannot tell an MCP query from the same SQL typed in Snowsight. Giving each MCP server its own OAuth integration and joining
QUERY_HISTORY.AUTHN_EVENT_IDtoLOGIN_HISTORY.EVENT_IDgives usage per server, user and day.medium.com
Agents on raw MCP data repeat spreadsheet chaos (opens in a new tab)
Agents that query Salesforce, Stripe or HubSpot directly can produce conflicting revenue numbers. The proposal is a governed layer of tested business calculations between agents and source systems.
dlthub.com
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.
Practical takeaway
run the published mcp_cost.py script against an MCP server to measure its per-request overhead on the model in use, then expose only the needed tools (for GitHub, --toolsets=issues,repos), request specific fields instead of full objects, and prefer a CLI plus a short skill where the agent has a shell.
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.
Practical takeaway
before delegating, ask whether the worker must make judgment calls that depend on the conversation; if so, fork it, and add a line to the fork prompt saying it is the fork and naming its task.
In brief
OpenAI open-sources MCP extensions for ChatGPT plugins (opens in a new tab)
TypeScript and Python packages add ChatGPT-specific features to MCP servers: sidebar entry points, custom file viewers and composer resource search.
github.com
Chrome's web guidance skill reaches 1.0 with a scanner for legacy front-end code
Modern Web Guidance gives coding agents offline, searchable guides to current web platform features, and version 1.0 adds a
legacy-scancommand and published before-and-after eval numbers.Practical takeaway
Install it with
claude plugin install modern-web-guidance@claude-plugins-officialornpx skills add GoogleChrome/modern-web-guidance, then runnpx modern-web-guidance@latest legacy-scan .on a front-end repo and give the findings to an agent as a modernization task. In sandboxed agents, allow the command's network access up front, as the skill file itself advises.
In brief
Storybook 11 beta ships skills for UI agents (opens in a new tab)
New
ui-workflowandcomponent-docsskills plus headlessstorybook toolscommands let an agent look up existing components, run Vitest and accessibility tests withstorybook tools test run, and prepare a browser review withstorybook tools review create. Try it withnpx storybook@next upgrade.storybook.js.org
Coding agentsContext and memory
A coding agent may never open a skill unless it is named
Garry Tan held the model and 20 tasks fixed and swapped only the harness. Pass rates came out level; where the rules were put did not.
Practical takeaway
Put must-follow rules in
CLAUDE.mdorAGENTS.mdor a per-turn hook rather than in a skill. When a skill should be used in Claude Code, name it in the prompt, and check that its steps actually ran, not just that it was loaded. The repo has the tasks and receipts for rerunning the eval.
In brief
Recursa: agents that write their own skills for a new domain (opens in a new tab)
Alibaba's system bootstraps instructions, skills and memory from domain material, checks each fix against regressions, and lifted held-out pass rates on a legal benchmark from 30% to 55% with no stronger teacher model.
arxiv.org
Compact early and often: agents lose little at 16K to 50K context
An NVIDIA paper shows frequent compaction and grep-style reading hold accuracy while cutting cost several times over.
Practical takeaway
Make the compaction or handoff prompt record the objective, verified facts with exact paths, changes made, checks run, dead ends, and the very next command. Keep big inputs on disk for the agent to grep instead of in the prompt.
Deep diveClaudeContext and memory
How Claude remembers: Anthropic's notes on agent memory and dreaming
Tell the model what memory is for, not how to use it, then clean up the notes in the background.
Practical takeaway
Keep the always-loaded memory file of an agent team to an index under 200 lines, move detail into linked files, and schedule a nightly pass that re-checks notes against the previous day's transcripts.
In brief
Figma's PMs run 31 Claude Code skills (opens in a new tab)
Their PM OS automates context gathering, Slack updates, artifacts and experiment drafts; the video walks through the setup.
lennysnewsletter.com
Let agents file bug reports on your MCP server (opens in a new tab)
Clerk added a
submit_feedbacktool so agents report missing tools and stuck tasks, then reviews them to decide what to fix.clerk.com
Gemini Notebook API and MCP server (opens in a new tab)
Early preview for turning pages, videos and Markdown into persistent notebooks from code; personal Google accounts only.
developers.google.com
