Skip to content

[FEATURE]: Finish hook, when LLM is ready to get new instructions #5515

Closed

Description

@jcubic

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

I can't find an issue like this, so I'm creating one:

Often when you ask LLM, and it's doing its job, you do something else.

It would be nice if you could have a hook when LLM is done with the task. So you can add a command that notifies you about it. You can use sound or desktop notification about the fact that you can continue and can review the code and ask about the next thing.

I propose to add an option into the config. Where you can add a command that will execute when the LLM finishes and is waiting for new instruction.

Maybe the idle hook.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Dec 14, 2025
  2. github-actions commented on Dec 14, 2025

    @github-actions
    Contributor

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

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

  3. ariane-emory commented on Dec 14, 2025

    @ariane-emory
    Contributor

    I'm not sure how necessary a new feature is for this. This is already pretty easy to do with plugins, and opencode is pretty good at writing plugins for itself. I wanted it to play one sound when the primary agent finished working, another sound when an agent asks for permission (for tools with the "ask" permission) but not to play sounds for subagents finishing their work, and the free Big Pickle model one shotted creating a plugin invoking afplay to do it for me without any issues.

  4. jcubic commented on Dec 14, 2025

    @jcubic
    Author

    Thanks for the tip. I need to try out plugins then. Never use them before.

  5. jcubic commented on Dec 14, 2025

    @jcubic
    Author

    Thanks for the tip. I need to try out plugins then. Never use them before.

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

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions