“Do coding agents work better with fewer instructions?”Read in full and fact-checked
By Semanalia
Post reviewed: “5 Habits i changed when working with Gemini 4 Neon”, by Philipp Schmid (@_philschmid), posted on X on Nov 25, 2026.
In short. Philipp Schmid of Google DeepMind describes five habits he changed while working with Gemini 4 Neon: fewer rules, each tool rule stated once, skills on demand, images as proof, and handoffs instead of compaction. I read the whole article and checked it against studies and the documentation from Google and Anthropic.
On November 25, Philipp Schmid (@_philschmid) published an X article that has about 342,700 views: “5 Habits i changed when working with Gemini 4 Neon.” It describes how his work with a coding agent (an AI assistant that edits code and runs commands on its own) changed once he moved to that model: fewer rules, each instruction in one place, and more care about what goes into the context. A note on transparency before going on: Schmid works at Google DeepMind, the company that makes Gemini (his profile says so), and the models used to check this post are Anthropic’s, which also has a stake in this area. Open the sources instead of relying on this summary alone.
The thesis is easy to state. Behind every request you make to an agent sits a pile of text you do not see: system rules, tool definitions, skills (bundles of instructions the agent loads when needed) and earlier turns. That text is repeated at every step, so overly specific rules end up clashing with what you ask today. Schmid says he deleted style bans and replaced them with cues for judgment, such as “match the surrounding codebase style, naming and comment density.” His global rules file now fits on one screen: hard safety limits around approvals, source verification and long jobs, short formatting preferences for replies, and little else.
The practical part is the strongest. He asks that each tool rule live once, inside the tool’s definition, with types and allowed values (a task status that is one of “pending,” “in progress” or “done” rather than free text), that repeated examples go, that the tool set stays small, and that long logs go to a file instead of being dumped into the conversation. He keeps project files to a summary plus the gotchas the code cannot show, and moves procedures into skills. For visual work he proposes a reference screenshot, and asks the agent to open its own output before saying it is done. For long sessions he suggests a handoff file between phases instead of compacting the conversation.
That is the original. What is worth checking is how much of it has been measured. To start, the idea is not unique to Gemini. In July, Anthropic said it had removed more than 80% of the Claude Code system prompt for its newest models with “no measurable loss” on its own evaluations, using examples almost identical to Schmid’s: the comment ban that clashes with documentation, and the task tool with a closed set of statuses. Two vendors say the same thing and neither shows the data. I found no source saying whether one read the other.
On project files there are measurements. In the ETH Zurich study, files generated by AI moved the success rate by −0.5% and −2% (differences indistinguishable from chance) and raised cost by 20% and 23%, because the agents followed the instructions and explored, tested and reasoned more. Files written by people improved success by 2.4% (also not significant) at up to 19% more cost, and summaries of the repository structure did not help agents find files sooner. The authors recommend leaving out generated files and keeping only what is not in the README, which is Schmid’s advice. The catch is that four agents were tested and none was Gemini.
For skills, the cost side is documented: the Agent Skills specification says only the name and description are loaded at startup (about 100 tokens per skill), and the body, under 5,000 tokens and 500 lines, loads when the skill is activated. What is not documented is that Neon finds and loads them “reliably” and “with almost no false triggers”: I found no published measurement, in the article or elsewhere. His own AI Engineer talk asks for the opposite of trust: test each skill with and without it and retire it if the model does as well. Tools have a wrinkle. Google’s documentation says to use enums and strong types, which agrees with the article, but it also advises explaining in the prompt how and when to use the functions, and its few-shot page still recommends examples for formatting (while warning that too many cause overfitting). Anthropic still documents tool examples, at roughly 100 to 200 tokens each. Removing them is a reasonable hypothesis, not a rule.
The fifth idea, handoff instead of compaction, has strong support on one point and little on another. Compacting breaks the cache, and that is measured: in the Copilot sessions the median fell from 99.0% to 27.0%, and the sessions that compact (7.8% of them) used 44.2% of all tokens. LangWatch, with data from a single engineer, saw operator corrections rise to 41.9% in the five steps after a compaction, against 17.7% normally. On the other hand, I found no study that compares a handoff file with compacting, and Neon’s own launch post says it handles compaction “reliably” without giving a figure. A handoff is not free either: the new session has to reread what it needs.
The 500,000-token threshold is the most debatable part, and the most useful to look at with numbers. LangWatch found the lowest cost at 220,000 to 240,000 tokens and a reasonable range of 250,000 to 450,000. What decides it is how long the agent spends rereading after compacting (they call it the penalty): they measured 28 steps, and 500,000 comes out best only if each compaction costs about 113 steps. That is one engineer and one family of models, so it does not transfer to Neon as is. The method does transfer: the right number depends on your own logs.
"When instructions conflict, Neon spends extra thinking and often follows the older rule."
No figure published. Google's migration guide says to look for contradictions and Anthropic describes the same clash in its own prompt, but neither measures the cost."Examples in tool definitions narrow the model and produce invalid calls."
Anthropic says something similar about its models. Google and Anthropic still document examples, and nobody publishes the rate of invalid calls."Long project files do not help: keep only what the model cannot infer."
ETH Zurich: no measurable gain and 20% more cost with AI-written files; repository overviews do not help. Four agents, none Gemini."Neon finds and loads skills and deferred tools with almost no false triggers."
The cost of loading is documented, the hit rate is not. I found no published measurement."Compaction always hurts: it breaks the cache and drops detail."
The cache falls from 99.0% to 27.0% (Copilot) and corrections rise to 41.9% (LangWatch). "Always" is strong: Google says Neon compacts reliably, with no figure."Compact around 500,000 tokens, not earlier."
LangWatch measured the minimum between 220,000 and 240,000, with 500,000 only if each compaction costs 113 steps. One engineer, another model.What the article does not cover is how to decide what to delete without breaking anything, and that is the missing piece. An example with your own files: if your rules file weighs 350 tokens, the project file 101, the system prompt 68 and the tools 445, the sum is 964 tokens, 0.1% of a million. Size is not the problem. What costs you is rules that contradict each other and rules that repeat, such as a ban on comments against another rule that asks for documentation. To decide, take 10 real tasks from your last month, run them 3 times with everything in and 3 times without each cut, fix the pass check beforehand (a test, for instance) and compare passes and tokens. With 30 pairs, the sign test only sees a loss if the original wins at least 6 pairs and the variant none, so a clean result means “no loss detected,” not that nothing was lost. Safety limits (permission before publishing or deleting, never printing keys) are not tested by removing them. They save very few tokens (in an example team of four agents with 37,000 tokens loaded, the two safety rules take about 70, or 0.2%) and they protect what cannot be undone. For the handoff, the file should carry the goal, the decisions with how each was checked, the exact paths, the open questions and the next step.
For compaction, the example uses round numbers (invented for illustration, not measured): if after compacting the session sits at 60,000 tokens, grows 1,500 per step and 30 steps are lost rereading, a threshold of 150,000 gives 60 steps per cycle and only 30 productive ones (50%), while 500,000 gives 293 steps and about 263 productive ones (89.8%). That does not show 500,000 is better, since each step costs more the larger the context is, and without your three numbers there is no threshold to defend. This post’s skill, semoccam, does that work with scripts that run on your machine: it inventories your files, flags contradictions, repeated tools and examples, computes the compaction cycle, compares the with-and-without runs and checks the final sheet with two subagents, one that prepares and one that reviews. Neither deletes anything on its own.
Behind the “less is more” headline sits an idea you can use without buying anything: a cut is a hypothesis until you test it on your own tasks. Schmid offers a good starting point, Anthropic and Google agree on the essentials, and what is missing you can supply yourself with ten tasks and an afternoon.
semoccam
Audits the instructions, tools, skills and session habits of a coding agent when its model changes: what to keep, cut, move or test, rules that contradict each other, the with-and-without test for each cut, and a handoff and compaction policy from your own numbers. Tested scripts and two subagents.
How to use it
- Claude Code. Add the repository, then install the skill:
/plugin marketplace add SrD836/sem-skills/plugin install semoccam@sem-skills - Codex, Cursor or Gemini CLI. Copy the folder
skills/semoccaminto its skills folder. - ChatGPT, Claude or Gemini. Open the chat version, copy the text and paste it at the start of the conversation.
In English · MIT license · By Semanalia
Tested with Anthropic’s Claude models (Haiku and Sonnet), with and without the skill, and graded blind.
Questions this post answers
Should you delete your rules and AGENTS.md when you switch models?
Not without testing. In an ETH Zurich study with 4 agents, context files written by AI raised cost by 20% and 23% without a measurable gain in success, and none of the agents was Gemini. Delete what the code already shows and test each cut on your own tasks.
Is it better to compact a session or hand off with a file?
Compacting mid-task wrecks the cache: across 13.5 million Copilot sessions the median hit rate fell from 99.0% to 27.0%. Nobody has compared a handoff with compaction, and the author's 500,000-token threshold depends on how long your agent spends rereading afterward.
Can you trust what Philipp Schmid reports?
It is one Google DeepMind engineer's experience, and he publishes no results. Anthropic said something very close in July about its own models, also without data. Treat it as a starting point and run the with-and-without test yourself.
How do you check that a cut did not break your agent?
Use 10 real tasks, 3 runs per variant and a pass check fixed in advance. With 30 pairs, a sign test only sees a loss if the original wins at least 6 pairs and the variant none, so a clean result means "no loss detected," not a guarantee.
Sources
- Philipp Schmid (@_philschmid), "5 Habits i changed when working with Gemini 4 Neon", X article, Nov 25, 2026 (x.com/_philschmid/status/2125579472594223340). The same text on his blog: "How my context engineering changed for Gemini 4 Neon" (philschmid.de/gemini-4-neon-context-engineering).
- Philipp Schmid's profile on X, read on Dec 4, 2026 (x.com/_philschmid), and his AI Engineer speaker page (ai.engineer/speakers/philipp-schmid): Staff Engineer at Google DeepMind.
- Google, "Introducing Gemini 4 Neon", Nov 18, 2026 (blog.google/innovation-and-ai/models-and-research/gemini-…).
- Google Cloud, guide to migrating to the latest Gemini models, read on Dec 4, 2026 (docs.cloud.google.com/gemini-enterprise-agent-platform/mo…).
- Google Cloud, function calling documentation (docs.cloud.google.com/gemini-enterprise-agent-platform/mo…) and few-shot examples documentation (docs.cloud.google.com/gemini-enterprise-agent-platform/mo…), read on Dec 4, 2026.
- Google, "Tool Retrieval in the Gemini API" (blog.google/innovation-and-ai/technology/developers-tools…).
- Thariq Shihipar (Anthropic), "The new rules of context engineering for Claude 5 generation models", Jul 24, 2026 (claude.dev/blog/the-new-rules-of-context-engineering-for-…).
- Anthropic, tool definition documentation (platform.claude.com/docs/en/agents-and-tools/tool-use/def…) and tool search documentation (platform.claude.com/docs/en/agents-and-tools/tool-use/too…), read on Dec 4, 2026.
- Agent Skills specification (agentskills.io/specification).
- Gloaguen, Mündler-Sasahara, Müller, Raychev and Vechev (ETH Zurich and LogicStar.ai), "Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?", arXiv 2602.11988 (arxiv.org/abs/2602.11988).
- Liu et al. (Microsoft Azure Research and UIUC), "Benchmarking Long-Horizon Agent Context Compaction with CompactionBench", preprint, 2026 (microsoft.com/en-us/research/wp-content/uploads/2026/10/C…).
- LangWatch, "Finding the optimal context window", 2026 (langwatch.ai/research/finding-the-optimal-context-window).