Skip to content

feat(github): add GitHub OAuth integration with @repo mentions#918

Open
TerminallyLazy wants to merge 6 commits intoagent0ai:developmentfrom
TerminallyLazy:feat-github-test
Open

feat(github): add GitHub OAuth integration with @repo mentions#918
TerminallyLazy wants to merge 6 commits intoagent0ai:developmentfrom
TerminallyLazy:feat-github-test

Conversation

@TerminallyLazy
Copy link
Contributor

Add GitHub integration to Agent Zero with two main features:

GitHub OAuth Integration

  • Connect to GitHub via Settings > GitHub tab
  • OAuth flow with secure token storage
  • View connected user profile and disconnect option
  • Repository browser with file/folder navigation

@repo Mentions in Chat

  • Type @ in chat input to open autocomplete dropdown
  • Search/filter through your GitHub repositories
  • Arrow keys cycle through list, Enter to select
  • Selected repos appear as removable chips above input
  • Agent receives repo context (metadata + file tree) in prompt
  • Agent can use github tool to read specific files from mentioned repos

Files added:

  • webui/components/settings/github/ - Settings UI components
  • webui/components/chat/input/repo-mention-*.html/js - Mention UI
  • python/api/github_*.py - Backend API handlers
  • python/extensions/message_loop_prompts_after/_8*.py - Context injection
  • python/tools/github.py - Agent tool for GitHub operations
  • prompts/agent..github.md - Prompt templates

@TerminallyLazy TerminallyLazy force-pushed the feat-github-test branch 14 times, most recently from 8fb15c0 to fef80be Compare January 17, 2026 21:11
Add GitHub integration to Agent Zero with two main features:

## GitHub OAuth Integration
- Connect to GitHub via Settings > GitHub tab
- OAuth flow with secure token storage
- View connected user profile and disconnect option
- Repository browser with file/folder navigation

## @repo Mentions in Chat
- Type @ in chat input to open autocomplete dropdown
- Search/filter through your GitHub repositories
- Arrow keys cycle through list, Enter to select
- Selected repos appear as removable chips above input
- Agent receives repo context (metadata + file tree) in prompt
- Agent can use `github` tool to read specific files from mentioned repos

Files added:
- webui/components/settings/github/ - Settings UI components
- webui/components/chat/input/repo-mention-*.html/js - Mention UI
- python/api/github_*.py - Backend API handlers
- python/extensions/message_loop_prompts_after/_8*.py - Context injection
- python/tools/github.py - Agent tool for GitHub operations
- prompts/agent.*.github*.md - Prompt templates

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
belikh pushed a commit to belikh/agent-zero that referenced this pull request Jan 23, 2026
TerminallyLazy and others added 5 commits January 26, 2026 04:56
Merge branch with UI improvements including:
- Process group and step detail modal
- Chat navigation store
- Action buttons styling
- Image viewer updates
- Various Python backend refinements

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Updated .gitignore to include new directories for agent and claude.
- Changed default redirect URI in GithubOauth to use port 80.
- Added GitHub client ID and secret keys to dotenv management.
- Enhanced settings structure to accommodate GitHub OAuth credentials.
- Implemented UI for GitHub OAuth configuration in the settings page, including input fields for Client ID and Client Secret.
Resolve 4 merge conflicts:
- python/api/message.py: keep repo_mentions parsing + upstream's mq helper and usr/uploads path
- webui/components/chat/input/chat-bar-input.html: merge repo mention components with upstream's x-model/placeholder bindings
- webui/components/settings/settings.html: adopt upstream's $store.settings structure with Skills tab, add GitHub tab
- webui/index.js: use upstream's inputStore.reset() + clear repo mentions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extends the existing @repo mention system with @file and @chat mentions.
Design covers categorized dropdown UI, smart chat truncation, workspace/
GitHub/upload file sources, and backward-compatible migration plan.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…nents

This update refactors the mention system to consolidate @repo mentions into a more generalized @mentions structure, enhancing compatibility and simplifying the codebase. Legacy components related to repo mentions have been removed, and the UI has been updated to reflect these changes. Additionally, the GitHub OAuth flow has been improved to utilize device flow, streamlining the authentication process.

- Replaced repo_mentions with a unified mentions list in UserMessage and related classes.
- Updated message processing to handle mentions more effectively.
- Removed deprecated repo mention components from the web UI.
- Enhanced GitHub OAuth handling with device flow for better user experience.
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

Comments