Skip to content

[Feature]: Make T3 harness context discoverable and optionally injectable for parent and delegated agents #37695

Closed as not planned

Description

@ropepop

Problem / use case

I use T3 Code as an orchestration layer: an OpenCode parent running DeepSeek coordinates Codex-based GPT-6.1 Sol (xhigh) delegated children and depends on T3-managed task and Goal-mode lifecycle behavior.

The model's understanding of its native harness is not always enough to navigate the outer T3 Code orchestration layer. When the parent or a child lacks actionable context about T3-managed capabilities, delegation, waiting, result delivery, or thread state, it has less flexibility and may make assumptions based on native-harness behavior or need me to explain the integration repeatedly.

I'd like a supported way to inject a small amount of T3-specific harness context and make richer information available on demand, rather than pasting an entire manual into every prompt.

Existing functionality (not claiming T3 sends no instructions)

T3 already has <runtime_info>, shared T3 orchestration instructions, provider-specific instruction delivery, and orchestrator_capabilities. OpenCode integrates runtime and orchestration guidance. I am not asserting these mechanisms are wholly absent or claiming to have verified the exact delivered prompt on my build.

The request is to make host-orchestration orientation, supported capabilities, and optional user-added context explicit, discoverable, and consistent across parents and delegated agents.

Relevant source:

Proposed behavior

1. Concise host orientation at session start

Provide a short, accurate context block identifying:

  • T3 Code as the outer orchestration layer and the selected native provider/harness.
  • Whether the session is a parent/coordinator or a delegated child, when known.
  • The supported entry points for capability discovery and T3 task/thread operations.
  • The distinction between native sub-agents and T3-managed delegated child threads.
  • Where to discover lifecycle semantics rather than guessing that a native-harness feature behaves identically in Goal mode.

2. On-demand, version-aware harness documentation

A read-only T3 documentation/help resource (or an extension of existing capability discovery) should let an agent retrieve compact, relevant details when it needs them: task delegation and targeting, model/effort selection, parent/child communication, completion delivery, waiting, continuation and Goal-state management, and tool availability.

Only advertise capabilities actually supported by the current provider/session. Keep the initial context small.

3. Optional additional user-provided instructions

Allow a small user-configurable instruction block or file to be appended without replacing native or T3 safety/runtime instructions. Useful scopes include per-provider-instance and per-project. Child inheritance should be explicit and role-appropriate, not a blind copy of the parent's complete instructions.

Use a true native system/developer append where the provider supports it; otherwise use a clearly labeled provider-compatible context injection. Preserve instruction provenance and precedence. Untrusted repository content should not be elevated to T3-level authority.

4. Reliable lifecycle delivery

Maintain the essential orientation across a new session, a resumed or compacted session, or a provider handoff without duplicating large prompt sections. If capabilities or role change, refresh the affected information.

Example of the desired minimal context

You are running in T3 Code via {native provider}. Your role is {parent coordinator / delegated child}. T3-managed tasks and Goal-mode continuation can differ from native sub-agent mechanisms. Use the available T3 capability-discovery interface to check supported operations and read the relevant T3 orchestration guidance as needed. Do not assume a tool or waiting behavior exists unless this session exposes it.

This is illustrative, not a claim that the placeholders or a new documentation endpoint already exist.

Smallest useful scope

  • An explicit, succinct T3-host orientation that builds on existing runtime instructions.
  • A discoverable read-only guide to current supported T3 orchestration operations.
  • Optional additive user-supplied instructions with provider/project scope and deliberate child inheritance.

Validation should check what actually reaches each provider and survives compaction, including both an OpenCode parent and a delegated Codex child. Merely asking the model whether it knows T3 Code is not a reliable test.

Relation to existing request

Discussion #6807 — configurable instruction files injected into the system prompt already covers the generic user-configurable instruction-file mechanism. This request adds the T3-specific host self-description, on-demand runtime guide, parent/child role-awareness, and capability-grounded delivery use case. Please merge or associate them if a single design is preferable.

This is a feature request, not a confirmed T3 prompt-injection bug. I have not captured my installed T3 build's actual provider prompt payload.

Environment: T3 Code on macOS, OpenCode parent with DeepSeek V4.1 Flash; delegated GPT-6.1 Sol at xhigh effort. Exact build/model identifiers not recorded.

Activity

  1. juliusmarminge commented on Nov 16, 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.

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