Skip to content

refactor: Enable built-in question tool for agents to preserve session continuity#302

Open
shettydev wants to merge 1 commit into
darrenhinde:mainfrom
shettydev:main
Open

refactor: Enable built-in question tool for agents to preserve session continuity#302
shettydev wants to merge 1 commit into
darrenhinde:mainfrom
shettydev:main

Conversation

@shettydev

@shettydev shettydev commented Apr 3, 2026

Copy link
Copy Markdown

Summary

Updates agent permission configurations (openagent.md and opencoder.md) to add question: "allow", enabling agents to use the built-in OpenCode question functionality to ask clarifying questions.

Why This Matters

  • Session continuity: Instead of ending a conversation with a question (which terminates the session), agents can now ask questions inline, keeping the session intact for follow-up answers.
  • Cost savings for metered LLM users: This is especially beneficial for users on GitHub Copilot, or any other LLM provider where each request is counted. Without this change, a session ending with a question forces the user to consume another request just to answer it. With this change, the question and answer happen within the same session — no extra request needed.

Type of Change

  • Refactoring

Changes

  • .opencode/agent/core/openagent.md — Added question: "allow" permission
  • .opencode/agent/core/opencoder.md — Added question: "allow" permission

Checklist


Note: Registry validation and smoke tests will run automatically.

@shettydev shettydev changed the title refactor: Update agent permissions to allow questions refactor: Enable built-in question tool for agents to preserve session continuity Apr 3, 2026
@shettydev shettydev marked this pull request as ready for review April 3, 2026 13:42
MomePP added a commit to MomePP/OpenAgentsControl that referenced this pull request Apr 28, 2026
User-facing changes since 1.0.3:
- fix(context-scout): empty-state response when no context bundle is
  installed (cherry-pick of upstream issue darrenhinde#310 spirit)
- refactor: agent permissions allow `question` tool (upstream PR darrenhinde#302)
- fix: update.sh skips node_modules in markdown and shell scans
  (upstream PR darrenhinde#309)

Sync marketplace.json plugin entry to match plugin.json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant