chaoss / chaoss/disclosure

feat: Expand AI agent branch prefixes and co-author email detection for Roo Code, Windsurf, and OpenHands

Open Beginner friendly
#93 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
26
Forks
13
Avg merge
6d 18h
Merged PRs (30d)
3

Description

### Problem Statement
Currently, `disclosure` detects AI tool involvement from branch naming conventions (`KnownAgentBranchPrefixes`), committer bot emails (`KnownAgentCommitters`), and co-author trailer emails (`KnownCoAuthorEmails`).

However, several widely used AI coding agents and IDE tools are missing from these maps:
1. **Roo Code (Roo Cline)**: Uses branch prefixes `roo/` and `roo-code/`.
2. **Windsurf (Codeium)**: Uses branch prefix `windsurf/` and co-author email `noreply@windsurf.com`.
3. **OpenHands (OpenDevin)**: Uses branch prefix `openhands/` and `swe-agent/`.
4. **Continue.dev**: Uses co-author email `noreply@continue.dev`.

### Proposed Solution
1. Add `roo/`, `roo-code/`, `windsurf/`, `openhands/`, and `swe-agent/` to `KnownAgentBranchPrefixes` in `detection/constants.go`.
2. Add `noreply@continue.dev` and `noreply@windsurf.com` to `KnownCoAuthorEmails`.
3. Add unit test cases in `branchname_test.go` and `trailer_test.go` to maintain high test coverage.

Contributor guide

Open the contributing guide

Research direction

Start in detection/constants.go to review KnownAgentBranchPrefixes and KnownCoAuthorEmails, then read branchname_test.go and trailer_test.go for existing table-driven cases. Run the relevant detection tests first; done means the listed branch prefixes and co-author emails are detected and the new cases pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.