Introduction¶
When developing or using autonomous AI coding agents in DeepSeek Harness, agents often need to interact with code repositories in complex ways. Directly operating Gitea or Forgejo through command-line interfaces or APIs can easily lead to repository corruption or leakage of sensitive credentials.
The dsh-gitea plugin, as an extension for DeepSeek Harness, addresses this problem. It encapsulates Gitea and Forgejo operations as structured tools, allowing agents to securely manage Issues, Pull Requests, CI workflows, releases, and Git Worktrees through the DSH interface.
Core Features¶
This plugin provides 20+ tools, covering the full workflow from issue management to code repository operations.
Issue Management¶
It covers issue creation, listing, retrieval, commenting, updating, closing, searching, and assignment.
* gitea_issue_create
* gitea_issue_list
* gitea_issue_get
* gitea_issue_comment
* gitea_issue_comments
* gitea_issue_comment_delete
* gitea_issue_update
* gitea_issue_close
* gitea_issue_search
* gitea_issue_set_assignee
Pull Request Management¶
It supports PR creation, listing, detail retrieval, commenting, merging, and rebasing.
* gitea_pr_create
* gitea_pr_list
* gitea_pr_get
* gitea_pr_comment
* gitea_pr_merge
* gitea_pr_rebase
Git Repository Operations¶
It provides management for branches, tags, Git graphs, and worktrees.
* gitea_branches
* gitea_tags
* gitea_git_graph
* gitea_worktree_list
* gitea_worktree_add
* gitea_worktree_use
* gitea_worktree_remove
Other Features¶
- Organizations and Teams:
gitea_org - Wiki:
gitea_wiki - CI/CD:
gitea_ci - Labels and Milestones:
gitea_labels,gitea_milestones - Releases and Webhooks:
gitea_releases,gitea_webhooks - Issue Templates:
gitea_issue_templates
Additional Capabilities¶
In addition to the toolkit, this plugin provides the following features for DSH:
* Real-time Status: Displays a real-time Git status chip in the Web UI chat header.
* Workspace Isolation: Supports creating isolated task workspaces using Git Worktrees to prevent the main repository from being polluted.
Notes¶
- Operation Confirmation: For safety, the following operations require the
confirm: trueparameter by default:- Delete operations (such as deleting labels, milestones, or webhooks)
- CI reruns
- PR merging and rebasing
- Worktree removal
- Issue comment deletion
- Permissions: The plugin runs with the permissions of the current DSH process. Please ensure that you review the source code and license before installation.
- Dependencies: The plugin depends on the DeepSeek Harness environment.
Summary¶
dsh-gitea is an enterprise-grade integration toolkit for Gitea and Forgejo. Through 20+ structured tools, it provides agents with seamless Issue and PR review workflows, while ensuring the safety and isolation of repository operations through Worktrees and confirmation guards.