Product Station · Dev & ops
GitHub
GitHub hosts code: repositories, issues, and the pull requests a team reviews and merges.
Thanks to this station, any AI agent can also safely read code, open pull requests and comment on them. A pull request never starts from main, and a merge needs a human's review.
Opened to agents, through a station
Source
API operationsgithub-repos
readFilereadmappedopenPullRequestwritemappedcommentOnPullRequestwritemappedmergePullRequestwritemapped
Not mapped
pushToMainnot mapped
An operation the station does not map is out of every agent's reach.
Capabilities
MCPread-fileskillRead file.
Calls · readFile
open-pull-requestskillOpen pull request.
Calls · openPullRequest
comment-on-pull-requestskillComment on pull request.
Calls · commentOnPullRequest
merge-pull-requestskillMerge pull request.
Calls · mergePullRequest
propose-a-changeplaybookIn order: read-file, then open-pull-request, then comment-on-pull-request.
Steps · read-file, open-pull-request, comment-on-pull-request
Policies
Checked by the stationAt each access
- The contributor profile may call readFile, openPullRequest, commentOnPullRequest, mergePullRequest; nothing else.
contributor
At each action
- A pull request always starts from a branch, never from main. Otherwise refused.
branch-only - A merge needs a human's review.
human-for-merge
Scenario Replays
An agent works through the station. Simulated scenarios, no real data, no key required.
The configuration in detail
Everything the station does fits in this file. The replay above applies it, and a copy starts from it. The values are examples to adapt, not a recommendation.
station:
id: github
kind: product
policies:
- {policy: branch-only, at: submit}
- {policy: human-for-merge, at: submit}
global:
language: en
timezone: Europe/Paris
apis:
- id: github-repos
operations:
readFile: {access: read}
openPullRequest: {access: write, risk: medium}
commentOnPullRequest: {access: write, risk: low}
mergePullRequest: {access: write, risk: high}
# not listed, so not available to the agent:
# pushToMain
profiles:
contributor:
allow: [readFile, openPullRequest, commentOnPullRequest, mergePullRequest]
policies:
branch-only:
type: rule
when: "action == openPullRequest and branch == main"
effect: deny
reason: "A pull request always starts from a branch, never from main."
human-for-merge:
type: rule
when: "action == mergePullRequest"
effect: needs-human
reason: "A merge needs a human's review."
skills:
- {id: read-file, uses: readFile}
- {id: open-pull-request, uses: openPullRequest}
- {id: comment-on-pull-request, uses: commentOnPullRequest}
- {id: merge-pull-request, uses: mergePullRequest}
playbooks:
- id: propose-a-change
tasks: [read-file, open-pull-request, comment-on-pull-request]