Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
agentmon
command
|
|
|
agentmon-macwrap
command
|
|
|
agentmon-rlimit-exec
command
agentmon-rlimit-exec is a wrapper that applies resource limits before exec'ing a command.
|
agentmon-rlimit-exec is a wrapper that applies resource limits before exec'ing a command. |
|
agentmon-shell-shim
command
|
|
|
agentmon-stub
command
|
|
|
agentmon-unixwrap
command
|
|
|
dbclassify-pg
command
Command dbclassify-pg is an operator CLI that runs the Plan 03 PostgreSQL classifier on stdin and prints a JSON report on stdout.
|
Command dbclassify-pg is an operator CLI that runs the Plan 03 PostgreSQL classifier on stdin and prints a JSON report on stdout. |
|
pnacl-monitor
command
Quick test to run PNACL monitor with eBPF
|
Quick test to run PNACL monitor with eBPF |
|
seccomp-probe
command
|
|
|
wtp-testserver
command
Command wtp-testserver runs a hermetic WTP server bound to a local TCP port.
|
Command wtp-testserver runs a hermetic WTP server bound to a local TCP port. |
|
internal
|
|
|
audit
Package audit provides tamper-proof audit logging with HMAC-based integrity chains.
|
Package audit provides tamper-proof audit logging with HMAC-based integrity chains. |
|
audit/kms
Package kms provides key management system integrations for audit integrity keys.
|
Package kms provides key management system integrations for audit integrity keys. |
|
capabilities
Package capabilities provides runtime checks for kernel and system capabilities required by agentmon sandbox features.
|
Package capabilities provides runtime checks for kernel and system capabilities required by agentmon sandbox features. |
|
cli
internal/cli/mcp_cmd.go
|
internal/cli/mcp_cmd.go |
|
config
internal/config/ptrace.go
|
internal/config/ptrace.go |
|
db/classify/postgres
Package postgres — ast_copy.go owns the §7.3 COPY family.
|
Package postgres — ast_copy.go owns the §7.3 COPY family. |
|
db/classify/postgres/corpus
Package corpus declares the on-disk shape of classifier golden fixtures.
|
Package corpus declares the on-disk shape of classifier golden fixtures. |
|
db/effects
internal/db/effects/alias.go
|
internal/db/effects/alias.go |
|
db/events
internal/db/events/event.go
|
internal/db/events/event.go |
|
db/policy
Package policy implements the AgentMon database-access policy evaluator per docs/agentmon-db-access-spec.md §9–§10.
|
Package policy implements the AgentMon database-access policy evaluator per docs/agentmon-db-access-spec.md §9–§10. |
|
db/proxy/postgres
Package postgres implements the AgentMon PostgreSQL proxy per docs/agentmon-db-access-spec.md §11–§14 and the macro design at docs/superpowers/specs/2026-05-10-db-plan-04-pg-proxy-skeleton-design.md.
|
Package postgres implements the AgentMon PostgreSQL proxy per docs/agentmon-db-access-spec.md §11–§14 and the macro design at docs/superpowers/specs/2026-05-10-db-plan-04-pg-proxy-skeleton-design.md. |
|
db/proxy/postgres/preparedcache
Package preparedcache is a per-connection LRU prepared-statement cache used by the PostgreSQL proxy.
|
Package preparedcache is a per-connection LRU prepared-statement cache used by the PostgreSQL proxy. |
|
db/proxy/postgres/statemachine
Package statemachine implements the PostgreSQL proxy's Extended Query and transaction state machine per docs/agentmon-db-access-spec.md §14 and the design doc 2026-05-11-db-plan-05-pg-extended-tx-design.md §4.
|
Package statemachine implements the PostgreSQL proxy's Extended Query and transaction state machine per docs/agentmon-db-access-spec.md §14 and the design doc 2026-05-11-db-plan-05-pg-extended-tx-design.md §4. |
|
db/tlsleaf
Package tlsleaf provides a lazily-generated self-signed CA and per-hostname leaf issuer for the AgentMon DB proxy's TLS termination path.
|
Package tlsleaf provides a lazily-generated self-signed CA and per-hostname leaf issuer for the AgentMon DB proxy's TLS termination path. |
|
decisionctx
Package decisionctx resolves a process-level "decision context" (identity + environment signals) that AgentMon reports to Watchtower so the server can resolve the bound policy.
|
Package decisionctx resolves a process-level "decision context" (identity + environment signals) that AgentMon reports to Watchtower so the server can resolve the bound policy. |
|
envinject
Package envinject applies operator-configured environment variable injection (sandbox.env_inject) to a process environment.
|
Package envinject applies operator-configured environment variable injection (sandbox.env_inject) to a process environment. |
|
httpretry
Package httpretry provides a bounded-retry HTTP client and a circuit breaker for calling external providers.
|
Package httpretry provides a bounded-retry HTTP client and a circuit breaker for calling external providers. |
|
inspect
Package inspect runs content through inspection providers and resolves the policy engine's `inspect` decision against what they find.
|
Package inspect runs content through inspection providers and resolves the policy engine's `inspect` decision against what they find. |
|
inspect/provider
Package provider holds inspection provider implementations.
|
Package provider holds inspection provider implementations. |
|
inspect/provider/onnxrt
Package onnxrt calls ONNX Runtime from Go without cgo.
|
Package onnxrt calls ONNX Runtime from Go without cgo. |
|
inspect/provider/onnxrt/gen
command
Command gen-ort-api extracts the OrtApi struct member order from onnxruntime_c_api.h and writes it as Go constants.
|
Command gen-ort-api extracts the OrtApi struct member order from onnxruntime_c_api.h and writes it as Go constants. |
|
inspect/provider/privacyfilter
Package privacyfilter decodes OpenAI Privacy Filter output into spans.
|
Package privacyfilter decodes OpenAI Privacy Filter output into spans. |
|
inspect/provider/privacyfilter/modelcache
Package modelcache downloads and verifies model files.
|
Package modelcache downloads and verifies model files. |
|
inspect/provider/privacyfilter/tokenizer
Package tokenizer implements the byte-level BPE tokenizer that openai/privacy-filter was trained with.
|
Package tokenizer implements the byte-level BPE tokenizer that openai/privacy-filter was trained with. |
|
integration/db07cclient
command
|
|
|
integration/fargate
Package fargate contains end-to-end tests that run on AWS Fargate.
|
Package fargate contains end-to-end tests that run on AWS Fargate. |
|
ipset
Package ipset provides membership testing for sets of individual IP addresses and CIDR ranges.
|
Package ipset provides membership testing for sets of individual IP addresses and CIDR ranges. |
|
mcpclient
Package mcpclient provides helpers for connecting to HTTP/SSE MCP servers.
|
Package mcpclient provides helpers for connecting to HTTP/SSE MCP servers. |
|
mcpinspect
Package mcpinspect provides MCP (Model Context Protocol) message inspection for security monitoring.
|
Package mcpinspect provides MCP (Model Context Protocol) message inspection for security monitoring. |
|
mcpregistry
Package mcpregistry provides an in-memory registry that maps MCP tool names to their server metadata.
|
Package mcpregistry provides an in-memory registry that maps MCP tool names to their server metadata. |
|
netmonitor/pnacl
Package pnacl provides Process Network ACL (PNACL) functionality for per-process network access control policies.
|
Package pnacl provides Process Network ACL (PNACL) functionality for per-process network access control policies. |
|
netmonitor/unix
internal/netmonitor/unix/depth_tracker.go
|
internal/netmonitor/unix/depth_tracker.go |
|
ocsf
Package ocsf maps agentmon events to OCSF v1.8.0 class payloads consumed by the WTP CompactEvent wire shape.
|
Package ocsf maps agentmon events to OCSF v1.8.0 class payloads consumed by the WTP CompactEvent wire shape. |
|
pathutil
Package pathutil provides path boundary checking helpers shared across packages that need to determine whether a filesystem path is under a root.
|
Package pathutil provides path boundary checking helpers shared across packages that need to determine whether a filesystem path is under a root. |
|
platform
Package platform provides cross-platform abstractions for filesystem, network, sandbox, and resource management.
|
Package platform provides cross-platform abstractions for filesystem, network, sandbox, and resource management. |
|
platform/darwin
Package darwin provides stubs for non-macOS platforms.
|
Package darwin provides stubs for non-macOS platforms. |
|
platform/darwin/sbpl
Package sbpl constructs valid SBPL (Sandbox Profile Language) strings via a typed Go API.
|
Package sbpl constructs valid SBPL (Sandbox Profile Language) strings via a typed Go API. |
|
platform/fuse
Package fuse provides cross-platform FUSE filesystem mounting using cgofuse.
|
Package fuse provides cross-platform FUSE filesystem mounting using cgofuse. |
|
platform/helperbin
Package helperbin resolves the auxiliary binaries agentmon execs at runtime (agentmon-macwrap, agentmon-stub, agentmon-shell-shim).
|
Package helperbin resolves the auxiliary binaries agentmon execs at runtime (agentmon-macwrap, agentmon-stub, agentmon-shell-shim). |
|
platform/lima
Package lima provides the macOS Lima VM platform implementation for agentmon.
|
Package lima provides the macOS Lima VM platform implementation for agentmon. |
|
platform/linux
Package linux provides the Linux platform implementation for agentmon.
|
Package linux provides the Linux platform implementation for agentmon. |
|
policy/ancestry
Package ancestry provides process ancestry tracking and taint propagation for parent-conditional policy enforcement.
|
Package ancestry provides process ancestry tracking and taint propagation for parent-conditional policy enforcement. |
|
policy/envshim/test_helper
command
|
|
|
policy/identity
Package identity provides cross-platform process identification.
|
Package identity provides cross-platform process identification. |
|
policy/pattern
Package pattern provides pattern matching for process identification.
|
Package pattern provides pattern matching for process identification. |
|
policygen
internal/policygen/generator.go
|
internal/policygen/generator.go |
|
policyserve
Package policyserve serves signed policy bundles to agents over HTTP.
|
Package policyserve serves signed policy bundles to agents over HTTP. |
|
proxy
Package proxy provides an embedded HTTP proxy for intercepting outbound requests from the sandboxed agent.
|
Package proxy provides an embedded HTTP proxy for intercepting outbound requests from the sandboxed agent. |
|
proxy/credsub
Package credsub implements the per-session credential substitution table that maps fake credentials (the bytes an agent sees in its environment) to real credentials (the bytes sent upstream).
|
Package credsub implements the per-session credential substitution table that maps fake credentials (the bytes an agent sees in its environment) to real credentials (the bytes sent upstream). |
|
proxy/secrets
Package secrets defines the SecretProvider interface that agentmon uses to fetch real credentials from external secret stores at session start, plus the URI grammar, sentinel errors, and the provider Registry shared by all provider implementations.
|
Package secrets defines the SecretProvider interface that agentmon uses to fetch real credentials from external secret stores at session start, plus the URI grammar, sentinel errors, and the provider Registry shared by all provider implementations. |
|
proxy/secrets/awssm
Package awssm implements secrets.SecretProvider using AWS Secrets Manager.
|
Package awssm implements secrets.SecretProvider using AWS Secrets Manager. |
|
proxy/secrets/azurekv
Package azurekv implements secrets.SecretProvider using Azure Key Vault.
|
Package azurekv implements secrets.SecretProvider using Azure Key Vault. |
|
proxy/secrets/gcpsm
Package gcpsm implements secrets.SecretProvider using GCP Secret Manager.
|
Package gcpsm implements secrets.SecretProvider using GCP Secret Manager. |
|
proxy/secrets/keyring
Package keyring implements secrets.SecretProvider using the OS keyring: macOS Keychain (via /usr/bin/security), Linux Secret Service (via D-Bus), or Windows Credential Manager.
|
Package keyring implements secrets.SecretProvider using the OS keyring: macOS Keychain (via /usr/bin/security), Linux Secret Service (via D-Bus), or Windows Credential Manager. |
|
proxy/secrets/onepassword
Package onepassword implements secrets.SecretProvider using the 1Password Connect API.
|
Package onepassword implements secrets.SecretProvider using the 1Password Connect API. |
|
proxy/secrets/secretstest
Package secretstest provides test doubles for the secrets.SecretProvider interface.
|
Package secretstest provides test doubles for the secrets.SecretProvider interface. |
|
proxy/secrets/vault
Package vault implements secrets.SecretProvider using HashiCorp Vault's KV v2 secrets engine.
|
Package vault implements secrets.SecretProvider using HashiCorp Vault's KV v2 secrets engine. |
|
ptrace
Package ptrace implements a ptrace-based syscall tracer backend for agentmon.
|
Package ptrace implements a ptrace-based syscall tracer backend for agentmon. |
|
safepath
Package safepath opens files and directories that live where an untrusted process can also write, without adopting whatever it finds there.
|
Package safepath opens files and directories that live where an untrusted process can also write, without adopting whatever it finds there. |
|
shellparse
Package shellparse extracts the policy-relevant binary from a shell-wrapped invocation like `sh -c "shutdown now"`.
|
Package shellparse extracts the policy-relevant binary from a shell-wrapped invocation like `sh -c "shutdown now"`. |
|
shim
Package shim provides the shell shim infrastructure for agentmon.
|
Package shim provides the shell shim infrastructure for agentmon. |
|
shim/kernelinstall
Package kernelinstall lets the shim install seccomp + Landlock on its own process before execve, so the user's command inherits the filter even when the shim is not a child of the agentmon server (sandbox-SDK pattern).
|
Package kernelinstall lets the shim install seccomp + Landlock on its own process before execve, so the user's command inherits the filter even when the shim is not a child of the agentmon server (sandbox-SDK pattern). |
|
signal
internal/signal/engine.go
|
internal/signal/engine.go |
|
skillcheck
Package skillcheck scans AI agent skill installations (Claude Code skill directories) for prompt injection, exfiltration, hidden Unicode, scope violations, and other supply-chain risks before they become loadable by the agent.
|
Package skillcheck scans AI agent skill installations (Claude Code skill directories) for prompt injection, exfiltration, hidden Unicode, scope violations, and other supply-chain risks before they become loadable by the agent. |
|
store/eventfilter
Package eventfilter provides shared event-filter semantics used by chained audit sinks (OTEL, Watchtower).
|
Package eventfilter provides shared event-filter semantics used by chained audit sinks (OTEL, Watchtower). |
|
store/otel
Package otel implements a store.EventStore that exports events via OpenTelemetry (OTLP).
|
Package otel implements a store.EventStore that exports events via OpenTelemetry (OTLP). |
|
store/watchtower
Package watchtower implements a store.EventStore that ships events to a Watchtower endpoint via the WTP protocol.
|
Package watchtower implements a store.EventStore that ships events to a Watchtower endpoint via the WTP protocol. |
|
store/watchtower/chain
Package chain provides WTP-specific helpers around audit.SinkChain.
|
Package chain provides WTP-specific helpers around audit.SinkChain. |
|
store/watchtower/cmd/gen-wire-goldens
command
Command gen-wire-goldens regenerates wire-format goldens for WTP messages.
|
Command gen-wire-goldens regenerates wire-format goldens for WTP messages. |
|
store/watchtower/cmd/gen-wire-goldens/fixtures
Package fixtures owns the canonical construction of the WTP wire-format goldens.
|
Package fixtures owns the canonical construction of the WTP wire-format goldens. |
|
store/watchtower/compact
Package compact projects agentmon events into the WTP CompactEvent wire shape.
|
Package compact projects agentmon events into the WTP CompactEvent wire shape. |
|
store/watchtower/testserver
Package testserver is a hermetic, in-process WTP (Watchtower Transport Protocol) server built on top of google.golang.org/grpc/test/bufconn.
|
Package testserver is a hermetic, in-process WTP (Watchtower Transport Protocol) server built on top of google.golang.org/grpc/test/bufconn. |
|
store/watchtower/transport/compress
Package compress provides per-batch compression encoders for the WTP transport.
|
Package compress provides per-batch compression encoders for the WTP transport. |
|
store/watchtower/wal
Package wal implements the WTP write-ahead log: framed records inside generation-tagged segment files, with CRC32C-Castagnoli per record and an atomic .INPROGRESS → .seg seal.
|
Package wal implements the WTP write-ahead log: framed records inside generation-tagged segment files, with CRC32C-Castagnoli per record and an atomic .INPROGRESS → .seg seal. |
|
wrapenv
Package wrapenv applies env_policy filtering to the inherited environment on the client-spawned wrap path (shell shim / kernel-install / agentmon wrap), the counterpart to server-side buildPolicyEnv.
|
Package wrapenv applies env_policy filtering to the inherited environment on the client-spawned wrap path (shell shim / kernel-install / agentmon wrap), the counterpart to server-side buildPolicyEnv. |
|
wrapperlog
Package wrapperlog defines the env contract and fallback file destination for routing agentmon-unixwrap diagnostics off the wrapped command's stderr (issue #415).
|
Package wrapperlog defines the env contract and fallback file destination for routing agentmon-unixwrap diagnostics off the wrapped command's stderr (issue #415). |
|
pkg
|
|
|
observability
Package observability provides Prometheus metrics, OpenTelemetry tracing, and structured logging for agentmon.
|
Package observability provides Prometheus metrics, OpenTelemetry tracing, and structured logging for agentmon. |
|
ratelimit
Package ratelimit provides rate limiting and quota management for agentmon.
|
Package ratelimit provides rate limiting and quota management for agentmon. |
|
simulation
Package simulation provides testing and simulation modes for agentmon.
|
Package simulation provides testing and simulation modes for agentmon. |
|
scripts
|
|
|
docker-test
command
sigurg_probe is a best-effort sanity check that the WAIT_KILLABLE_RECV flag is functionally engaged end-to-end.
|
sigurg_probe is a best-effort sanity check that the WAIT_KILLABLE_RECV flag is functionally engaged end-to-end. |
Click to show internal directories.
Click to hide internal directories.