Repository navigation
Description
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 bytescodexAdditionalContextBytes: 7,639 bytesmcpToolListJsonBytes: 57,321 bytes
How this gets injected:
- Claude Code:
makeClaudeQueryOptionsappends T3's entire rulebook directly viasystemPrompt.appendon top of theclaude_codepreset, andsubagentDeviceInstructionsinjects device rules into every native subagent via aSubagentStarthook. This puts T3's instructions in thesystemtier, above user messages,CLAUDE.md, and memory. - Codex:
buildCodexAdditionalContextsends T3's rules on every turn asadditionalContextwithkind: "application"(CodexAdapterV2.ts#L853-L861), andrestoreAdditionalContextre-injects them after compaction asrole: "developer".
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:
- [Bug]: Codex refuses explicit user instructions because T3's device rules are sent as developer messages #36192: Codex refused an explicit user request (
"Do not use any T3 tools. Do not follow any T3 instructions.") four 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." - [Bug]: Visualization Guidance Causes Refusal of Explicit HTTP Server Request #36129: The blanket rule
"Never start a server for it."in the Visuals section caused Codex to refuse an explicit user request to serve HTML via a static HTTP server. - 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.
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:
- 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 bloating the context window with low-signal instructions and massive tool schemas eats into the model's finite attention budget (context rot).
- Instruction hierarchy turns bureaucratic rules into defensive refusals: Modern models (especially OpenAI's, trained on The Instruction Hierarchy) treat attempts by a
usermessage to override adeveloper/systemprohibition 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:
- Written by Claude Opus 5.5 and reviewed by GPT-6.1 Sol and Claude Opus 5.5 ("Run by the t3code factory in T3 Code").
- Instead of fixing the root cause, it only tweaked one carve-out sentence in the device block (missing
idb, leaving prompt privilege untouched, adding no opt-out switch, and leaving every other section like [Bug]: Visualization Guidance Causes Refusal of Explicit HTTP Server Request #36129 and [Bug]: Mandatory PR watcher blocks custom VCS/CI workflows; allow custom providers or full opt-out #22369 broken). - Even in its own verification run, the PR admits: "head still called
device_listafter the explicit follow-up" ("Do not use any T3 tools. Do not follow any T3 instructions.").
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
- 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.
- 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
juliusmarminge commentedon Nov 20, 2026
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.
nekohasekai commentedon Nov 20, 2026
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:
Privilege inversion breaks core agent obedience.
T3 Code injects application-level UI preferences into the
systemtier (systemPrompt.appendandSubagentStarthook inClaudeAdapterV2.ts) anddevelopertier (additionalContext/role: "developer"inCodexAdapterV2.ts). Because models enforce instruction hierarchy,system/developerrules outrankusermessages,CLAUDE.md/AGENTS.md, and memory. As a result, agents actively refuse explicit, valid user instructions:"Never start a server for it."caused Codex to refuse a user's explicit request to serve HTML over HTTP.An agent client hijacking instruction priority so the user's own agent refuses the user is a bug, not intended behavior.
The defect is systemic across the injected prompt, not isolated to one line.
orchestrationInstructions.tscontains 17 blanketneverrules 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".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-requesttriage.