GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Hooks for commands (Plugin Commands) · Issue #2185 · anomalyco/opencode

Hooks for commands (Plugin Commands) #2185

New issue
Copy link
New issue
Copy link
Closed
Closed
Hooks for commands (Plugin Commands)#2185
Copy link
Assignees
thdxr

Description

@samholmes
samholmes
opened on Aug 22, 2025
Issue body actions

There should be hooks for commands. Hooks to capture the command before it's given to the LLM and after.

This way, plugin developers can utilize commands for controlling their plugin.

It would also be nice if a plugin can define commands instead of requiring commands to be always in the commands directory as a markdown file.

Reacted by Vladyslav Gudzenko, Jesse Taavola and existedinnettw

Activity

  1. github-actions commented on Aug 22, 2025

    @github-actions
    github-actionsBot
    on Aug 22, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • Hooks support? #1473: Hooks support? - discusses adding hooks for automation, specifically wanting hooks after task completion for CI/CD workflows
    • [feat] lifecycle hooks #573: [feat] lifecycle hooks - proposes comprehensive lifecycle hooks including PreToolUse, PostToolUse, and other events similar to Claude Code's hook system
    • Hooks #1219: Hooks - detailed discussion about bringing Claude Code's hook functionality to opencode, with specific examples of hook types and use cases
    • [feat] custom slash commands #299: [feat] custom slash commands - requests ability to create custom commands as markdown files, which overlaps with your request for plugins to define commands
    • feature request: "agent.finished" plugin event #2021: feature request: "agent.finished" plugin event - specifically requests a plugin event when the agent finishes, complementing your command hook request

    Feel free to ignore if none of these address your specific case.

  2. samholmes
    changed the title [-]Hooks for commands[/-] [+]Hooks for commands (Plugin Commands)[/+] on Aug 22, 2025
  3. rekram1-node
    assigned
    thdxr
    on Aug 22, 2025
  4. thdxr commented on Aug 22, 2025

    @thdxr
    thdxr
    on Aug 22, 2025
    Member
    More actions

    yep will look into this btw plugins can now hook the config function and override it. so you can insert your own custom commands

  5. cavanaug commented on Sep 13, 2025

    @cavanaug
    cavanaug
    on Sep 13, 2025
    More actions

    Fwiw. I think an interop plugin that supports the exact same Claude code hooks would go a long way in bringing folks to opencode. Many folks write automations/agents for Claude and this would give them an opportunity to leverage those within opencode. Interop/compatibility is the bridge to migration.

    Reacted by Luke Ramsden, williamjvest, Agustin Rivera, Mark Van de Vyver, Bracken Spencer and Jensen
  6. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    rekram1-node
    on Dec 28, 2025
    Member
    More actions

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

  7. rekram1-node
    closed this as completedon Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.