Remediation Agent
The Remediation Agent is an LLM-driven tool that automates vulnerability remediation in your projects. It scans your Project with Snyk, generates a fix plan enriched with Snyk security intelligence, applies the fixes, and verifies the result, all in your coding assistant or the Snyk CLI.
How it works
Traditional vulnerability remediation requires a developer to review each finding, decide on a fix, apply it manually, and verify the outcome. The Remediation Agent automates this cycle. Its goal is to move from human-in-the-loop validation toward fully autonomous, mergeable pull requests.
The agent follows the same core flow regardless of the entry point:
Scan: Snyk scans the Project for vulnerabilities using Snyk Open Source (SCA) or Snyk Code (SAST).
Plan: The agent generates a fix plan enriched with Snyk security intelligence, including breakability signals for SCA fixes.
Fix: The agent applies the fix. For SCA, this means bumping dependency versions or adding overrides. For SAST, this means applying Snyk Agent Fix suggestions to the source code.
Verify: The agent rescans to confirm the vulnerability is resolved and runs any tests that exist in the application, such as unit tests. If a fix introduces a problem, the agent reports the outcome.
Entry points
Agentic IDE (ADE): Run
/snyk-fixin your coding assistant to scan the project and apply a fix for the top vulnerability. Use/snyk-batch-fixto address multiple issues at once. The/snyk-fixskill must be installed in the ADE before use. It installs automatically with the Snyk Studio one-line installer or manually by following the studio-recipes setup instructions.Snyk CLI: Run
snyk fix --agenticfrom your terminal to trigger a human-in-the-loop interactive remediation experience without an IDE.
Prerequisites
For Agentic IDE (ADE)
A Snyk account with Snyk Open Source or Snyk Code enabled.
A supported coding assistant: Cursor, Claude, Gemini, Kiro, Codex, Windsurf, or GitHub Copilot.
The
/snyk-fixskill installed in the coding assistant (through the Snyk Studio installer or manually).
For Snyk CLI
A Snyk account with Snyk Open Source or Snyk Code enabled.
The Snyk CLI. Visit Install the Snyk CLI.
An LLM API key from one of the following providers: Anthropic, OpenAI, Vertex AI, LiteLLM, or Ollama.
Set up the Remediation Agent
Install with the Snyk Studio installer
The Snyk Studio installer installs and configures everything you need: the Snyk CLI, the Snyk MCP server, the /snyk-fix and /snyk-batch-fix skills, and the secure at inception hooks.
macOS and Linux
Windows (PowerShell)
By default, the installer applies to every coding assistant it detects. To target a specific assistant, pass --ade [agent]:
Accepted values: cursor, claude, gemini, kiro, codex, windsurf, copilot-cli, copilot-vscode.
Enable the experimental MCP profile
The breaking change assessment requires the Snyk MCP server to run in experimental mode. After running the installer, add SNYK_MCP_PROFILE: experimental to your MCP server configuration.
Navigate to Tools & MCPs, find the Snyk MCP entry, and click the edit icon. Add "SNYK_MCP_PROFILE": "experimental" to the env block.
Open ~/.claude.json, find the mcpServers.Snyk entry, and add "SNYK_MCP_PROFILE": "experimental" to the env block:
Add the profile to ~/.codex/config.toml:
Use snyk fix --agentic
The Snyk Studio installer installs the CLI automatically. If you skipped the installer, visit Install the Snyk CLI for installation options.
The agentic CLI flow requires an LLM provider API key. Set one of the following environment variables before running the command:
Anthropic (default):
export ANTHROPIC_API_KEY=sk-ant-...OpenAI:
export OPENAI_API_KEY=sk-...Vertex AI: authenticate with
gcloud auth application-default loginand setGOOGLE_CLOUD_PROJECTandGOOGLE_CLOUD_LOCATIONLiteLLM: set
LITELLM_BASE_URLandLITELLM_API_KEYOllama: start Ollama with your model, then pass
--provider=ollama --model=<model>to the command
Run the command with --sca for dependency vulnerabilities or --sast for source-code issues:
For the full command reference, including all flags, visit Fix.
Snyk intelligence injected by the Remediation Agent
Before the agent modifies an open-source dependency, Snyk performs a breaking change assessment. The agent receives guidance on whether the version upgrade is likely to break the build and what to watch for if it does. In the ADE, the agent proceeds automatically when there is no breakability risk. In the CLI, the agent still prompts you to choose what to fix, unless you run it with --auto-approve.
Try the Remediation Agent on a test or smaller repository first to get familiar with the output and the review process.
Start with SCA fixes rated as low breakability. These are the least likely to disrupt your build and give you the best signal on how the agent performs in your environment.
Send feedback about outcomes directly to Snyk through your account manager or through Snyk Support. The feature is in public preview, and your input helps shape its development.
Best practices
Before running the Remediation Agent on production code, consider the following:
Try the Remediation Agent on a test or smaller repository first to get familiar with the output and the review process.
Start with SCA fixes rated as low breakability. These are the least likely to disrupt your build and give you the best signal on how the agent performs in your environment.
Send feedback about outcomes directly to Snyk through your account manager or through Snyk Support. The feature is in public preview, and your input helps shape its development.
Agentic IDE (ADE): Run
/snyk-fixin your coding assistant to scan the project and apply a fix for the top vulnerability. Use/snyk-batch-fixto address multiple issues at once. The/snyk-fixskill must be installed in the ADE before use. It installs automatically with the Snyk Studio one-line installer or manually by following the studio-recipes setup instructions.Snyk CLI: Run
snyk fix --agenticfrom your terminal to trigger a human-in-the-loop interactive remediation experience without an IDE.
Last updated
Was this helpful?

