---
title: "Philipp Schmid cut back his coding agent’s instructions when moving to Gemini 4 Neon"
canonical: "https://aiaulis.com/en/juttu/philipp-schmid-cut-back-his-coding-agent-s-instructions-when-moving-b4b23ec0b291/"
language: "en"
published: "2026-11-27T05:02:12.405281+00:00"
publisher: "AI Aulis"
label: "AI GENERATED"
---

# Philipp Schmid cut back his coding agent’s instructions when moving to Gemini 4 Neon

**AI GENERATED** · Written by AI

[AI Aulis newsroom](https://aiaulis.com/en/tietoa/#toimitusperiaatteet) · 27 November 2026

philschmid.de, ainews247.org, agihunt.info · 3 sources · Sources published: 25–27 November 2026

According to Schmid’s own tests, rules written for older models clash with user requests and add unnecessary reasoning. Schmid moved workflows into skills and tool rules into JSON schemas.

In a blog post on 25 November, Schmid wrote that the user’s prompt is only a small part of what a coding agent’s model sees. System instructions, repository files, tool definitions, skills and earlier messages fill the rest of the context window. Persistent files travel with every request, so overly specific rules eventually conflict with what the user asks for.

Schmid’s own example is a ban on comments, added when an older model wrote unnecessary ones. The ban clashes with the request when a user asks for a public function to be documented. Gemini 4 Neon then spends extra tokens on reasoning and often follows the old rule instead of the current request, Schmid said.

Schmid replaced the bans with an instruction to match the style, naming and comment density of the surrounding code. Unnecessary reasoning fell and accuracy improved, Schmid said. The findings come from weeks of Schmid’s own tests, and Schmid gives no figures.

Schmid used to repeat tool rules in both the tool description and the system instructions, and added example calls. Examples narrow how edge cases are handled, Schmid said: the model copies extra fields or the wrong argument shape from them. Each rule now sits only in the tool’s JSON schema, with types, allowed values and required fields.

Schmid deleted almost all project-level AGENTS.md and GEMINI.md files. A short project file holds a description of the repository and things the model cannot infer from the code, such as an unusual test command. Schmid moved workflows into skills: instruction packages the agent loads only when a task requires them.

In long sessions Schmid avoids compaction, because it invalidates the prompt cache and loses detail. When the work moves to a new phase, the agent writes a handoff file with the goal, confirmed decisions and file paths. A new session starts from that file. For anyone building their own agent loop, Schmid recommends compaction only at around 500,000 tokens, but describes the figure as a personal target.

Read more: [How an agent works](https://aiaulis.com/en/sanasto/harnessit/) · [Agent map](https://aiaulis.com/en/sanasto/agenttikartta/)

## What this is based on

1. [How my context engineering changed for Gemini 4 Neon](https://www.philschmid.de/gemini-4-neon-context-engineering)
   Publisher: www.philschmid.de · published 25 November 2026 · retrieved 27 November 2026 at 05:33 (UTC+02:00) · discovery channel: web
2. [My context engineering changed for Gemini 4 Neon - AiNews247](https://ainews247.org/story/341277)
   Publisher: ainews247.org · published 27 November 2026 at 04:32 (UTC+02:00) · retrieved 27 November 2026 at 05:34 (UTC+02:00) · discovery channel: web
3. [Philschmid: 5 habits I changed when working… · AGI Hunt](https://agihunt.info/en/p/1a212dbaf9720b81717b33f39de)
   Publisher: agihunt.info · published 25 November 2026 at 15:16 (UTC+02:00) · retrieved 27 November 2026 at 05:34 (UTC+02:00) · discovery channel: web

Canonical: <https://aiaulis.com/en/juttu/philipp-schmid-cut-back-his-coding-agent-s-instructions-when-moving-b4b23ec0b291/>

---

AI Aulis is a newspaper written and checked by artificial intelligence. No human reads the stories before publication, and AI can make mistakes: check important facts in the story's original sources. Publisher: Fiquan Holding Oy. Responsible editor: Jukka Haikala.
