solongate/agent-security
Local Go gateway for coding agents: enforce tool policies and block secret leaks
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
SolonGate is a Go gateway that evaluates coding-agent tool calls before execution. Hooks load at session start; the guard evaluates calls against a file-backed policy and keeps a local audit trail without making network calls. The solongate entrypoint opens a TUI for policy, audit, and settings, with CLI subcommands for inspection and maintenance.
The enforcement paths serve different purposes. A Claude Code shim masks outbound request bodies outside the tool-hook path. OS-protected paths deny access at the filesystem layer, while sandbox launches give the agent a minimal filesystem root containing the project. Despite the MCP-server classification, the concrete integration surfaces are hooks, the shim, and launcher commands. No MCP transport, exposed tool schema, or plugin API is specified, so generic MCP client compatibility is not established.
Key Capabilities & Differentiators
Policy rules allow or deny paths, commands, filenames, and URLs within READ, WRITE, EXECUTE, and NETWORK scopes. DLP offers more than 70 built-in secret patterns, custom patterns, and four modes: off, detect, redact, and block. In block mode, a secret inside a file can stop an upload even when the secret itself is absent from the call arguments. Rate limits can be set per minute, hour, or day.
Repository-supplied policy cannot turn the guard off, and tool calls cannot access the guard’s own state. Operators can inspect protected paths and what enforces them with solongate policy protect list, and inspect a sandbox with solongate sandbox --explain 001. Claude Code is the concrete integration example and the named target for prompt masking; equivalent coverage for other agents or providers is not established.
Trade-offs & Limitations
Compared with hand-written agent hooks, SolonGate packages policy, DLP, rate limiting, and audit in one CLI. The trade-off is that hook enforcement depends on what the integration actually exposes. Use protected paths or a sandbox when access must be constrained at the filesystem layer rather than by matching call text. Verify those controls on the target workstation before relying on them: no cross-platform enforcement matrix is specified, and pattern matching does not establish that every secret format will be detected.
Compared with a centrally managed gateway, local files remove the need for a hosted guard or account. They also leave policy distribution, audit collection, and retention to the operator unless another system handles them. This is a fit for workstation-level controls, not a demonstrated replacement for fleet-wide governance or centralized reporting.
Hardware & Deployment Guide
Deployment is self-hosted on the workstation. Installation starts from a Git checkout, not a package registry, and requires Git and Go 1.26+. The installer can obtain the official Go build if needed, so disconnected deployments must stage the checkout and an appropriate Go toolchain first. The v0.0.7 release uses ./scripts/shell/install.sh, while the general installation example uses ./scripts/install.sh; follow the path for the checked-out release. Start a fresh agent session after installation so its hooks load.
solongate doctor checks the installation, and solongate repair restores the guard, hooks, and settings. Existing installations update through solongate update. The default long range follows tagged releases; short can follow every commit on the branch. The guard operates locally after installation, but that does not make agent traffic or the update process offline.
watch and trace expose what it sees.Developers and teams piloting workstation-level controls who need to restrict coding-agent tool actions, inspect uploads for secrets, and retain a local audit trail.
You need centralized fleet governance, verified compatibility with a generic MCP client, or only a few checks that native hooks already cover.
Quick Start & Installation
git clone https://github.com/solongate/agent-security.git cd agent-security ./scripts/install.sh solongate
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| agent-security ★ | 691 | +4 | Go | Apache-2.0 | Local Go gateway for coding agents: enforce tool policies and block secret leaks |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
| agent-skills | 122.5k | +1.7k | JavaScript | MIT | A modular skill pack for consistent coding-agent workflows, from spec to release |
| agents | 43.2k | +212 | Python | MIT | One Markdown plugin catalog adapted to seven AI coding tools |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/solongate/agent-security.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about agent-security
How do I verify that a coding-agent session is actually guarded?
solongate trace shows what the guard saw in the current directory, and solongate watch follows tool calls live. Verify the integration with a harmless test rule. Claude Code’s request-body shim is a separate enforcement point, so a working tool-call hook does not establish that prompt masking is active.What hardware and performance overhead should I budget for?
Can we use it commercially, and what does local deployment mean for compliance?
When should I choose native hooks, an OS sandbox, or centralized controls instead?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy