Gemini 4 Neon: Schmid trims his GEMINI.md to one screen

Philipp Schmid's five context changes for Gemini 4 Neon, checked against outside studies, for developers maintaining agent rules files.

Say you're a full-stack developer at a five-person agency, and the rules file behind your coding agent has been growing for a year. Each time a model misbehaved, you added a line: no code comments, never edit files outside the ticket, call the search tool like this, and here are three example calls. The project's instruction file carries a directory tree and a running log of decisions. Then you ask the agent to document a public function, and it stalls or skips the docstring because line 40 still bans comments. The file you wrote to make the agent dependable now argues with your request, and you pay for the argument in tokens.

Philipp Schmid's account of how he rebuilt his context for Gemini 4 Neon is about removing that argument. He cut most of the guardrails, duplicated tool rules and project files he had written for older models, and says the model wasted less thinking and got more accurate. He published the five changes on Nov 25, 2026, after what he describes as weeks of running evals and building daily with Neon. Two days later, Sulat AI & Tech News (Sulat) checked each habit against outside studies and found support somewhere for four of the five, with none of the measured support gathered on Neon.

What it is

The post is one practitioner's write-up of his own setup. It describes five changes, and each one maps to a part of the overgrown file above.

The contradiction problem shows up outside Gemini too. Anthropic's Claude Code memory docs warn that "if two instructions contradict each other, Claude may pick one arbitrarily." They recommend keeping each CLAUDE.md under 200 lines, and they describe a /doctor prompt-audit command that looks for problems including instructions written for older models.

The alternatives below are described from their own sources:

Who it's for

Pick this up if your rules file has piled up across model generations and you can point to lines you added to patch one older model's habits. Schmid's diagnosis fits that file. The nearest measured evidence is the ETH Zurich and LogicStar.ai study Sulat summarizes, which Sulat calls a supporting result, not a test of his claim. LLM-generated context files lowered task success by about 3% and raised inference cost by over 20%. Developer-written files cost up to 19% more but lifted success by about 4%. Our reading: the cost figures back trimming, while the success figure for developer-written files points the other way. The agents weren't ignoring those files: they followed them closely, running more tests and using more reasoning tokens.

It also fits anyone building a custom agent on the Gemini API. The schema-first tool advice lines up with Google's Neon migration checklist, which Sulat reports tells developers to declare tools natively. The same checklist warns that prompting for raw-text JSON tool calls with zero declared tools "can return MALFORMED_FUNCTION_CALL".

Go slower in three cases:

Before and after

Before:

  1. A session opens with a long user rules file, a project file holding a directory tree and old decision notes, and tool rules repeated in system instructions alongside few-shot examples.
  2. You ask for something an old ban forbids. On Schmid's account, Neon spends thinking tokens on the conflict and often obeys the ban.
  3. For a UI change, you write paragraphs of CSS rules and judge the result from text logs.
  4. The session runs on until compaction. He says compaction breaks the prompt cache, drops line-level details and sends the model back to re-read files it already opened.

After:

  1. The user file fits on a screen: safety limits, reply preferences and judgment cues.
  2. The project file is a summary plus the real gotchas. Workflows sit in skills that load on demand. The open Agent Skills specification, as Sulat describes it, puts the startup cost at about 100 tokens per skill and recommends bodies under 5,000 tokens.
  3. Tool rules live in the schema, or in a script's flags and error messages.
  4. UI work starts from a screenshot and ends with the agent opening its rendered PNG.
  5. A phase change means a handoff file and a fresh session.

The cache point carries real money. Microsoft's CompactionBench preprint covers 13.5 million GitHub Copilot agentic sessions. In that data, the median cache hit rate fell from 99.0% before a compaction to 27.0% after. Sulat gives Neon's prices as US$3 per million input tokens and US$0.15 per million cached tokens (Nov 27, 2026). By its arithmetic, a 500,000-token prompt costs US$1.50 in input on a miss and US$0.075 on a hit.

Try it

Run a with-and-without test on your own rules file before you delete anything. For Gemini users there's nothing to install: the changes are edits to GEMINI.md, AGENTS.md or CLAUDE.md.

  1. Pick your tasks. Write down five tasks that currently pass or fail because of a rule you suspect, the first step in Sulat's checklist. Run them and note the results.

  2. Measure the file. Anthropic's docs target under 200 lines per CLAUDE.md file. Check whichever file your agent loads against that before you cut anything.

  3. Audit it (Claude Code). On Claude Code v2.1.283 or later, run the audit below. It reports problems such as instructions written for older models, references to missing files and files that contradict each other. It proposes edits and changes nothing until you ask.

/doctor prompt-audit
  1. Rewrite the user-level file to Schmid's pattern. This is our example, not his file. Keep it to judgment cues, safety limits and reply preferences:
- Match the surrounding code's style, naming and comment density.
- Ask for approval before deleting files, pushing, or touching production.
- Verify facts against a source before stating them.
- For long jobs, write logs to a file and report the path.
- Reply in short paragraphs, result first.
  1. Move one workflow out. Take a multi-step procedure, such as a release checklist or a review guide. Turn it into a skill with a one-line description, or in Claude Code a .claude/rules/ file with paths frontmatter so it loads only for matching files.
  2. Rerun the five tasks. In Claude Code, /context all lists loaded files under Memory files, so you can confirm the slimmer file is the one in use. The test passed if the tasks succeed at least as often as before with a shorter file. If one regresses, restore that single rule.

For the handoff habit, here's a skeleton built from the three things Schmid puts in his (our template):

# Handoff
Goal: <one sentence>
Verified decisions: <what was tested and settled>
Files: <exact paths touched or needed next>

Where it breaks

The open number is the one Schmid's post doesn't give: how much accuracy and how many thinking tokens the trim buys on Neon. None of our sources tests a smaller or cheaper executor model on the same one-screen rules file; his post covers Neon only.

Sources