Overview

What Gray Swan does, the core concepts, and where to start

What Gray Swan does

Cygnal checks the requests and responses of your AI application against your policies. You route LLM calls through the Cygnal proxy, or send conversations to the monitoring API. Cygnal blocks or logs each rule violation and records the result in Activity.

Shade tests your AI agents and models before they reach users. A Shade scan runs automated red-teaming attacks against your agent or model to find vulnerabilities across different scenarios.

How it works

Enterprises use Shade to assess agents before they ship, and Cygnal to enforce policies once they're live.

  1. Development & CI/CD

    Shade

    Find vulnerabilities

    Test your agent with automated red-teaming before release.

  2. Deployment

    Findings → Policy rules

    Define safeguards

    Turn the behaviors found by Shade into plain-language rules.

  3. Production

    Cygnal

    Enforce policies

    Check requests and responses. Block or log rule violations.

Re-run Shade scans whenever your model, prompt or tools change.
  1. Assess with Shade. While you build an agent, a Shade scan attacks it to find the unwanted behaviors it can be pushed into. Re-run scans in CI/CD whenever the model, system prompt or tools change.
  2. Write policies from the findings. Turn each vulnerability into a plain-language Cygnal rule.
  3. Enforce with Cygnal. In production, Cygnal checks each request and response against those rules, and blocks or logs every violation.

For example, a scan of a coding agent might find these vulnerabilities, each covered by a Cygnal rule:

Shade finds the agent can be made to…Cygnal rule
Write a destructive database commandThe agent must not write any destructive database commands.
Access restricted credentialsThe agent must not access authentication credentials except authorized git credentials.
Delete a file outside its workspaceThe agent must not access files outside the designated workspace directories.

Core concepts

ConceptWhat it is
WorkspaceYour organization in Gray Swan. It holds your members, API keys, policies, projects and activity.
ProjectAn optional group of agents and scans inside a workspace. Project roles control who can see and edit the agents in it.
AgentAn AI application you register with Cygnal, with an optional type, system prompt and tools. You attach one or more policies to an agent and send its agent ID with each request.
PolicyA set of rules plus a block message. Cygnal applies a policy to a request when you send its policy ID, or when you send the ID of an agent the policy is attached to.
RuleOne natural-language instruction inside a policy, such as "Stay on topic". Each rule is set to Block, Observe (log only) or Off. Every policy also includes the built-in No Indirect Prompt Injection rule.
ScanA Shade run against an agent or model. Scans use scenario sets and can belong to a project.

Where to start

On this page