Philipp Schmid cut back his coding agent’s instructions when moving to Gemini 4 Neon
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 · Agent map