Skip to content

feat: added goose bot for automated code reviews - #9341

Closed
Abhijay007 wants to merge 25 commits into
aaif-goose:mainfrom
Abhijay007:feat/goose-copilot
Closed

Abhijay007 wants to merge 25 commits into
aaif-goose:mainfrom
Abhijay007:feat/goose-copilot

Conversation

@Abhijay007

@Abhijay007 Abhijay007 commented May 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Goose Bot is here : goose bot let you run automated reviews on you github PRs and issues and beyond, currently available for github will get extend to gitlab, slack, linear, jira and many more

What changed

  • Switchboard (services/goose-bot-switchboard/): webhook handling, install registry, routing prefs cache, OAuth exchange, tunnel proxy to goosed. Deploy config in wrangler.toml.example (secrets via wrangler secret put; KV namespace id in gitignored wrangler.toml).
  • Core (crates/goose/src/goose-bot/): prefs schema, review/comment runners, GitHub client, switchboard client, analytics/repos helpers.
  • Server (crates/goose-server): thin /copilot/* routes; lapstone tunnel limited to /copilot/review, /copilot/comment, /copilot/status with constant-time secret compare.
  • Desktop: tabbed Copilot settings (General, Code review, Analytics, Connectors), OAuth connect/disconnect, debounced prefs sync, experimental banner, i18n (en + zh-CN).

Behavior / flow

  • Auto-review on PR open (opt-in, default off) and manual @aaif-goose-bot (created a github account for this so that app can listen) review
  • Issue/PR comment replies with optional commit+push when allowed
  • Review output styles (inline / summary / both) with summary fallback when GitHub rejects inline
  • Trigger permission + allowlist; routing prefs synced to switchboard KV
  • Register flow verifies tunnel reachability before writing KV

Testing

Ran:

- cargo test -p goose --lib copilot::
- cargo test -p goose --test goose_bot_integration_test
- cargo test -p goose-server --test goose_bot_routes_test
- cargo test -p goose-server lapstone::tests
- cargo test -p goose config::signup_goose_bot::tests
- cd services/copilot-switchboard && pnpm test

Also tested :

  • goose-self-test.yaml optional copilot prefs phase (when goosed + GOOSE_BOT_SWITCHBOARD_URL are set)
  • Manual: Desktop Connect → set prefs → open test PR → @aaif-goose-bot review / mention reply → disconnect

Screenshots/Demos (for UX changes) :

  • Added a new code review tab and in that four tabs named, general, cofigure, analytics and connectors, the general tab is for all the general instructions (more things will be added to this with follow up PRs)
image
  • configure tab for customizing the copilot behaviour
image
  • Analytics tab for general analytics and info (very early rn will update with follow up PRs and feedback)
image
  • Connectors tab for connecting your apps and managing them
image

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a673718260

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/copilot/comment.rs Resolved
@Abhijay007
Abhijay007 force-pushed the feat/goose-copilot branch from a673718 to 317e853 Compare May 20, 2026 12:15

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 317e853563

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/copilot/comment.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 100999e7e1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/goose_bot/comment.rs Resolved
Comment thread crates/goose/src/copilot/comment.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6a261c824f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@Abhijay007 Abhijay007 added the needs_human label to set when a robot looks at a PR and can't handle it label May 20, 2026
@Abhijay007
Abhijay007 force-pushed the feat/goose-copilot branch from 6a261c8 to e31d67f Compare May 22, 2026 19:15

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e31d67f72c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/copilot/comment.rs Resolved
@Abhijay007
Abhijay007 force-pushed the feat/goose-copilot branch 2 times, most recently from 7b4abed to ca54377 Compare May 25, 2026 17:56

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b4abed552

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/copilot/review_run.rs Resolved
@Abhijay007
Abhijay007 force-pushed the feat/goose-copilot branch from ca54377 to 6d90e13 Compare May 26, 2026 17:16
@Abhijay007
Abhijay007 requested a review from angiejones May 26, 2026 17:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8c4c223d50

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/copilot/switchboard.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 124f05934e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/copilot/switchboard.rs Resolved
@Abhijay007
Abhijay007 force-pushed the feat/goose-copilot branch from 124f059 to cb8e109 Compare May 27, 2026 19:56

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cb8e109207

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0844c1a277

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@Abhijay007
Abhijay007 force-pushed the feat/goose-copilot branch 2 times, most recently from 7eefb57 to 0239f7e Compare May 30, 2026 15:44

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0239f7e6b0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e34f8c51c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/copilot/review.rs Resolved
Comment thread crates/goose/src/copilot/review.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 72e415568a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/goose/src/copilot/prefs.rs Resolved
Abhijay007 added 22 commits June 5, 2026 02:39
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
…ssential comments

Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
… library modules

Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
…ime secret compare

Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
…leUnregister + listings

Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
…kflow, self-test phase

Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
…bility

Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
@Abhijay007
Abhijay007 force-pushed the feat/goose-copilot branch from 91aa94e to e148b88 Compare June 4, 2026 21:48

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e148b883f7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

}

const userToken = tokenBody.access_token;
const installRes = await fetch('https://api.github.com/user/installations?per_page=100', {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Page through all user installations

When a GitHub user has access to more than 100 App installations, this single per_page=100 request only inspects the first page before deciding whether Goose Bot is installed. If the matching installation is on a later page, setup incorrectly returns the “not installed” 409 (or misses additional matches), so users in many orgs/accounts cannot connect reliably; follow GitHub pagination until no next page before filtering by app_id.

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had recent activity for 23 days.

What happens next?

  • If no further activity occurs, this PR will be automatically closed in 7 days
  • To keep this PR active, simply add a comment, push new commits, or add the keep-open label
  • If you believe this PR was marked as stale in error, please comment and we'll review it

Thank you for your contribution! 🚀

@github-actions github-actions Bot added the stale label Jul 1, 2026
@Abhijay007 Abhijay007 removed the stale label Jul 5, 2026
@lifeizhou-ap

Copy link
Copy Markdown
Collaborator

Close it for now as goose desktop is now reference client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs_human label to set when a robot looks at a PR and can't handle it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants