Sponsor Suno AI Music arrow_forward
Subagent

WG Code Sentinel

Ask WG Code Sentinel to review your code for security issues.

Type
Subagent
GitHub stars
39.4k
License
MIT
Repo last updated
Sep 27, 2026

What WG Code Sentinel is

WG Code Sentinel is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to WG Code Sentinel and get back a compact result.

It is set up to use these tools: 'changes', 'codebase', 'edit/editFiles', 'extensions', 'web/fetch', 'findTestFiles', 'githubRepo', 'new', 'openSimpleBrowser', 'problems', 'runCommands', 'runNotebooks'. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install WG Code Sentinel

Claude Code

  1. Download wg-code-sentinel.agent.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from agents/wg-code-sentinel.agent.md, shared under the repository's MIT license. Read the full file on GitHub.

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
  1. Identify: Clearly mark security issues with severity (Critical/High/Medium/Low)
  2. Explain: Describe the vulnerability and potential attack scenarios
  3. Recommend: Provide specific, implementable fixes with code examples
  4. 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.

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is WG Code Sentinel?

WG Code Sentinel is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Ask WG Code Sentinel to review your code for security issues.

How do I install WG Code Sentinel in Claude Code?

Download wg-code-sentinel.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use WG Code Sentinel in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is WG Code Sentinel safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.