← Back to Leaderboard
Asolongate

solongate/agent-security

Local Go gateway for coding agents: enforce tool policies and block secret leaks

Engineering Health (Methodology)
A+ · 90/100
Maintenance Activity
● Updated today
Latest Release
v0.0.7
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption18/25
Release Cadence17/20
License Clarity20/20
Self-HostedCLI
Total Stars
★ 691
24h Growth
+0
7d Growth
+4
Forks
117

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

solongate/agent-security Star History (2026-10-05 - 2026-12-04) DAILY STAR HISTORY (36-DAY D1 TELEMETRY) +690 in 60d · avg +12/day 730 365 0 2026-10-05: ★ 12026-10-10: ★ 12026-10-17: ★ 592026-10-24: ★ 852026-10-31: ★ 882026-11-04: ★ 1142026-11-08: ★ 5372026-11-12: ★ 6282026-11-16: ★ 6402026-11-20: ★ 6602026-11-24: ★ 6852026-11-28: ★ 6882026-12-04: ★ 691 ★ 691 10-05 11-04 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Pre-execution policy: Match paths, commands, filenames, or URLs within READ, WRITE, EXECUTE, and NETWORK scopes.
Secret handling: 70+ built-in patterns plus custom patterns, with off, detect, redact, and block modes.
Egress inspection: In block mode, uploads can be refused based on secrets inside the file, not just text in the call.
Prompt coverage: A Claude Code shim masks outbound request bodies at a point outside the tool-call hooks.
Filesystem controls: Protected paths use OS enforcement; sandbox launches place the agent in a minimal filesystem root containing the project.
Local operations: Policy and audit are file-backed, the guard makes no network calls, and watch and trace expose what it sees.
Best For

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.

Skip If

You need centralized fleet governance, verified compatibility with a generic MCP client, or only a few checks that native hooks already cover.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedCLI
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 →
RepositoryStars7d TrendStackLicenseCore Positioning
agent-security ★691+4GoApache-2.0Local Go gateway for coding agents: enforce tool policies and block secret leaks
graphify156.8k+2.4kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.
agent-skills122.5k+1.7kJavaScriptMITA modular skill pack for consistent coding-agent workflows, from spec to release
agents43.2k+212PythonMITOne 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/solongate/agent-security.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

solongate/agent-security Star History on RepoForAI

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?

Tool-call hooks load when the agent session starts, so start a fresh session after installation. 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?

No GPU or VRAM requirement is specified for the Go guard. Size it separately from the coding agent and any model it runs. For a pilot, measure tool-call latency and audit growth under your expected call volume, including uploads whose contents must be checked. There are no published resource or throughput figures in the supplied release data.

Can we use it commercially, and what does local deployment mean for compliance?

Apache-2.0 generally permits commercial use, modification, and redistribution subject to its terms, including applicable notice obligations on redistribution. The guard runs on-device without an account or telemetry. Assess the coding agent’s own data flows and your audit-file access and retention controls separately; self-hosting the guard does not establish compliance for the full workflow.

When should I choose native hooks, an OS sandbox, or centralized controls instead?

Use native agent hooks alone if you only need a few deterministic preflight checks and are prepared to maintain them yourself. SolonGate adds shared policy management, secret handling, rate limits, and a local audit trail. Favor OS-level isolation when a path must be inaccessible regardless of tool-call wording, and use centrally managed controls when fleet policy rollout or consolidated audit is a requirement.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining solongate/agent-security? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature solongate/agent-security on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare