HL-Project-Id header, exactly as with the other evaluation APIs.
Supported Coding Agents
How It Works
- The coding agent’s hook system calls Agent Harness Security at each gate point, like prompt submission and tool use.
- Agent Harness Security analyzes the content, evaluates your project’s policy, and decides the outcome:
NONE,DETECT,REDACT, orBLOCK. - The decision is returned in the format the agent understands — the agent blocks the action, substitutes redacted content, or proceeds.
- Every interaction is recorded and visible in the console, including observe-only gate points — so you always have visibility, even where enforcement isn’t possible.
Not every gate point can enforce every action. Where a gate cannot apply redaction, a redact decision is escalated to block rather than letting sensitive content through. Where a gate fires after the action already happened (for example, after a shell command completed), findings are recorded for visibility without interrupting the agent. Each recorded evaluation includes a protection mode so audit data always shows whether the policy was applied exactly as configured (
AS_CONFIGURED), strengthened (INTEGRATION_LIMITED_PROMOTE), or observed only (INTEGRATION_LIMITED_OBSERVE).Enforcement by AI Agent
The following tables provide details about what you can enforce, by AI agent.Claude Code
Endpoints (allPOST, base path /detection/v2/claude-code/): user-prompt-submit, pre-tool-use, post-tool-use, post-tool-use-failure, stop, subagent-stop, pre-compact.

