Add output-style feature similar to Claude Code #3378

Open
opened 2026-02-16 17:39:50 -05:00 by yindo · 9 comments
Owner

Originally created by @observerw on GitHub (Dec 7, 2025).

Summary

Add an output-style feature similar to Claude Code's output styles, allowing users to customize Claude's communication style and behavior for different use cases.

Description

Claude Code has a powerful output-style feature that allows users to completely change the AI assistant's personality, tone, and approach to tasks by swapping out the system prompt. This would be a valuable addition to OpenCode.

Key Features from Claude Code:

  1. Built-in Output Styles:

    • Default: Standard software engineering assistance
    • Explanatory: Provides educational insights while coding
    • Learning: Collaborative learn-by-doing mode with TODO(human) markers
  2. Custom Output Styles: Users can create their own styles as Markdown files with frontmatter

  3. How it Works:

    • Directly modifies the system prompt
    • Can exclude coding instructions unless specified
    • Maintains core capabilities (file operations, script running, TODO tracking)
  4. Usage:

    • command to access menu
    • to switch directly
    • Project-level configuration

Benefits:

  • Flexibility: Adapt OpenCode for different use cases beyond software engineering
  • Customization: Allow users to create specialized assistants for teaching, mentoring, etc.
  • Consistency: Maintain core OpenCode capabilities while changing behavior

Implementation Approach:

  1. Add output style configuration system
  2. Create slash command
  3. Support built-in styles (Default, Explanatory, Learning)
  4. Allow custom styles via Markdown files
  5. Store configuration at project level

This feature would significantly enhance OpenCode's versatility and user experience.

Originally created by @observerw on GitHub (Dec 7, 2025). ## Summary Add an output-style feature similar to Claude Code's output styles, allowing users to customize Claude's communication style and behavior for different use cases. ## Description Claude Code has a powerful output-style feature that allows users to completely change the AI assistant's personality, tone, and approach to tasks by swapping out the system prompt. This would be a valuable addition to OpenCode. ### Key Features from Claude Code: 1. **Built-in Output Styles**: - **Default**: Standard software engineering assistance - **Explanatory**: Provides educational insights while coding - **Learning**: Collaborative learn-by-doing mode with TODO(human) markers 2. **Custom Output Styles**: Users can create their own styles as Markdown files with frontmatter 3. **How it Works**: - Directly modifies the system prompt - Can exclude coding instructions unless specified - Maintains core capabilities (file operations, script running, TODO tracking) 4. **Usage**: - command to access menu - to switch directly - Project-level configuration ### Benefits: - **Flexibility**: Adapt OpenCode for different use cases beyond software engineering - **Customization**: Allow users to create specialized assistants for teaching, mentoring, etc. - **Consistency**: Maintain core OpenCode capabilities while changing behavior ### Implementation Approach: 1. Add output style configuration system 2. Create slash command 3. Support built-in styles (Default, Explanatory, Learning) 4. Allow custom styles via Markdown files 5. Store configuration at project level This feature would significantly enhance OpenCode's versatility and user experience.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 7, 2025):

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

  • #3195: Dynamic system prompts for custom agents

Both requests focus on allowing users to customize the AI's behavior through system prompt modifications for different use cases. #3195 discusses dynamic system prompt generation for custom agents, while this issue proposes output styles as presets for switching behavior modes.

Feel free to ignore if you're specifically looking for a feature identical to Claude Code's output style system.

@github-actions[bot] commented on GitHub (Dec 7, 2025): This issue might be a duplicate of existing issues. Please check: - #3195: Dynamic system prompts for custom agents Both requests focus on allowing users to customize the AI's behavior through system prompt modifications for different use cases. #3195 discusses dynamic system prompt generation for custom agents, while this issue proposes output styles as presets for switching behavior modes. Feel free to ignore if you're specifically looking for a feature identical to Claude Code's output style system.
Author
Owner

@hsachdeva9 commented on GitHub (Dec 7, 2025):

Hey @observerw, I wanna give it a try. Could you please assign it to me?

@hsachdeva9 commented on GitHub (Dec 7, 2025): Hey @observerw, I wanna give it a try. Could you please assign it to me?
Author
Owner

@rekram1-node commented on GitHub (Dec 7, 2025):

@hsachdeva9 observer is not a maintainer, they cannot assign issues to you.

Have you read our contributing rules?

@rekram1-node commented on GitHub (Dec 7, 2025): @hsachdeva9 observer is not a maintainer, they cannot assign issues to you. Have you read our contributing rules?
Author
Owner

@JunarisAlf commented on GitHub (Dec 9, 2025):

Just create new primary agent, the output is same, Agent is more flexible then claude output-style

@JunarisAlf commented on GitHub (Dec 9, 2025): Just create new primary agent, the output is same, Agent is more flexible then claude output-style
Author
Owner

@observerw commented on GitHub (Dec 9, 2025):

Just create new primary agent, the output is same, Agent is more flexible then claude output-style

Make sense, I'm using this method for now.

However, I think the primary agent is for "what to do" (coding, planning, etc.), and output style is for "how to do it" (consice, detailed, etc.). These are two factors that can be combined arbitrary.

@observerw commented on GitHub (Dec 9, 2025): > Just create new primary agent, the output is same, Agent is more flexible then claude output-style Make sense, I'm using this method for now. However, I think the primary agent is for "what to do" (coding, planning, etc.), and output style is for "how to do it" (consice, detailed, etc.). These are two factors that can be combined arbitrary.
Author
Owner

@InhaEclipse commented on GitHub (Dec 11, 2025):

i second this! i would like to use general agents and change between output styles without having to duplicate each agent "mode" (like build, plan, explain) per style

@InhaEclipse commented on GitHub (Dec 11, 2025): i second this! i would like to use general agents and change between output styles without having to duplicate each agent "mode" (like build, plan, explain) per style
Author
Owner

@bigshiny90 commented on GitHub (Dec 20, 2025):

question: does the Primary Agent override the standard Claude Code system prompt? meaning - it is not the same as writing a CLAUDE.md file... this doesn't override claude codes system prompt. there is pre-prompting that cannot be removed unless using 'claude --system-prompt'... sorry, this might be a naive statement, as i do NOT know how the interaction works between opencode and claude code!

@bigshiny90 commented on GitHub (Dec 20, 2025): question: does the Primary Agent override the standard Claude Code system prompt? meaning - it is not the same as writing a CLAUDE.md file... this doesn't override claude codes system prompt. there is pre-prompting that cannot be removed unless using 'claude --system-prompt'... sorry, this might be a naive statement, as i do NOT know how the interaction works between opencode and claude code!
Author
Owner

@art-shen commented on GitHub (Jan 16, 2026):

I have a feeling that the performance of the model is even better with Claude Code Insights (explanatory/educational style), because it requires the model to think better and explain its actions.

@art-shen commented on GitHub (Jan 16, 2026): I have a feeling that the performance of the model is even better with Claude Code Insights (explanatory/educational style), because it requires the model to think better and explain its actions.
Author
Owner

@PavloPoliakov commented on GitHub (Feb 2, 2026):

I think /output-style is a great feature of Claude Code and would love if opencode has it as well

@PavloPoliakov commented on GitHub (Feb 2, 2026): I think `/output-style` is a great feature of `Claude Code` and would love if `opencode` has it as well ⭐
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3378