Sonar Samples
Practical SonarQube workshops, implementation blueprints, and runnable examples.Practical examples and guides for adding code verification and governance into agentic developer workflows with Sonar
Website · Docs · Community · @SonarSource
AI agents write code faster than most teams can review it. That gap is verification debt, and it grows every time a pull request merges before anyone has actually checked what changed. Sonar calls the discipline of closing that gap the Agent Centric Development Cycle, or AC/DC: guide agents with the right context, verify what they produce, and solve the issues verification finds. SonarQube is the platform that supports each stage, and the repositories in this org are hands-on guides for setting up each stage of that cycle with your tools.
The repositories linked from this page are example implementations, not supported Sonar products. They exist to help you learn and adapt Sonar for your own workflows. Test, secure, and validate anything you use here against your team’s standards before it touches production.
Choose what you want to do, then open the repository that matches your tool or environment. Each guide repository includes the complete steps and supporting files.
I want to:
- Work with AI coding agents
- Review, fix, and ship pull requests with Gitar
- Manage application architecture
- Browse every workshop, blueprint, and sample
Find what you need
Work with AI coding agents
| If you use | Start here | What you will set up |
|---|---|---|
| Claude Code | Set up Sonar Vortex in Claude Code | Guide the agent with project context and rules, then verify each code change as it is written. Includes automatic analysis after edits, multi-file analysis, and secrets detection |
| OpenAI Codex | Wire your team for agentic development with SonarQube and OpenAI Codex | A hands-on SonarQube Cloud workflow for finding secrets, investigating issues, and verifying AI-generated code |
| Cursor | Set up the SonarQube plugin for Cursor | The SonarQube plugin, SonarQube MCP Server, analysis hooks, secrets detection, and project context |
| A terminal or multiple coding agents | Get started with the SonarQube CLI | Local analysis, agent integrations, Git hooks, project queries, and SonarQube authentication |
Review, fix, and ship pull request reviews with Gitar
Gitar is Sonar's AI code verification agent for pull requests and CI. It reviews changes in context, diagnoses CI failures, and generates fixes, then iterates until your CI passes. Committing, approving, and merging are configurable and stay under your team's controls. Gitar works alongside SonarQube: SonarQube sets the standard, and Gitar enforces it at merge speed.
| If you want to | Start here |
|---|---|
| Learn the full review fix workflow in a browser | Gitar workshop |
| Make reviews aware of repository conventions and rules | Configure Gitar context for project-aware code reviews |
| Add organization instructions, Jira, Slack, or custom context | Extend Gitar with organization and external context |
| Run the application used in the Gitar context blueprints | Gitar context ingestion sample |
Manage application architecture
| If you want to | Start here |
|---|---|
| Explore current architecture, define an intended architecture, and find deviations | Get started managing your architecture with SonarQube |
Browse by content type
Hands-on workshops
| Repository | What it covers |
|---|---|
learn-codex-workshop |
Connect Codex CLI to SonarQube Cloud and work through secrets detection, issue investigation, and verification of AI-generated code. |
gitar-workshop |
Use Gitar to review pull requests, enforce repository conventions, and investigate a failing CI pipeline. |
Implementation blueprints
| Repository | What it covers |
|---|---|
blueprint-sonar-vortex-claude |
Set up Sonar Vortex in Claude Code with project context, code verification, and secrets detection. |
blueprint-sonarqube-plugin-cursor |
Add the SonarQube plugin and its supporting integrations to Cursor. |
blueprint-sonarqube-cli |
Use the SonarQube CLI for local analysis, agent integrations, Git hooks, and project data. |
blueprint-architecture-management-sonarqube-cloud |
Explore current architecture, define an intended architecture, and find deviations in SonarQube Cloud. |
blueprint-gitar-context-ingestion |
Configure repository context for project-aware Gitar reviews. |
blueprint-gitar-advanced-config |
Extend Gitar reviews with organization instructions, Jira, Slack, and custom integrations. |
Runnable samples
| Repository | What it covers |
|---|---|
sample-gitar-context-ingestion |
Run the Flask application and intentional error-handling bugs used by the Gitar context blueprints. |
Search by topic
Use GitHub topics to narrow the repository list by product, workflow, tool, or language.
- Content:
blueprint,workshop,sample - Product and workflow:
sonarqube-cloud,sonarqube-cli,sonar-vortex,gitar,architecture,code-review - Tool:
claude-code,codex,cursor,github,github-actions,jira,slack - Language:
python,java,flask
How repositories are organized
Repository names signal what kind of content they contain.
| Name | Content |
|---|---|
blueprint- prefix |
Step-by-step implementation guides with supporting configuration, code, or screenshots |
learn- prefix or -workshop suffix |
Hands-on workshops that can also be followed as standalone tutorials |
sample- prefix |
Focused applications, templates, or configurations used by guides and workshops |
About these repositories
These repositories are examples designed for learning and reference. Review the prerequisites and product documentation for your own environment.
For Sonar product documentation, visit docs.sonarsource.com. For product questions, use the Sonar Community.
Popular repositories Loading
-
workshop-gitar-nov
workshop-gitar-nov
Public
Hands-on Gitar workshop: open three pull requests in a sample ticketing API, watch Gitar review all three, then have it fix two and merge one
-
learn-codex-workshop
learn-codex-workshop
Public
Hands-on workshop: wire Codex CLI to SonarQube Cloud for secrets scanning, issue detection, and automated verification of AI-generated code
-
workshop-architecture-gctoolkit
workshop-architecture-gctoolkit
Public
Hands-on architecture workshop with an intended architecture defined in SonarQube, and two branches that show a dependency being introduced and then removed.
-
aie-ny-workshop-gitar
aie-ny-workshop-gitar
Public
Hands-on Gitar workshop at AI Engineer NY
-
blueprint-sonarqube-mcp-server-gemini-code-assist
blueprint-sonarqube-mcp-server-gemini-code-assist
Public
Get started with SonarQube MCP Server and Gemini Code Assist agent mode — step-by-step blueprint with config files and screenshots.
-
blueprint-architecture-management-sonarqube-cloud
blueprint-architecture-management-sonarqube-cloud
Public
Manage current and intended application architecture in SonarQube Cloud.
Repositories
Showing 10 of 43 repositories-
virtual-workshop-gitar-dec
Public
Hands-on Gitar workshop: open three pull requests in a sample ticketing API, watch Gitar review all three, then have it fix two and merge one
Uh oh!
There was an error while loading. Please reload this page.
sonar-samples/virtual-workshop-gitar-dec's past year of commit activity Python 0 2 0 0 Updated Dec 2, 2026 -
sample-vortex-factory-integration
Public template
Sample showing one way to integrate Sonar Vortex into your own agentic software factory: Claude Code implements labeled issues, Vortex checks the work, and SonarQube Cloud gates the merge.
sonar-samples/sample-vortex-factory-integration's past year of commit activity Shell 0 MIT 0 0 0 Updated Dec 2, 2026 -
workshop-architecture-gctoolkit
Public
Hands-on architecture workshop with an intended architecture defined in SonarQube, and two branches that show a dependency being introduced and then removed.
Uh oh!
There was an error while loading. Please reload this page.
sonar-samples/workshop-architecture-gctoolkit's past year of commit activity Java 2 MIT 2 0 0 Updated Nov 25, 2026 -
workshop-gitar-nov
Public
Hands-on Gitar workshop: open three pull requests in a sample ticketing API, watch Gitar review all three, then have it fix two and merge one
sonar-samples/workshop-gitar-nov's past year of commit activity Python 6 121 0 23 Updated Nov 6, 2026 -
sample-vortex-semantic-navigation
Public template
Follow-along Java sample for the Sonar Vortex semantic navigation for developers and coding agents blueprint.
sonar-samples/sample-vortex-semantic-navigation's past year of commit activity Java 0 MIT 0 0 0 Updated Nov 3, 2026 -
sample-gitar-agentic-security
Public template
Sample repository for the Gitar Agentic Security for agent skills and instructions blueprint.
sonar-samples/sample-gitar-agentic-security's past year of commit activity Python 0 0 0 0 Updated Oct 30, 2026 - .github Public sonar-samples/.github's past year of commit activity 0 0 0 0 Updated Oct 27, 2026
-
sample-gitar-knowledge
Public template
Runnable TypeScript sample for the Gitar Knowledge for team review conventions blueprint.
sonar-samples/sample-gitar-knowledge's past year of commit activity TypeScript 0 0 0 0 Updated Oct 23, 2026 -
sample-gitar-risk-triage-cross-pr
Public template
Runnable TypeScript sample for the Gitar Risk Triage and Cross-PR Analysis blueprint.
sonar-samples/sample-gitar-risk-triage-cross-pr's past year of commit activity TypeScript 0 0 0 0 Updated Oct 23, 2026 -
blueprint-sonar-vortex-copilot-vs-code
Public
How to set up Sonar Vortex in VS Code with GitHub Copilot
sonar-samples/blueprint-sonar-vortex-copilot-vs-code's past year of commit activity Shell 0 0 0 0 Updated Oct 22, 2026
People
This organization has no public members. You must be a member to see who’s a part of this organization.