Coding agents
Herd + GitHub Copilot CLI
Record Copilot CLI tool calls through a policy hook.
What it is
A policy file placed on each device registers a hook that sends each Copilot CLI tool call to Herd for your rules to judge.
Why it exists
A command-line agent runs commands on your developers’ machines, and a hook is the only place to see them.
What it means for you
Tool calls are recorded, and a rule you switch to enforcing can deny one.
- Access
- Inbound (a policy hook sends each tool call to Herd for checking)
- Connects with
- Hook token (HERD_HOOK_TOKEN)
How to connect GitHub Copilot CLI
The short version. The setup guide has every screen and setting.
Before you start
- Agent oversight turned on for your organization (available on request)
- Ability to place files on each device, owned by root and not writable by group or world on macOS and Linux
- Node 18 or later on the hook’s PATH if you turn Fail closed on
Download the Copilot CLI bundle
In AI Insights → Setup, download the bundle. Its files do not carry your token.
Place the policy file
Put it in /etc/github-copilot/policy.d/ on Linux and macOS, or C:\ProgramData\GitHub\Copilot\policy.d\ on Windows.
Deliver the token
Decide how HERD_HOOK_TOKEN reaches the Copilot CLI process on each device.
Check one device first
Run a command in Copilot CLI and check that a session shows in Herd. A deny is best effort because GitHub documents hook timeouts as failing open.
The full walkthrough is in the GitHub Copilot CLI setup guide.
More Coding agents integrations
Herd connects to the rest of your stack too.
Join the Herd
See Herd working with GitHub Copilot CLI.
Bring your stack to a demo. We’ll connect it and show you what Herd does with it.