Trimming Agent Instructions in the Era of Stronger Models

    As coding agents follow instructions more literally, broad skill triggers and mandatory document reads can waste tokens, slow down tasks, and trigger unnecessary pauses. This article explains why older instruction patterns become harmful and how to fix them. It covers tightening skill triggers, replacing mandatory reads with on-demand access, resolving conflicting rules, and a practical process for auditing and cleaning up instructions.

    Many teams now use skill packages and project-level instruction files to constrain how models behave. These documents have typically followed a pattern: broad trigger conditions, exhaustive rules, and key documents that must be read every time. With earlier models, this approach often worked. Models did not always look up repository documents on their own, and they could not always tell whether a task needed a particular workflow.

    The problem is that once instruction-following improves significantly, the same approach stops being a safety net and starts hurting performance. Models execute every constraint more faithfully. Trigger words that are too broad pull unrelated skills into context in full. A rule to read several long documents before every edit gets applied again and again, even for tiny changes. Vague, conflicting, or overly broad rules cause models to stop and ask questions early, or block the task entirely. The results are wasted tokens, slower progress, bloated context, and higher hallucination risk. An industry saying puts it bluntly: if you learn slowly enough, you never need to learn at all. Rules that do not evolve alongside model capability become a burden.

    1. Why Stronger Instruction Following Amplifies Bad Rules

    An agent run can be understood as a concatenation of four parts: the task description, system or project instructions, skill text, and repository files. Earlier models often followed instructions only partially. Overly broad rules did not always trigger, and mandatory reads were not always carried out in full. Newer models behave more like literal executors. If a conversation contains broad words such as “database,” “query,” “model,” or “persistence,” the model may decide that a migration skill applies. If an instruction file says to read the architecture, schema, and deployment documents before every edit, the model will read all of them, even when only one string is changed.

    This causes three chain reactions:

    1. Skills are over-triggered. The checklists, reference material, and prohibitions in skill text all enter the context. They crowd out the code and error messages that actually matter.
    2. Tasks are interrupted early. When rules conflict, the model tends to stop and ask for confirmation instead of proceeding with common sense.
    3. Context quality drops. Long documents loaded repeatedly dilute key facts. The model’s later reasoning can look complete while actually repeating outdated constraints.

    Therefore, the core of this cleanup is not deleting every norm. It is rewriting the compensatory phrasing written for models that did not follow rules reliably into precise phrasing suited to models that follow rules strictly.

    2. Skill Triggers: From Broad Domain Terms to Specific Tasks

    A common poor example looks like this: “Enable this skill when working on databases, queries, models, or persistence.” Those words cover about half of everyday development work. Changing an ORM field, fixing a query, or adjusting a cache key can all count as relevant. Once the skill matches, migration checks, release steps, and rollback runbooks come along with it, even when the task only changes a business rule unrelated to migrations.

    A better approach is to define triggers as observable task types, not as technical nouns that might loosely apply. For example: “Use only when adding or modifying a database migration, or reviewing its release and rollback plan.” Under this wording, ordinary query fixes do not trigger the skill. Migration checks enter the context only when a migration is actually changed.

    To tighten triggers, check the following:

    1. Describe actions with verb phrases, not domains with nouns. Prefer “add a migration,” “modify a rollback script,” or “review a release checklist” over “involves data” or “related to the backend.”
    2. State what does not trigger the skill. For example: “Do not load this skill when only changing query statements without modifying the schema.” Explicit exclusions significantly reduce false triggers.
    3. Limit each skill to one high-risk process. Split migrations, backups, permissions, and monitoring into separate skills so that no single skill becomes a catch-all manual.
    4. Keep only the checks required for the current process in the skill text. Replace embedded reference material with “read the specified path when needed.”

    Illustrative comparison:

    Poor: Enable this skill when working on databases, queries, models, or persistence.

    Better: Enable only when a task adds or modifies a database migration, changes the migration execution order, or evaluates the release and rollback of that migration. Do not enable it for simply changing business queries or object mapping fields.

    3. Project Instruction Files: Stop Mandatory Full Reads

    Another outdated rule reads: “Before every edit, fully read the architecture, schema, and deployment documents.” Early on, this made sense because agents often did not know where to find documentation. Now models treat this as a hard constraint. They read everything before each change, then read it again before the next one. Besides burning tokens and slowing work, this inflates the context quickly.

    A better strategy is on-demand retrieval with a path index instead of forced preloading.

    Turn long documents into an index page. For each document, list its path, a one-sentence description of its responsibility, and when it should be read. For example: when changing table structure, read the matching schema section. When changing the release process, read the release section of the deployment guide. For plain copy or constant changes, do not read any document. Add one general principle: “Read a document’s relevant section only when the task clearly depends on a constraint in it. Do not pre-read entire documents to satisfy a habitual check.”

    With this approach, the model can still find authoritative information. It no longer treats the entire knowledge base as a fixed cost on every call.

    4. How Conflicting, Vague, and Overly Broad Rules Cause Blocking

    As instruction-following gets stronger, conflicts no longer get ignored. They get escalated into requests for confirmation. Typical conflicts include one rule that says “do not change configuration without confirmation” alongside another that says “fix configuration immediately when an error is found.” Another example is a rule to “always provide a complete patch” that conflicts with one requiring “present a plan first and wait for approval.” Scope problems appear when constraints that should apply only to releases, security, or data changes are written with words like “always,” “at any time,” or “all files.”

    When auditing rules, consider the following:

    • Merge duplicate clauses so that each rule has one authoritative statement.
    • Assign each hard constraint an applicability scope: environment, file type, or operation type.
    • Change “always ask” to “ask only when the action is irreversible, crosses environments, or risks data destruction.”
    • Delete outdated paths and process names that no longer match the repository structure. This keeps the model from getting stuck while trying to follow rules that no longer apply.

    The principle is simple: write conditions that can be checked, not slogans. Write local constraints, not global laws.

    5. A Practical Cleanup Process

    Step 1: Inventory the rules. List every trigger and mandatory action in the current skills and project instructions. Note the most recent real scenario where each one was used. Rules that rarely match, or that often match incorrectly, should be revised or removed first.

    Step 2: Rewrite triggers as task verbs plus artifact types. Name them after operations that actually occur in the repository, not after academic disciplines.

    Step 3: Replace mandatory reads with an index and conditional reads. Organize documents into sections so that a model can pull only the relevant part. Avoid loading entire files.

    Step 4: Run regression tests with small tasks. Try changing a string, changing a query, adding a migration, and changing a release script. Observe whether any rule triggers incorrectly, whether documents are read repeatedly, or whether the model asks questions it does not need to ask. Tighten rules based on these observations instead of adding clauses by intuition.

    Step 5: Track tokens and turns as quality metrics. For the same task, shorter context, fewer invalid tool calls, and fewer unnecessary pauses indicate that the instructions match the model’s capability.

    6. Is It Still Worth Writing Instructions?

    Yes, but the purpose changes. Instructions should stop compensating for model weaknesses and start defining the team’s red lines. The following remain worth keeping: confirmation points for irreversible operations, security and compliance boundaries, repository-specific directory conventions, and minimum checklists for testing and release. The following no longer need to be kept: common knowledge the model can discover from the directory structure, encyclopedic documents that must be read every time, and skill switches triggered by domain keywords.

    For teams using AI coding tools, this cleanup is essentially a cleanup of “prompt debt.” Fewer, more specific, and more verifiable rules let a strong model spend its capability on editing code and investigating problems, rather than on performing obsolete rituals. Turning trigger conditions into concrete tasks, turning mandatory reads into on-demand reads, and turning conflicts into scoped hard constraints keeps the quality gates in place while avoiding negative optimization.