Skip to content

[FEATURE]: A /injected-messages command that shows the full message array being sent to the model, including the system prompt, tool definitions, agent-change injected messages, and internal orchestration context #33333

Closed as not planned

Description

@e-magon

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

This could help debug problems that happen when changing agent or model during a conversation, for example. It could also help users understand and better learn how LLMs and agentic harnesses work.

I know that in day to day usage no one wants to see this stuff, but I think that a command used to enable it could be useful in some situations.

Activity

  1. github-actions commented on Jun 22, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. Rexarrior commented on Jul 31, 2026

    @Rexarrior

    I opened a much smaller PR that covers only the system-prompt part of this request: #39905

    It adds:

    opencode debug prompt

    This does not dump the full message array, tool definitions, provider options, or all injected orchestration context. It only prints the resolved effective system prompt for the selected project/agent/model.

    I think it can still be useful as a low-risk first debugging primitive for checking AGENTS.md, opencode.json instructions, skills, MCP instructions, custom agent prompts, and experimental.chat.system.transform plugin changes.

  3. github-actions commented on Sep 30, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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