agent

module
v0.0.0-...-193230c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT

Directories

Path Synopsis
cmd
agent command
Command agent runs the Prompt Gate agent: DNS resolver + policy engine + SQLite-backed config/stats + local HTTP API.
Command agent runs the Prompt Gate agent: DNS resolver + policy engine + SQLite-backed config/stats + local HTTP API.
dlp-bench command
prompt-gate command
Command prompt-gate is the standalone CLI for the Prompt Gate DLP engine.
Command prompt-gate is the standalone CLI for the Prompt Gate DLP engine.
proxy-helper command
proxy-helper is a privileged LaunchDaemon that runs as root on macOS.
proxy-helper is a privileged LaunchDaemon that runs as root on macOS.
internal
alerter
Package alerter sends an optional, privacy-safe outbound webhook when the agent's DLP-block counter climbs past a configurable threshold within a polling window.
Package alerter sends an optional, privacy-safe outbound webhook when the agent's DLP-block counter climbs past a configurable threshold within a polling window.
api
attestation
Package attestation produces a signed, offline-verifiable statement about what Prompt Gate build is running on a machine and how it is configured.
Package attestation produces a signed, offline-verifiable statement about what Prompt Gate build is running on a machine and how it is configured.
config
Package config loads and validates the YAML configuration for the Prompt Gate agent.
Package config loads and validates the YAML configuration for the Prompt Gate agent.
dlp
Package dlp implements the layered Data Loss Prevention (DLP) pipeline described in ARCHITECTURE.md section 2.
Package dlp implements the layered Data Loss Prevention (DLP) pipeline described in ARCHITECTURE.md section 2.
dns
Package dns implements the embedded DNS resolver.
Package dns implements the embedded DNS resolver.
heartbeat
Package heartbeat sends an optional periodic POST to a central telemetry endpoint configured by the deployment.
Package heartbeat sends an optional periodic POST to a central telemetry endpoint configured by the deployment.
logging
Package logging exposes a global logrus logger configured at init time by the build-tagged files (logging_debug.go / logging_release.go).
Package logging exposes a global logrus logger configured at init time by the build-tagged files (logging_debug.go / logging_release.go).
mcp
Package mcp serves the Prompt Gate DLP engine as a Model Context Protocol (MCP) tool server over stdio.
Package mcp serves the Prompt Gate DLP engine as a Model Context Protocol (MCP) tool server over stdio.
notify
Package notify provides real-time event delivery for Prompt Gate.
Package notify provides real-time event delivery for Prompt Gate.
policy
Package policy resolves a domain to one of three actions (allow, allow_with_dlp, deny) by combining the rule-file lookup index with the per-category policy stored in SQLite.
Package policy resolves a domain to one of three actions (allow, allow_with_dlp, deny) by combining the rule-file lookup index with the per-category policy stored in SQLite.
profile
Package profile defines the enterprise configuration profile format and the in-memory holder used to expose the current profile to the API and tamper / heartbeat subsystems.
Package profile defines the enterprise configuration profile format and the in-memory holder used to expose the current profile to the API and tamper / heartbeat subsystems.
proxy
Per-device Root CA + on-the-fly leaf certificate issuance.
Per-device Root CA + on-the-fly leaf certificate issuance.
rules
Package rules parses one-domain-per-line rule files and provides an in-memory lookup keyed by domain.
Package rules parses one-domain-per-line rule files and provides an in-memory lookup keyed by domain.
stats
Package stats maintains the anonymous aggregate counters for the agent.
Package stats maintains the anonymous aggregate counters for the agent.
store
Package store wraps the SQLite persistence layer for the Prompt Gate agent.
Package store wraps the SQLite persistence layer for the Prompt Gate agent.
sysconf
Shell environment proxy integration for CLI/terminal tools.
Shell environment proxy integration for CLI/terminal tools.
tamper
Package tamper monitors the OS for evidence that the local DNS resolver or the MITM proxy configuration has been pointed away from the Prompt Gate agent.
Package tamper monitors the OS for evidence that the local DNS resolver or the MITM proxy configuration has been pointed away from the Prompt Gate agent.
updater
Package updater implements agent self-update against a manifest hosted on GitHub Releases.
Package updater implements agent self-update against a manifest hosted on GitHub Releases.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL