Git commit after feature is complete #7065

Open
opened 2026-02-16 18:06:03 -05:00 by yindo · 1 comment
Owner

Originally created by @majid4466 on GitHub (Jan 21, 2026).

Originally assigned to: @thdxr on GitHub.

Question

Is it possible to add a command/agent to ask the user something like this:


The feature you asked for is complete.

Do you want to add a git commit with the following message?

"feat(cats): improve estimate handling to account for actual spending"

  1. Yes, commit with that message
  2. No, do not make a git commit
  3. Type your own commit message

Your choice:


I asked ChatGPT but have very low confidence in its answer. Here is the chat: Agent vs Command Decision

Originally created by @majid4466 on GitHub (Jan 21, 2026). Originally assigned to: @thdxr on GitHub. ### Question Is it possible to add a command/agent to ask the user something like this: ---------------------------------- The feature you asked for is complete. Do you want to add a git commit with the following message? "feat(cats): improve estimate handling to account for actual spending" 1. Yes, commit with that message 2. No, do not make a git commit 3. Type your own commit message Your choice: ----------------------------------- I asked ChatGPT but have very low confidence in its answer. Here is the chat: [Agent vs Command Decision](https://chatgpt.com/share/6970ac4d-7da4-8003-a588-76d14f2ca567)
Author
Owner

@prinny commented on GitHub (Jan 21, 2026):

It is possible to do both. This would go into your OpenCode configuration. The official documentation has additional information about how to set this up.

https://opencode.ai/docs/agents/#configure
https://opencode.ai/docs/skills/#use-an-example
https://opencode.ai/docs/commands/

You can also take a look at how other plugin providers approach this. This repo has several examples of agents, skills, and commands: https://github.com/jjmartres/opencode

You can take those docs and that repo and feed it into an LLM if you're unsure of how to proceed.

@prinny commented on GitHub (Jan 21, 2026): It is possible to do both. This would go into your OpenCode configuration. The official documentation has additional information about how to set this up. https://opencode.ai/docs/agents/#configure https://opencode.ai/docs/skills/#use-an-example https://opencode.ai/docs/commands/ You can also take a look at how other plugin providers approach this. This repo has several examples of agents, skills, and commands: https://github.com/jjmartres/opencode You can take those docs and that repo and feed it into an LLM if you're unsure of how to proceed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7065