feat(ai): Built-in Claude AI Assistant (mokogitea-claude[bot]) #359
Reference in New Issue
Block 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?
Summary
Build Claude AI directly into MokoGitea as a first-class platform feature — not a plugin, not an external service, not a workflow hack. It ships with the fork the same way mokogitea-actions[bot] ships with Actions support.
This Is a Built-In Feature
Like Gitea Actions is built into Gitea, Claude AI is built into MokoGitea:
Feature Set
PR Smart Comments (automatic)
Interactive Chat (@mention)
Coding Agent (assign/label)
Code Search / Explain
Architecture (Internal to MokoGitea)
This runs inside the MokoGitea process — no sidecar, no separate container, no external webhook receiver. The AI service is just another internal service like notifications or actions.
Settings Hierarchy
Site Administration > AI
Org Settings > AI Integration
Repo Settings > AI Assistant
Security Model
Permission Tiers
Database Schema
New tables:
Sub-Issues
Implementation Order
References
Sub-task: Smart PR Comments
Requirements
Comment Types
Prototype
Gitea Actions workflow in progress - see dev branch when ready.
Sub-issues
mokogitea[claude]bot user account (permissions, auto-provisioning, bot badge)Feature: Embedded Claude AI Assistant (Copilot-style integration)to feat(ai): Built-in Claude AI Assistant (mokogitea-claude[bot])Correction: Repo-Level AI Config
Repo-level AI instructions live in
.mokogitea/CLAUDE.md— not a separate settings file. This is the same file Claude Code already reads, placed in the.mokogitea/directory.The built-in bot and developers running Claude Code locally both read the same file. Single source of truth for project conventions, review rules, and AI behavior.
UI settings (enable/disable, strictness, ignore patterns) still live in the DB via repo settings page — but the actual instructions to the AI come from
.mokogitea/CLAUDE.md.