Documentation
¶
Overview ¶
Package aiagents is the root of the AI coding agent hooks domain.
Subpackages own hook install/uninstall flows, the hidden runtime invoked by agents on each hook event, policy evaluation, telemetry upload, and the per-agent adapters (Claude Code, Codex). The policy evaluator currently runs audit-mode only and never returns a block decision to the agent.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package adapter defines the contract every per-agent integration (Claude Code, Codex) implements.
|
Package adapter defines the contract every per-agent integration (Claude Code, Codex) implements. |
|
claudecode
Package claudecode implements the Adapter interface for Claude Code.
|
Package claudecode implements the Adapter interface for Claude Code. |
|
codex
Package codex implements the Adapter interface for OpenAI Codex.
|
Package codex implements the Adapter interface for OpenAI Codex. |
|
Package cli houses entry points for the AI-agent hooks domain: `hooks install`, `hooks uninstall`, and the hidden `_hook` runtime.
|
Package cli houses entry points for the AI-agent hooks domain: `hooks install`, `hooks uninstall`, and the hidden `_hook` runtime. |
|
Package configedit provides byte-preserving edits of user-owned JSON and TOML settings files.
|
Package configedit provides byte-preserving edits of user-owned JSON and TOML settings files. |
|
enrich
|
|
|
mcp
Package mcp classifies MCP-related shell-launched activity.
|
Package mcp classifies MCP-related shell-launched activity. |
|
npm
Package npm classifies and enriches npm-ecosystem package manager activity observed in shell commands.
|
Package npm classifies and enriches npm-ecosystem package manager activity observed in shell commands. |
|
secrets
Package secrets implements a self-contained transcript secret scanner.
|
Package secrets implements a self-contained transcript secret scanner. |
|
Package event defines the canonical AI-agent event schema.
|
Package event defines the canonical AI-agent event schema. |
|
Package hook implements the bounded, fail-open hot path invoked by `stepsecurity-dev-machine-guard _hook <agent> <hookEvent>`.
|
Package hook implements the bounded, fail-open hot path invoked by `stepsecurity-dev-machine-guard _hook <agent> <hookEvent>`. |
|
Package identity computes AI-event identity for a hook invocation.
|
Package identity computes AI-event identity for a hook invocation. |
|
Package ingest owns the AI-agent telemetry upload path: the stricter enterprise-config gate (this file) and the HTTP client that POSTs events to /v1/{customer_id}/ai-agents/events.
|
Package ingest owns the AI-agent telemetry upload path: the stricter enterprise-config gate (this file) and the HTTP client that POSTs events to /v1/{customer_id}/ai-agents/events. |
|
Package policy holds the policy data model and pure decision evaluator.
|
Package policy holds the policy data model and pure decision evaluator. |
|
Package redact removes likely secrets from strings and JSON-shaped values before they are written to disk or sent over the wire.
|
Package redact removes likely secrets from strings and JSON-shaped values before they are written to disk or sent over the wire. |
|
Package state owns the server-driven hook enable/disable cache.
|
Package state owns the server-driven hook enable/disable cache. |