Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oc-askme

OpenCode plugin that registers an /askme [question] command. Use it to manually insert a Question/Ask tool call into the conversation, then answer the question yourself to add context — saving copilot quota.

Install

Add to your opencode.json:

{
  "plugin": ["oc-askme"],
  "command": {
    "askme": {
      "description": "Ask yourself a question to add context",
      "template": "$ARGUMENTS"
    }
  }
}

Usage

In an OpenCode session, type:

/askme What database schema should I use?

This tells the AI to call the built-in question tool with your question. The question appears in the UI for you to answer. Your answer is added to the conversation context — without the AI having to generate the question itself.

Why?

When using copilot-based providers, every AI-generated token costs quota. By using /askme, you provide the question yourself, so the AI only needs to relay it via the question tool. This keeps token usage minimal while still allowing you to inject context into the conversation.

How It Works

  1. You type /askme [your question]
  2. The plugin intercepts the command via the command.execute.before hook
  3. It adds an instruction for the AI to call the built-in question tool with your exact question
  4. The AI calls the question tool (minimal token usage)
  5. You see the question in the OpenCode UI and type your answer
  6. Your answer is recorded in the conversation context
  7. The AI can use your answer in subsequent interactions

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages