New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

hookflow-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

hookflow-cli

Agent hook workflow engine - run GitHub Actions-like workflows triggered by Copilot hooks

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

hookflow

Local workflow engine for agentic DevOps - run GitHub Actions-like workflows triggered by Copilot agent hooks.

Installation

npm install -g hookflow

Or with other package managers:

# Go
go install github.com/htekdev/hookflow/cmd/hookflow@latest

# Direct download
curl -sSL https://raw.githubusercontent.com/htekdev/hookflow/main/scripts/install.sh | sh

Quick Start

# Initialize hookflow in your repo
cd your-project
hookflow init

# Create a workflow using AI
hookflow create "block edits to .env files"

# Test a workflow with a mock event
hookflow test --event commit --workflow lint.yml

# List workflows
hookflow discover

What is hookflow?

hookflow lets you run "shift-left" DevOps checks during AI agent editing sessions. Instead of waiting for CI to catch issues on pull requests, you can:

  • Block dangerous edits in real-time (e.g., .env file modifications)
  • Lint code as the agent writes it
  • Validate configurations before commit
  • Run security scans before code leaves the local machine

Commands

CommandDescription
initInitialize hookflow for a repository
create <prompt>Create a workflow using AI (Copilot SDK)
shift leftAnalyze CI workflows and suggest hooks
shift rightGenerate GitHub Actions from hooks
discoverList workflows in the current repository
validateValidate workflow YAML files
testTest a workflow with a mock event
runRun workflows (used by hooks)
versionShow version information

Workflow Syntax

Workflows use a GitHub Actions-like syntax:

name: Block .env edits
description: Prevent modifications to environment files

on:
  file:
    paths:
      - '**/.env*'
      - '**/secrets/**'

steps:
  - name: Block sensitive file edit
    run: |
      echo "Blocked: Cannot modify sensitive files"
      exit 1

Learn More

  • GitHub Repository
  • Workflow Schema Documentation

License

MIT

Keywords

copilot

FAQs

Package last updated on 28 Feb 2026

Related posts