Wink Pings

After Deleting a Screenful of Rules, Gemini 4 Neon Actually Became More Stable

Philipp Schmid used Gemini 4 Neon for a few weeks and found that the guardrails, skills, and rules accumulated from the old-model era were slowing down the new model. He removed duplicate tool rules, cut project-level instruction files, changed compaction into handoff, and kept 5 changes.

Philipp Schmid posted a retrospective on X after using Gemini 4 Neon (original tweet, article). The conclusion is a bit counterintuitive: the rules, skills, and guardrails accumulated for older models are slowing down the new model and even causing it to fail on edge cases it could otherwise handle.

The background is not complicated. In everyday use of a coding agent, the prompt is only a small part of what the model sees. System instructions, tool definitions, skills, and previous turns all fill the context window. They persist in every subsequent request, and the more specific a rule is, the more likely it is to conflict with the current task. When rules conflict, Gemini 4 Neon spends extra thinking tokens resolving the conflict and often follows the old rules.

He changed 5 things.

  1. Remove strict rules. System instructions and rules expand over time. The old model wrote noisy comments, so add a rule; the agent changed code arbitrarily, so add another rule. Eventually user rules, project rules, and the current request contradict one another. For example, a global ban on comments collides with a request to document a public function. He now compresses the user-level GEMINI.md to one screen, keeping only habits that apply in every session: hard safety constraints such as approvals, source verification, and long-task monitoring, plus reply preferences: answer first, short sentences, active voice. Task-specific content goes into skills. Code-style prohibitions are replaced with judgment prompts: match the surrounding codebase style, naming, and comment density. In testing, a bloated list of prohibitions did not help the old model preserve read-only debugging; it only added conflicting instructions and thinking tokens.

  2. Write tool rules only once. The previous generation of models needed to be told twice: put a description in the tool definition, then write again in system instructions when to call it, and add few-shot examples too. Few-shot works on common inputs but narrows handling of edge cases. When the task differs from the example, the model copies extra fields or the wrong parameter shape and emits invalid calls. Now he puts usage rules into clear interfaces. For custom agents, use the tool JSON schema to specify parameter types, enums, and required fields. The same applies to everyday coding agents: make repo helper scripts and CLI tools have clear flags, strict options, and direct error messages. Keep the tool surface small, bound the output, write long command logs to files, and don't stuff large stdout blocks into context.

  3. Load skills on demand. He deleted almost all project-level AGENTS.md and GEMINI.md files. Many files merely repeated the directory structure the model can see by reading the repo, or became append-only memory logs that quickly went stale. Now project instruction files are very short: what the repo does, plus real pitfalls the model cannot infer from the code, such as nonstandard test commands or which file shared types must live in. Domain workflows such as long-form editing, UI specifications, API reviews, and CLI guides move into skills with one-line index descriptions. Long skills are split into a linked file tree, and the agent reads only the part it needs. Fast-changing CLIs, SDKs, and internal APIs are best suited to loading the current guide on demand, avoiding guesses about old flags or deprecated endpoints.

  4. Use images and video for reference and verification. For ordinary backend code edits, short text requests are enough. For UI layout, charts, and animations, text descriptions leave too much room for error. He now provides reference screenshots or short screen recordings that directly show style and spacing. Then he has the agent check its own output: render the page, chart, or video frame, open the actual PNG or clip, and confirm before finishing. Looking at one rendered image can catch truncated text, wrapped labels, and alignment errors that never show up in text logs.

  5. Hand off context instead of relying on compaction. Even with a 1M-token context, long coding sessions become noisy and slow, and eventually need compaction. Compaction always loses something. When an agent summarizes the session midway through a task, it breaks the prompt cache, loses line-level details, and has to reread files already opened next turn. He splits work into phases. When a task changes phases, he has the agent write a short handoff file specifying the goal, verified decisions, and exact file paths, then starts a new session from that file. If midway through he discovers a second thing to do in parallel, he forks the session there rather than stuffing both tasks into one thread. Automatic compaction remains as a fallback, but don't trigger it early. His reference point is to compact around 500k tokens, and pin the active file paths and verified decisions in the summary.

In the comments, some people worried that deleting rules would make the agent drift. Others thought most GEMINI.md files were just scars left from arguing with old models. One user tested a refund rule: when it was written into the rules file, it got 10 out of 10 right; when it was not written at all, it still got 9 out of 10 right, because the agent reads the code. Another said cleaning up stale instructions has become the new technical debt, and deleting prompts is the new prompt engineering. These reactions say more than the article itself: old rules are not necessarily protecting you; sometimes they are just taking up context.

Philipp's advice is to simplify layer by layer: keep user-level rules short; write tool and script interfaces clearly once; trim project files and skills; for visual tasks, provide references and have the agent self-check; and use handoff files between phases. With fewer rules, thinking tokens can be spent on the task.

发布时间: 2026-11-25 23:26