Skip to content

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 <[email protected]>
belikh pushed a commit to belikh/agent-zero that referenced this pull request Jan 23, 2026
TerminallyLazy and others added 2 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 <[email protected]>
- 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.
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