mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-25 07:56:03 -05:00
Feature Request: AI-Powered Code Agent for Gitea #14521
Closed
opened 2025-11-02 11:15:09 -06:00 by GiteaMirror
·
4 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2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v1.4.0-rc1
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
No Label
type/proposal
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#14521
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ga-it on GitHub (May 23, 2025).
Feature Description
Summary
Implement an AI-powered code agent for Gitea that provides interactive code assistance, automated code reviews, and autonomous code implementation capabilities directly within pull requests and issues. This implementation would leverage the open-source OpenAI Codex CLI as a foundation, adapting its proven architecture for seamless Gitea integration.
Problem Statement
Currently, Gitea users lack an integrated AI assistant that can:
This feature gap makes it harder for teams to leverage AI capabilities for code quality improvement, faster development cycles, and automated code reviews, especially for open-source projects and smaller teams that rely on Gitea.
Proposed Solution
Implementation Strategy: Fork and Adapt OpenAI Codex CLI
We propose forking the OpenAI Codex CLI as the foundation for Gitea's AI assistant. This approach offers several advantages:
Adaptation Plan
Core Integration Module (
gitea-codex-bridge)Gitea Actions Wrapper
Enhanced Features for Gitea
Core Features (Building on Codex CLI)
Interactive Code Assistant (Codex CLI Foundation)
AGENTS.mdfilesAutomated Code Review (Enhanced)
Autonomous Code Implementation (Codex CLI + Jules concepts)
Advanced Code Generation (Native Codex Features)
Security and Sandboxing (Codex CLI's Robust Model)
Technical Architecture
Gitea Actions Integration
Configuration Management (Codex CLI Compatible)
~/.codex/config.yamlstructureAGENTS.mdfiles for project-specific instructionsProvider Support (Codex CLI's Extensive List)
Implementation Phases
Phase 1: Core Fork and Integration (Months 1-2)
gitea-codex-bridgemodulePhase 2: Feature Parity (Months 3-4)
Phase 3: Enhanced Capabilities (Months 5-6)
Phase 4: Ecosystem Integration (Months 7-8)
Key Advantages of the Codex CLI Approach
Immediate Feature Set
Development Efficiency
Community Benefits
User Experience
Migration and Compatibility
For Existing Codex Users
For New Users
Security Considerations (Inherited from Codex)
Sandboxing (Codex's Robust Implementation)
Approval Workflows (Codex's Three-Tier System)
Authentication (Extended for Gitea)
Success Metrics
Technical Considerations
Codex CLI Integration Points
Core Modifications
Maintained Compatibility
Gitea-Specific Extensions
Community Impact
This feature would:
References
Conclusion
By building on the OpenAI Codex CLI's proven foundation, Gitea can rapidly implement a world-class AI assistant while maintaining its commitment to open-source values and self-hosted deployments. This approach minimizes development risk, accelerates time-to-market, and ensures compatibility with the broader AI development ecosystem.
The Codex CLI's architecture, with its robust sandboxing, multi-provider support, and extensible design, provides exactly the foundation needed for a production-ready Gitea AI assistant. Rather than reinventing the wheel, we can focus on creating the best possible integration with Gitea's unique features and workflows.
Note: This proposal leverages the OpenAI Codex CLI's mature architecture while adding Gitea-specific enhancements. The implementation would maintain compatibility with Codex's ecosystem while providing a seamless experience for Gitea users. The Apache-2.0 license of Codex CLI allows for this adaptation while contributing improvements back to the original project.
@techknowlogick commented on GitHub (May 23, 2025):
Thank you for this issue. I'm hesitant to build this directly into the app, for many reasons, but one of the primary ones is once something is merged, it requires continued maintenance. Regardless, it sounds like this can be done without any changes to Gitea itself, as action workflows aren't directly inside of the gitea repo, and a fork of codex would still be outside of this repo. With that in mind, I would recommend that you could fork codex and add in the integration with the Gitea API (there is an MCP provider already), and create an action to listen for events to trigger the workflow, and then that way it would achieve your preferred end goal.
@ga-it commented on GitHub (May 23, 2025):
Hi @techknowlogick
Thanks for all the amazing work you guys do and the awesome Gitea.
I completely understand being cautious of including new functionality into the Gitea core given maintenance requirements.
However, I think we are in a "moment" - Github spoke at "Code with Claude* yesterday and unveiled an entire new agentic coding architecture for github:
https://www.youtube.com/live/EvtPBaaykdo?si=5sGlKwtRkBlB1Vwv
This takes Copilot and provides front end integration for triggering and showing agent actions.
Codex, Jules and Claude 4 have all announced github integration in the last week.
If you are of the school that believes AI agents will act as developers in the future, then it would seem to make sense that capability to manage this be placed front and Centre in the GUI.
The Claude with Code excalidraw demo was jaw dropping.
I agree it can work via api, MCP and in the background and maybe that is the place to start. But I do think this is a seismic shift that Gitea would be even better for embracing.
@TheFox0x7 commented on GitHub (May 23, 2025):
I'm against implementing any of that in Gitea at the moment. There already are people that are annoyed by github constant pushing of copilot everywhere hoping it might stick. Quite frankly I don't find github's built-in copilot integration as something worth mirroring.
Let's leave this to third party tools. I'd much rather add something to the Gitea instance separately and let it skim through my code than have an instance wide integration do whatever it wants. It's also less lock-in.
Did you generate the original feature request using LLMs? Because it sounds like it to me.
@ga-it commented on GitHub (May 23, 2025):
@TheFox0x7 never mind. Your last paragraph said enough