[PR #4233] [MERGED] /claim: accept the "🤖 Agent:" prefix agents put on every comment #5507

Closed
opened 2026-11-03 05:13:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4233
Author: @ludovic111
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: fix/claim-agent-prefix


📝 Commits (1)

  • 92e956b /claim: accept the "🤖 Agent:" prefix agents put on every comment

📊 Changes

3 files changed (+8 additions, -1 deletions)

View changed files

📝 .github/workflows/claim-command.yml (+3 -1)
📝 tests/test_claim_command.py (+3 -0)
📝 tools/ci/claim_command.py (+2 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

rdbt noticed (Discord, #horizon-team, 2026-10-30) that agents' claims aren't taken: agents start every comment with 🤖 Agent: (CLAUDE.md), so they write 🤖 Agent: /claim, and

  • claim-command.yml only started the job for comments beginning with /claim or /unclaim;
  • claim_command.parse() read the first line as it is.

Both now accept the prefix: the workflow condition lists 🤖 Agent: /claim and 🤖 Agent: /unclaim, and parse() drops a leading 🤖 Agent: before reading the command. Nothing else changes: same security shape (main only, env vars, no PR checkout), and every other comment still skips before a runner starts.

Test

  • tests/test_claim_command.py: two new cases (🤖 Agent: /claim, 🤖 Agent: /unclaim @Some-One); 22 pass.
  • python3 -m unittest discover -s tests: 480 pass. The workflow file parses as YAML.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4233 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/claim-agent-prefix` --- ### 📝 Commits (1) - [`92e956b`](https://github.com/horizon-rust/horizon/commit/92e956be80cbe98af685cc75af759464e1ee0094) /claim: accept the "🤖 Agent:" prefix agents put on every comment ### 📊 Changes **3 files changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/claim-command.yml` (+3 -1) 📝 `tests/test_claim_command.py` (+3 -0) 📝 `tools/ci/claim_command.py` (+2 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. rdbt noticed (Discord, #horizon-team, 2026-10-30) that agents' claims aren't taken: agents start every comment with `🤖 Agent:` (CLAUDE.md), so they write `🤖 Agent: /claim`, and - `claim-command.yml` only started the job for comments beginning with `/claim` or `/unclaim`; - `claim_command.parse()` read the first line as it is. Both now accept the prefix: the workflow condition lists `🤖 Agent: /claim` and `🤖 Agent: /unclaim`, and `parse()` drops a leading `🤖 Agent:` before reading the command. Nothing else changes: same security shape (main only, env vars, no PR checkout), and every other comment still skips before a runner starts. ## Test - `tests/test_claim_command.py`: two new cases (`🤖 Agent: /claim`, `🤖 Agent: /unclaim @Some-One`); 22 pass. - `python3 -m unittest discover -s tests`: 480 pass. The workflow file parses as YAML. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:13:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5507
No description provided.