kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

CLI / hooks / test

kosa8 hooks test

Send sample tool calls through the installed hook and show kosa8's answers

Usage#

kosa8 hooks test [claude-code|cursor|codex|gemini|copilot]

Runs the hook command exactly as the agent's settings name it, with sample calls on stdin — ls (allowed), a force push (asks you), curl piped to sh (refused), reading a credentials file — and shows each answer. The calls are recorded in the audit log under the session kosa8-hooks-test; nothing is run.

Options#

FlagTypeWhat it doesDefault
--projectstringthe project folder to test from (default: current directory)—

Example#

  kosa8 hooks test
  kosa8 hooks test claude-code

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · Zero Trust cybersecurity infrastructure for AI agents · Local models served by llamay · Agent gateway: MAQPNA