codebot help command #4
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?
Feature Request: @codebot help Command
Summary
Add a
@codebot helpcommand that displays all available commands with descriptions and usage examples, making bot capabilities immediately discoverable to users.What problem does this solve?
Current Problem:
Users have no way to discover what commands are available without reading external documentation. New users don't know what the bot can do, leading to:
User Pain:
User story / Use case
As a developer new to the repository,
I want to see all available @codebot commands with examples,
so that I can quickly understand how to interact with the bot without leaving GitHub/Gitea or reading external documentation.
Example scenario:
@codebot helpin a commentProposed solution
Implementation
Add a
helpcommand handler toIssueAgentthat:config.yml(interaction.commands)upsert_comment()methodExample Output
@codebot triage
@codebot how does authentication work in this project?
@codebot explain
Files to Modify
tools/ai-review/config.ymltools/ai-review/agents/issue_agent.pyIssue Triage & Analysis:
@codebot triage- Full issue triage with auto-labeling and priority assignment@codebot summarize- Generate 2-3 sentence summary@codebot explain- Detailed explanation of the issue@codebot suggest- Solution suggestions or next stepsInteractive Chat:
@codebot [question]- Ask questions about the codebaseUtility:
@codebot help- Show this messageExamples:
"""
return help_text
def _handle_command(self, command: str, owner: str, repo: str,
issue_index: int, full_comment: str) -> str:
"""Route command to appropriate handler."""
if command == "help":
return self._command_help(owner, repo, issue_index)
elif command == "triage":
return self._command_triage(owner, repo, issue_index)
# ... existing command handlers
Example 2: Help in PR comment
Example 3: Integration with existing commands
Implementation Plan
Phase 1: Core Implementation (1 hour)
helptoconfig.ymlcommands list_command_help()method inIssueAgent_handle_command()to route to help handlerPhase 2: Testing & Documentation (30 minutes)
Phase 3: Deployment (30 minutes)
Dependencies
None - This is a standalone feature with no external dependencies.
Related Issues/PRs
@codebot setup-labels(Milestone 3)Success Metrics
Week 1 after deployment:
Month 1 after deployment:
Checklist
Priority: ⭐ HIGHEST - Quick win for immediate UX improvement
Milestone: Milestone 2 - UX & Discoverability
Estimated Effort: 1-2 hours
Value: HIGH
@codebot could you look at the pr from this issue and let me know if it looks good?
not yet in main