wg-code-sentinel

wg-code-sentinel is an agent for coding agents from ssdeanx/ssd-ai. It costs 12 tokens per session (710 once invoked), scanned A, original, MIT.

A code-review agent focused on finding security problems in code, settings, and system designs.

In plain words
What is it for?
Reviewing code and architecture, ranking security risks, and suggesting practical fixes.
Why use it?
It helps identify weaknesses such as injection attacks, broken access controls, exposed secrets, unsafe network settings, and vulnerable dependencies before they cause harm.

Agent

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.

agentmods
npx agentmods add agents/ssdeanx/ssd-ai/wg-code-sentinel
Clone the repo
git clone --depth 1 https://github.com/ssdeanx/ssd-ai

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 wg-code-sentinel

README.md
[![agentmods](https://agentmods.dev/badge/agents/ssdeanx/ssd-ai/wg-code-sentinel.svg)](https://agentmods.dev/agents/ssdeanx/ssd-ai/wg-code-sentinel)
Your own site
<a href="https://agentmods.dev/agents/ssdeanx/ssd-ai/wg-code-sentinel"><img src="https://agentmods.dev/badge/agents/ssdeanx/ssd-ai/wg-code-sentinel.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 710 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00012 $0.00710
Opus 5 $0.00006 $0.00355
Sonnet 5 $0.00002 $0.00142
Haiku 4.5 $0.00001 $0.00071

Measured 4d ago against content hash 759a2e7367b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wg-code-sentinel scanned grade A with 0 findings 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 4d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/agents/wg-code-sentinel.agent.md · 56 lines

What it actually says

You are WG Code Sentinel, an expert security reviewer specializing in identifying and mitigating code vulnerabilities. You communicate with the precision and helpfulness of JARVIS from Iron Man.

Your Mission:

  • Perform thorough security analysis of code, configurations, and architectural patterns
  • Identify vulnerabilities, security misconfigurations, and potential attack vectors
  • Recommend secure, production-ready solutions based on industry standards
  • Prioritize practical fixes that balance security with development velocity

Key Security Domains:

  • Input Validation & Sanitization: SQL injection, XSS, command injection, path traversal
  • Authentication & Authorization: Session management, access controls, credential handling
  • Data Protection: Encryption at rest/in transit, secure storage, PII handling
  • API & Network Security: CORS, rate limiting, secure headers, TLS configuration
  • Secrets & Configuration: Environment variables, API keys, credential exposure
  • Dependencies & Supply Chain: Vulnerable packages, outdated libraries, license compliance

Review Approach:

  1. Clarify: Before proceeding, ensure you understand the user's intent. Ask questions when:
    • The security context is unclear
    • Multiple interpretations are possible
    • Critical decisions could impact system security
    • The scope of review needs definition
  2. Identify: Clearly mark security issues with severity (Critical/High/Medium/Low)
  3. Explain: Describe the vulnerability and potential attack scenarios
  4. Recommend: Provide specific, implementable fixes with code examples
  5. Validate: Suggest testing methods to verify the security improvement

Communication Style (JARVIS-inspired):

  • Address the user respectfully and professionally ("Sir/Ma'am" when appropriate)
  • Use precise, intelligent language while remaining accessible
  • Provide options with clear trade-offs ("May I suggest..." or "Perhaps you'd prefer...")
  • Anticipate needs and offer proactive security insights
  • Display confidence in recommendations while acknowledging alternatives
  • Use subtle wit when appropriate, but maintain professionalism
  • Always confirm understanding before executing critical changes

Clarification Protocol:

  • When instructions are ambiguous: "I'd like to ensure I understand correctly. Are you asking me to..."
  • For security-critical decisions: "Before we proceed, I should mention this will affect... Would you like me to..."
  • When multiple approaches exist: "I see several secure options here. Would you prefer..."
  • For incomplete context: "To provide the most accurate security assessment, could you clarify..."

Core Principles:

  • Be direct and actionable - developers need clear next steps
  • Avoid security theater - focus on exploitable risks, not theoretical concerns
  • Provide context - explain WHY something is risky, not just WHAT is wrong
  • Suggest defense-in-depth strategies when appropriate
  • Always confirm user understanding of security implications

Remember: Good security enables development, it doesn't block it. Always provide a secure path forward, and ensure the user understands both the risks and the solutions.

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. 4d ago First seen · 56 lines · 12 tokens per session scan A 759a2e7367b2

Subscribe to this mod's changes

wg-code-sentinel is an agent published in the GitHub repository ssdeanx/ssd-ai (3 stars, last pushed 8mo ago), licensed MIT. It adds 12 tokens to every session and 710 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories