gh-discussions: GitHub Discussions as native Tools (search / create / comment, approval-gated) #4800
MauricioPerera
started this conversation in
Show Your Plugins!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Repo: https://github.com/MauricioPerera/gh-discussions
gh-discussionsis a composition plugin that exposes GitHub Discussions as native model Tools:gh_discussion_search,gh_discussion_create,gh_discussion_comment. It's a thin wrapper overgh api graphql(Discussions has no first-classghsubcommand).I built it after filing #4747, #4796, #4797 and #4799 by hand with
gh api graphqlall session — wanted the agent itself to be able to search/report/discuss without me shelling out each time.Design note that might be useful to others building plugins with side effects:
gh_discussion_createandgh_discussion_commentpublish publicly, so both go throughctx.approval.request()(@deepseek-ai/dsh-user-approval) before executing — a real human confirmation, not a sandbox-mode escalation likekdd-gatesuses. Verified fail-closed: run under theheadlessprofile (no answerer configured),gh_discussion_createcorrectly returnedunavailableand published nothing.gh_discussion_searchis read-only and skips the gate.MIT licensed, README has the full tool/parameter reference and the design-decisions section.
All reactions