1. Install Sparkle
Pick the tool you code with:Cursor
Install Sparkle Guardrails extension in Cursor.
Windsurf
Install Sparkle Guardrails extension in Windsurf.
VS Code
Install the Sparkle Guardrails extension in VS Code.
CLI only
Install the CLI and configure all detected tools.
Claude Code
Configure Claude Code with the Sparkle CLI.
Codex
Configure Codex with the Sparkle CLI.
2. Sign in
Extension: open the Sparkle sidebar in your IDE and complete the sign-in flow. CLI:sparkle login opens your browser for OAuth. sparkle setup auto-detects installed AI coding tools and wires each one with the Sparkle MCP server, hooks, and guardrail rules.
3. Run a coding task
Ask your agent to write or change code as you normally would. Before it plans or generates, Sparkle fetches the guardrails for that repo via theget_guardrails MCP tool and injects them into the agent’s context.
Once the code is generated you will see a Sparkle Guardrails Applied summary at the end of the agent’s response, which lists the rules it followed.
If you see the
get_guardrails call and a guardrails summary, Sparkle is working. Every subsequent AI coding task in this repo is covered.Next steps
Using the extension
Sidebar, commands, and settings.
Using the CLI
Full CLI workflow and supported tools.

