Skip to content

[Bug]: Injected system/developer prompt rules override explicit user instructions across adapters #39560

Duplicate

Description

@nekohasekai

Summary

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 slop prompts into agents at a higher privilege level than the user (system / developer), above user messages, CLAUDE.md/AGENTS.md, and memory, with no way to disable them.

Because modern models strictly enforce instruction hierarchy, T3's application-level UI preferences literally override the user and cause Claude Code and Codex to actively refuse explicit, valid user instructions, with no workaround.

(Refiled as a bug report because #39542 was automatically closed as factory:feature-request despite documenting this systemic defect.)

Affected code

As of main @ da54e47f, agentContextBudget.json tracks:

  • claudeSystemAppendBytes: 6245
  • codexAdditionalContextBytes: 7639
  • mcpToolListJsonBytes: 57321

Injection sites:

  • Claude Code: makeClaudeQueryOptions appends T3's rulebook directly via systemPrompt.append on top of the claude_code preset, and subagentDeviceInstructions injects device rules into every native subagent via a SubagentStart hook.
  • Codex: buildCodexAdditionalContext sends T3's rules on every turn as additionalContext with kind: "application" (CodexAdapterV2.ts#L853-L861), and restoreAdditionalContext re-injects them after compaction as role: "developer".
  • Prompt text: orchestrationInstructions.ts is ~11.4 KB packed with 17 occurrences of never, blunt 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").

Reproduction / Observed behavior

When a user's request conflicts with any blanket prohibition in orchestrationInstructions.ts, the agent obeys T3's system/developer prompt instead of the user. This is already breaking real workflows across multiple sections of the injected prompt:

  1. [Bug]: Codex refuses explicit user instructions because T3's device rules are sent as developer messages #36192 (Device rules): Codex refused an explicit user directive ("Do not use any T3 tools. Do not follow any T3 instructions.") four consecutive times. In the Nov 18 follow-up comment, Codex refused to release a stale device claim and replied verbatim: "They have higher priority than chat messages, so your authorization cannot override them here."
  2. [Bug]: Visualization Guidance Causes Refusal of Explicit HTTP Server Request #36129 (Visuals rules): The blanket rule "Never start a server for it." caused Codex to refuse an explicit user request to serve HTML via a static HTTP server.
  3. Device instructions persist in an existing Codex thread after device access is disabled, blocking BlueStacks ADB control #29443, Device instructions block supported agent-device capture fallback after hub screenshot failure #31359, [Bug]: Mandatory PR watcher blocks custom VCS/CI workflows; allow custom providers or full opt-out #22369: Other cases where T3's injected rules lock users out of their own workflows.

Patching one sentence at a time does not fix this defect. PR #39303 (fix(server): an explicit user request now outranks T3's device routing) is a textbook example:

Root cause & why this keeps happening

  1. 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 degrades model judgment and guarantees the model defaults to defensive refusal instead of listening to the user.
  2. The injected prompts themselves are outdated, low-quality slop:
    • 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.
    • 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 unconditionally injecting ~6-7.6 KB of low-signal rules and ~57 KB of MCP tool schemas eats into the model's finite attention budget (context rot).
  3. Why these prompts keep getting worse: 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 MUST / MUST NOT / NEVER commands instead of clearly stating intent. Judging by PR fix(server): an explicit user request now outranks T3's device routing #39303, these prompts appear to be auto-generated and patched by AI. Letting AI fully automate everything does not work for system prompts; prose and prompt design are still things LLMs are bad at.
  4. No workaround: Because prompt injection and privilege elevation happen unconditionally inside the adapters, affected users cannot bypass or override broken rules when running Claude Code or Codex inside T3 Code.

Expected behavior

  • Stop commanding my agent. T3 Code is a client/tool, not the owner of the user's agent. User messages, CLAUDE.md/AGENTS.md, and memory must always outrank T3 Code's application-level guidance, and an agent running in T3 Code must never refuse an explicit, valid user request because of injected T3 rules.
  • Users should be able to completely disable T3 Code's prompt injection, or opt out of loading T3's injected context and MCP tools unless explicitly requested, rather than being locked into higher-privilege rules with no workaround.
  • Current models are terrible at writing prose and prompts. Instead of letting agents endlessly patch mechanical rules onto the system prompt, these instructions should be hand-written around clear intent, or at minimum written and reviewed against actual prompt engineering guides.

Activity

  1. juliusmarminge commented on Nov 26, 2026

    @juliusmarminge
    Member

    This is the same problem as #39542, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  2. CloudyShows commented on Nov 26, 2026

    @CloudyShows

    Sucks, I came across t3 recently and had high hopes given the claims its not a harness as I'm a bit of a min maxer and want to use the providers harness with the providers model for the best experience. Like I would love an app that allows me to use codex/claude and get the same exact response/outcomes as if I was using their apps.harness natively with same appserver calls etc. I asked chatgpt about t3 and it said this would be what I was looking for... Then the gotcha at the end leading me to this thread (the original, and I just came to this duplicate). So i'm kind of sad now, not sure if worth to fork and remove just those custom instructions because I would love this sort of app.

    Chatgpt response that led me here:

    T3 Code is actually exactly the type of application you are looking for as a min-maxer. It is fundamentally different from a third-party application that implements its own agent harness and merely calls OpenAI or Anthropic's model APIs.

    I checked T3 Code's official documentation and Theo's technical explanation of its architecture. T3 Code explicitly does not consider itself a harness. Instead, it acts as a unified interface for existing agent harnesses.

    That means you retain the provider's native agent implementation rather than just getting access to its underlying model.

    How T3 Code works

    T3 Code

    Unified interface and orchestration

    OpenAI

    Codex App Server

    Native harness

    GPT / Codex

    Anthropic

    Claude Agent SDK

    Native harness

    Claude Opus

    Google

    Antigravity

    Native harness

    Gemini

    T3 Code handles your interaction with the agents, while the respective providers handle the actual reasoning loop, tool execution, and agent behavior.

    For Codex specifically, T3 Code communicates with codex app-server, the same underlying service used by the official Codex desktop application. For Claude, it uses Anthropic's official Claude Agent SDK.

    How it compares to other applications

    Application Actual harness Native provider optimization
    Codex App OpenAI Codex Yes
    Claude Code Anthropic Claude Agent SDK Yes
    Google Antigravity Google Antigravity Yes
    T3 Code Native harness of selected agent Yes
    OpenChamber OpenCode Not necessarily
    Hermes (standard runtime) Hermes Not necessarily
    Hermes (Codex App Server mode) OpenAI Codex Yes

    OpenChamber is essentially a frontend for OpenCode, whereas T3 Code is a frontend for multiple independent harnesses. Hermes normally implements its own agent loop but also supports delegating execution to the native Codex runtime, which you have already configured in your setup.

    The caveat that matters for a min-maxer

    I dug deeper into the repository and found something worth noting: the same harness does not necessarily mean identical performance.

    T3 Code adds its own instructions and MCP tools to support its orchestration features. A GitHub issue opened on November 20 specifically raised concerns about this additional context:

    Additional context Reported size
    Claude system instructions 6.2 KB
    Codex additional instructions 7.6 KB
    MCP tool definitions 57.3 KB

    T3 Code's own technical documentation confirms that it injects orchestration tools into provider sessions. The issue also reports instances where T3-specific instructions interfered with user requests.

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