Skip to content

Add agent-aware help text and --list-labels flag#51

Open
jehiah wants to merge 5 commits intomasterfrom
agent_instructions_51
Open

Add agent-aware help text and --list-labels flag#51
jehiah wants to merge 5 commits intomasterfrom
agent_instructions_51

Conversation

@jehiah
Copy link
Copy Markdown
Owner

@jehiah jehiah commented May 4, 2026

Improves the CLI experience for AI agents and users by expanding --help output and adding a --list-labels flag.

Changes:

  • --help now always shows a summary of what git-open-pull does and which account/repo/branch code will be pushed to (loaded from settings before flag parsing)
  • When running as an AI agent (agentdetection.IsAgent()), --help also shows a hint to run --list-labels first before passing --labels
  • New --list-labels flag lists all repository labels and exits, reusing the existing Labels() helper

Adds github.com/jehiah/agentdetection as a direct dependency.

@jehiah jehiah self-assigned this May 4, 2026
@jehiah jehiah added the feature label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant