Skip to content

feat: prefer globally installed agentic-ops CLI over bundled binary#13

Open
htekdev wants to merge 1 commit into
mainfrom
feature/cli-path-detection
Open

feat: prefer globally installed agentic-ops CLI over bundled binary#13
htekdev wants to merge 1 commit into
mainfrom
feature/cli-path-detection

Conversation

@htekdev
Copy link
Copy Markdown
Owner

@htekdev htekdev commented Feb 27, 2026

Summary

Updates hook scripts to prefer a globally-installed \�gentic-ops\ CLI over the bundled plugin binary.

Changes

  • Update \pre-tool-use.ps1\ to check PATH first
  • Update \pre-tool-use.sh\ to check PATH first
  • Fall back to bundled binary if not found

Priority Order

  1. \�gentic-ops\ in PATH (installed via
    pm install -g agentic-ops, \go install, etc.)
  2. Bundled binary in plugin's \�in/\ directory

This enables users to install the CLI globally and have hooks automatically use it, supporting:


  • pm install -g agentic-ops\
  • \go install github.com/htekdev/agentic-ops-cli/cmd/agentic-ops@latest\
  • Install scripts

- Update pre-tool-use.ps1 to check PATH for agentic-ops first
- Update pre-tool-use.sh to check PATH for agentic-ops first
- Fall back to bundled plugin binary if not found in PATH
- Enables users to install CLI globally via npm, go install, etc.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant