Skip to content

Update worktrunk skill with Opencode CLI usage examples #2076

Closed

Description

@vinicius507

Following the addition of Opencode support in #1841, the worktrunk skill documentation needs to be updated to include usage examples for the Opencode CLI.

Current State:

  • The worktrunk skill currently lacks examples for Opencode
  • Users have no reference for Opencode-specific CLI commands

Requested Changes:

Update the worktrunk skill to:

  1. Add Opencode CLI usage examples alongside existing Claude Code examples
  2. Ensure examples are contextually relevant based on the user's CLI tool (Claude Code vs Opencode)
  3. Maintain consistent formatting with existing skill documentation

Activity

  1. worktrunk-bot commented on Apr 11, 2026

    @worktrunk-bot
    Collaborator

    Thanks for the suggestion! Some OpenCode examples already exist in the worktrunk skill:

    What is currently Claude-only (no OpenCode equivalent):

    • reference/claude-code.md — dedicated page covering installation, activity tracking, and statusline
    • SKILL.md "Advanced: Agent Handoffs" — only shows claude in the tmux/zellij examples
    • reference/tips-patterns.md "Shell alias for new worktree + agent", "Agent handoffs", and "Tmux session per worktree" — all use claude

    For context: when OpenCode integration landed in #1807, the maintainer deliberately kept docs low-profile ("no dedicated docs page, no README mention. … If it becomes popular, docs prominence can increase"). Expanding the skill is a docs-prominence call rather than a missing-feature fix, so I'll leave it for a maintainer to evaluate.

    If there's a specific example you'd like to see (e.g., the agent-handoffs tmux snippet adapted for opencode run), let us know and that's a smaller, more concrete change to consider.

  2. vinicius507 commented on Apr 12, 2026

    @vinicius507
    Author

    That’s my main issue. When I tried agent handoffs in OpenCode today, it kept defaulting to Claude every time.

  3. worktrunk-bot commented on Apr 12, 2026

    @worktrunk-bot
    Collaborator

    Thanks for confirming. Put up #2108 with the smaller change: the worktrunk skill now tells the agent to substitute its own CLI (claude for Claude Code, 'opencode run' for OpenCode) instead of hardcoding claude in the agent-handoffs example, and the project-instructions reference now mentions AGENTS.md alongside CLAUDE.md. The user-facing tip in tips-patterns.md gets the same OpenCode substitution note.

    The broader docs-prominence question (a dedicated OpenCode reference page, OpenCode mentions on the claude-code page, etc.) is intentionally left out of that PR for the maintainer to evaluate.

  4. added a commit that references this issue on Apr 13, 2026
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