agrid-security-gate

agrid-security-gate is a skill for Claude Code, Codex from nohosa001-pixel/security-gate-x402. It costs 80 tokens per session (476 once invoked), scanned A, original, MIT.

A local security gate for AI agents that checks tool calls and code for prompt-injection risks, unsafe subprocesses, unauthorized network access, and spending-limit violations. It uses fixed code inspection and spend rules rather than relying only on the agent's judgement.

In plain words
What is it for?
Use it to inspect agent actions, block selected Python operations and network activity, and enforce hard transaction or daily spending limits on supported environments and blockchains.
Why use it?
It adds a checkpoint before an agent can run risky code, send data out, or spend beyond configured limits. This helps contain malicious instructions and unintended actions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect agent actions, block selected Python operations and network activity, and enforce hard transaction or daily spending limits on supported environments and blockchains.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nohosa001-pixel/security-gate-x402/agrid-security-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nohosa001-pixel/security-gate-x402 --skill agrid-security-gate
Clone the repo
git clone --depth 1 https://github.com/nohosa001-pixel/security-gate-x402

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agrid-security-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/nohosa001-pixel/security-gate-x402/agrid-security-gate/github.svg)](https://agentmods.dev/skills/nohosa001-pixel/security-gate-x402/agrid-security-gate)
Your own site
<a href="https://agentmods.dev/skills/nohosa001-pixel/security-gate-x402/agrid-security-gate"><img src="https://agentmods.dev/badge/skills/nohosa001-pixel/security-gate-x402/agrid-security-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agrid-security-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/nohosa001-pixel/security-gate-x402/agrid-security-gate"><img src="https://agentmods.dev/badge/skills/nohosa001-pixel/security-gate-x402/agrid-security-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 476 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.00476
Opus 5.5 $0.00032 $0.00190
Sonnet 5.5 $0.00016 $0.00095
Haiku 4.5 $0.00008 $0.00048

Measured 5d ago against content hash 38b0ef76bc98, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agrid-security-gate scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Call `inspect_code_ast_safety` before running untrusted Python snippets (`os.system`, `subprocess`, `eval`, `exec`, socket exfiltration).
plugins/agrid-security-gate/skills/agrid-security-gate/SKILL.md · 30 lines

What it actually says

A.GRID Security Gate & Counterparty KYW/Solvency Tollgate

Use the bundled gateway MCP server (https://agent-security-gate-x402-212942243360.asia-northeast3.run.app/mcp) to enforce deterministic pre-sign and pre-settlement guardrails before executing untrusted actions or transferring funds.

Core Workflows

  1. Prompt, Code & Shell Safety (<3ms)

    • Call verify_agent_output for rapid prompt-injection, jailbreak, and secret/key-leak screening.
    • Call inspect_code_ast_safety before running untrusted Python snippets (os.system, subprocess, eval, exec, socket exfiltration).
    • Call inspect_shell_command_safety before executing shell commands.
  2. Pre-Settlement Counterparty KYW & Multi-Chain USDC Solvency

    • Call verify_counterparty_kyw_solvency with counterparty_address, chain_id (501 Solana, 137 Polygon, 8453 Base, 42161 Arbitrum, 1 Ethereum), required_amount_usdc, and optional payload_to_audit.
    • Reject or halt settlement whenever verdict is "REJECTED" (SANCTIONED_OR_MIXER_ADDRESS, INSUFFICIENT_USDC, SECURITY_GATE_BLOCKED, or low credit grade).
  3. On-Chain Policy, Credit & Attestation

    • Call get_agent_credit_rating to inspect an EVM wallet's Credit Rating Score (CRS).
    • Call verify_polygon_oms_solana_payment or get_onchain_security_attestation to enforce spend limits and produce cryptographic proof_hash / EIP-712 attestations.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · -87 lines · +80 tokens per session scan B → A 38b0ef76bc98
  2. 16d ago Changed · +1 lines 28654bde1a1b
  3. 18d ago First seen · 116 lines · 0 tokens per session scan B ddc717a23493

Subscribe to this mod's changes

agrid-security-gate is a skill published in the GitHub repository nohosa001-pixel/security-gate-x402 (3 stars, last pushed 3d ago), licensed MIT. It adds 80 tokens to every session and 476 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

agrid-security-gate compared with skills from other repositories

agrid-security-gate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agrid-security-gatenohosa001-pixel/security-gate-x402Skill33d agoMITA80Claude Code, Codex
agent-safetyericrisco/rsc-harnessSkill6915d agoMITA79Claude Code, Codex
adr-skillAgent-Threat-Rule/agent-threat-rulesSkill445todayMITA89Claude Code, Codex
terraform-skillAgent-Threat-Rule/agent-threat-rulesSkill445todayMITA10Claude Code, Codex
gentech-blockrunBlockRunAI/blockrun-mcpSkill392todayMITA46Claude Code, Codex
swiftui-expert-skillAgent-Threat-Rule/agent-threat-rulesSkill445todayMITA67Claude Code, Codex
varlock-claude-skillAgent-Threat-Rule/agent-threat-rulesSkill445todayMITA28Claude Code, Codex