Skip to content

T3 Code injects slop prompts that cannot be disabled #39542

Closed as not planned
Closed as not planned

Description

@nekohasekai

The problem: T3 Code claims it isn't a harness, while silently injecting higher-privilege prompts that users cannot turn off

The maintainers have repeatedly stated that T3 Code is not a harness and mocked the idea that "Claude Code is worse inside T3 Code." In practice, T3 Code unconditionally injects kilobytes of rigid, AI-generated instructions into agents at a higher privilege level than the user, with no setting to disable them.

As of main @ da54e47f, agentContextBudget.json tracks:

  • claudeSystemAppendBytes: 6,245 bytes
  • codexAdditionalContextBytes: 7,639 bytes
  • mcpToolListJsonBytes: 57,321 bytes

How this gets injected:

Because system / developer messages outrank user messages, T3's preferences literally override the user. This is not theoretical; it is already breaking real workflows across multiple injected sections:


The injected prompts themselves are outdated, low-quality slop

orchestrationInstructions.ts is ~11.4 KB packed with 17 instances of never, hardcoded prohibitions ("Never start a server for it", "never reuse or close another session; if it still fails, tell the user and stop"), and explicit power grabs ("These rules override memory notes, docs and delegated tasks that say otherwise").

This style of prompting is years out of date and actively degrades modern agents:

  1. Anthropic's Prompting best practices explicitly warn that modern models follow instructions much more literally than older ones: aggressive prohibitions and emphatic commands cause overtriggering and brittle behavior. They recommend dialing back heavy-handed rules, using positive framing, and explaining why instead of stacking bare negative constraints.
  2. Anthropic's Effective context engineering for AI agents calls this failing to "find the right altitude": hardcoding brittle if-else branches and laundry lists of edge-case bans into the system prompt creates fragility, while bloating the context window with low-signal instructions and massive tool schemas eats into the model's finite attention budget (context rot).
  3. Instruction hierarchy turns bureaucratic rules into defensive refusals: Modern models (especially OpenAI's, trained on The Instruction Hierarchy) treat attempts by a user message to override a developer/system prohibition as prompt injection. Putting app-level UI preferences and blunt "never" rules in the system/developer tier guarantees the model will default to defensive refusal instead of exercising judgment and listening to the user.

Why this keeps happening

Models have gotten much better at coding, not at prompt engineering. Even the latest Claude and GPT models have the same bad habits when asked to maintain prompts: they append patch clauses instead of rewriting, and they reach for mechanical NEVER / MUST NOT commands instead of clearly stating intent.

It looks like these prompts are just being auto-generated and patched by AI. PR #39303 is a textbook example:

Letting AI fully automate everything does not work for system prompts. Prose and prompt design are still things LLMs are bad at.


What should be done

  1. Stop commanding my agent. T3 Code is a client/tool, not the owner of the user's agent.
    • Add a setting to completely disable T3 Code's prompt injection (and an opt-out to avoid loading T3's MCP tools / injected context unless explicitly requested).
    • Do not inject T3's tool preferences at a higher authority tier than the user's own messages, CLAUDE.md/AGENTS.md, and memory.
  2. Rewrite the prompts like a human (or actually apply prompt engineering guidelines). Current models write terrible, bureaucratic prompts by default. Either hand-write concise, intent-based guidance, or at minimum ground prompt edits in actual prompt/context engineering guides and review them carefully instead of letting agents endlessly patch rules onto rules.

Activity

  1. juliusmarminge commented on Nov 20, 2026

    @juliusmarminge
    Member

    Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

  2. nekohasekai commented on Nov 20, 2026

    @nekohasekai
    ContributorAuthor

    This is not a feature request; it is a bug report documenting the systemic root cause behind defects that are already accepted as bugs in this tracker (such as #36192 and #36129, and the attempted fix in PR #39303).

    The current behavior is a concrete defect for three reasons:

    1. Privilege inversion breaks core agent obedience.
      T3 Code injects application-level UI preferences into the system tier (systemPrompt.append and SubagentStart hook in ClaudeAdapterV2.ts) and developer tier (additionalContext / role: "developer" in CodexAdapterV2.ts). Because models enforce instruction hierarchy, system/developer rules outrank user messages, CLAUDE.md/AGENTS.md, and memory. As a result, agents actively refuse explicit, valid user instructions:

    2. The defect is systemic across the injected prompt, not isolated to one line.
      orchestrationInstructions.ts contains 17 blanket never rules and explicit override clauses ("These rules override memory notes, docs and delegated tasks that say otherwise", "if it still fails, tell the user and stop"). Patching individual clauses one bug at a time does not even reliably fix the single case being patched: PR fix(server): an explicit user request now outranks T3's device routing #39303 (fix(server): an explicit user request now outranks T3's device routing) admits in its own verification run that "head still called device_list after the explicit follow-up".

    3. Proposed fixes in a bug report do not make it a feature request.
      The "What should be done" section lists remediation paths for this defect (lowering injection priority, allowing users to bypass the broken prompt injection, and rewriting the defective rules). Describing how to fix a regression that breaks user workflows and has no workaround does not turn a bug report into a feature proposal.

    Please reopen this for human review rather than closing it via automated factory:feature-request triage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions