AI coding assistants are actually a quite common a part of developer workflows. Virtually everybody writing code now makes use of AI to put in writing logic, clarify unfamiliar tasks, and remove repetitive work. Those self same brokers additionally work the place secrets and techniques are inclined to stay, the laptop computer.
Secrets and techniques seem in .env recordsdata, CI configurations, and deployment scripts. In addition they seem in native repositories, shell historical past, and cloud credential recordsdata. AI coding assistants more and more learn, edit, and summarize those self same supplies as a part of regular improvement work.
This creates a brand new requirement for developer safety. Brokers must know the right way to use the identical safety workflows that builders ought to already be counting on. They should know when to scan for secrets and techniques, which device to make use of, and the right way to interpret the outcomes. In addition they want steering that retains remediation targeted on the true danger.
GitGuardian Agent Expertise are constructed for that shift. Our new open-source challenge teaches AI coding assistants to make use of GitGuardian in a number of methods: by way of ggshield, our command line interface, and the GitGuardian MCP server the place acceptable. The abilities clarify when to scan, which flags to make use of, and the right way to stroll the developer by remediation.

For AI-assisted improvement, safety wants to point out up the place the work is going on. We’re serving to groups understand a safety workflow that begins contained in the developer dialog, the place a developer can ask whether or not a repository is secure earlier than the attackers act.
Brokers Want Playbooks
A ability is a human-readable instruction file, saved in markdown, that an agent can load when it must carry out a selected process. It offers the agent a playbook earlier than it begins performing. The GitGuardian Agent Expertise playbook teaches the agent the right way to use ggshield safely and effectively.
Builders hardly ever describe safety duties in product or advertising terminology. They normally describe the priority in plain language, drawing on their day-to-day expertise. A coder may not say, “I believe I’ve fallen sufferer to Shai-Hulud mini as a result of updating an NPM bundle just lately,” however they could say, “I believe I’ve a problem. Is my code secure?” The agent must translate that concern into the appropriate sequence of actions.
That translation is the purpose of the ability. The agent can join the developer’s concern to secret scanning. It might probably resolve whether or not the repository wants a current-path scan or a full git historical past scan. It additionally means the agent can clarify what it present in phrases that the developer can act on.
The developer, utilizing the ability, doesn’t must cease and seek for set up directions for the wanted instruments. They don’t must know the precise command earlier than asking for assist. The agent makes use of the ability to get from concern to motion.
Importantly, the ability helps the agent comply with a recognized workflow every time. That offers safety groups a greater path for delivering steering into the developer surroundings.
Directions Formed By Human Expertise
GitGuardian Agent Expertise are pushed by 5 “slash instructions” that cowl a number of sensible workflows builders already encounter.
A slash command is an express, human-initiated shortcut that’s invoked as a part of a path, following a / character, used to set off particular, repeatable duties or directions on demand. The agent doesn’t must derive a brand new plan to deal with the request; it merely follows the prebuilt directions, constructed on real-world experience and expertise, to effectively and reliably get the job achieved.

Let’s take a more in-depth have a look at the slash instructions presently accessible.
The /gitguardian:scan-secrets command instructs brokers to make use of the GitGuardian CLI, ggshield, to carry out the scan for secrets and techniques in paths, staged adjustments, and commits. It additionally helps deeper scans throughout full historical past, Docker pictures, and packages. That is the primary command to be invoked, as its key rule from the ability is “scan first, then remediate from structured findings.” Apart from particular prompts, the ability teaches the agent to invoke the command when dealing with credentials, enhancing .env or CI recordsdata, making ready a commit or push, or auditing a repo.
The /gitguardian:create-honeytokens command helps brokers generate and place decoy AWS credentials. Honeytokens are most helpful after they seem in locations attackers are prone to search after gaining entry, together with .env.instance recordsdata, inner docs, and runbooks. The core rule is straightforward: “plant the place attackers look, not the place engineers import.”
The /gitguardian:scan-machine command expands the scope from a repository or folder to the entire developer machine. This ability helps audit native repositories, dotfiles, and cloud CLI configs. It additionally covers shell historical past, AI agent caches, and deserted challenge timber. That makes it helpful when a machine is investigated after a suspected compromise. The ability tells the agent that endpoint scanning have to be enabled within the GitGuardian workspace in an effort to use this command.
The /gitguardian:check-hmsl command tells brokers the right way to use HasMySecretLeaked checks with out exposing plaintext secrets and techniques to the platform. This ability is designed for moments when a developer already has a token, key, or inherited credential checklist and must know whether or not that secret has already appeared in listed public leaks. Importantly, the ability invokes this on user-run handoff solely. The agent can put together the command and interpret sanitized output, nevertheless it should not learn or run in opposition to the credential file itself.
The /gitguardian:install-git-hooks command helps brokers set up ggshield as a git pre-commit or pre-push hook. These hooks block secrets and techniques earlier than they enter the repo’s historical past and provides builders a guardrail in the intervening time of commit or push. The agent is advised that these hooks shield future work, and current code and historical past nonetheless must be scanned. Earlier than setting any international hooks that have an effect on your entire developer machine slightly than simply the present working listing, the agent will search human approval.
These instructions are routinely triggered from context. The developer doesn’t know the precise GitGuardian command to invoke.
These instructions flip actual safety expertise into repeatable agent habits. The agent can nonetheless adapt to the consumer’s surroundings, however the workflow begins from examined safety steering as a substitute of improvisation.
ggshield As Half Of The Agent Workflow
As talked about earlier than, GitGuardian Agent Expertise explicitly tells the agent to make use of ggshield.
Earlier than it runs ggshield, although, it instructs the agent to verify whether or not the CLI is already put in. If not accessible, it installs ggshield routinely, leveraging OAuth out-of-band (oob) login technique when wanted. As soon as put in, the total energy of the CLI is on the market to the agent and the developer transferring forward. AI coding assistants use ggshield the identical method a developer would, making the workflow acquainted and constant.

It’s price noting right here that the agent makes use of ggshield as a substitute of inventing its personal secret scanning logic. GitGuardian’s secrets and techniques detection engine is designed to detect and validate secrets and techniques in any textual content file, repo, or system the place secrets and techniques might doubtlessly be discovered. Secret detection ought to come from a confirmed scanner, not from no matter pattern-matching an agent occurs to generate throughout a chat session.
The agent doesn’t must cause from scratch about what counts as a secret, which recordsdata to examine, or which git boundary issues most. It might probably name the device constructed for that job after which work from structured findings.
This additionally creates a greater belief mannequin for AI-assisted safety. The agent turns into the orchestrator, whereas ggshield stays the detection engine. That retains the agent targeted on setup, command choice, interpretation, and remediation planning. It additionally offers safety groups a workflow they’ll audit, doc, and reproduce.
Discovering a secret is barely the beginning of the work. Remediation relies on who owns the key, what it may entry, and the place it leaked. That’s what the ability handles subsequent.
Remediation Wants Context
AI assistants can provide unhealthy recommendation after they lack safety context. A generic reply could leap straight to rewriting git historical past. That advice can create further work whereas leaving the stay credential uncovered.
GitGuardian Agent Expertise information the agent towards higher remediation steps. The agent can ask who owns the key. It might probably ask what methods the credential can attain. It might probably ask whether or not the affected system is manufacturing, staging, or improvement.

These questions assist construct a sensible plan. A developer could personal one secret and wish one other staff to rotate a second one. The agent will help draft Jira or Linear tickets for that handoff. It might probably additionally summarize the findings in language that the proudly owning staff can act on.
Good remediation has a sequence. Scan first. Verify validity. Establish possession, if attainable. Rotate or revoke. Lastly, add prevention so the identical sample doesn’t repeat. Thankfully, the ability additionally gives brokers with entry to the GitGuardian platform past the CLI.
Expertise and MCP Work Collectively
GitGuardian’s Developer MCP server and Agent Expertise give AI coding assistants two associated, however totally different sorts of assist. Expertise inform the agent the right way to method the work. MCP offers the agent a structured solution to collect GitGuardian context and take motion by accepted instruments.
Brokers want greater than a neighborhood scan outcome to find out how a lot danger a repo with uncovered secrets and techniques poses. ggshield can inform the agent what was discovered, whereas MCP will help the agent perceive the broader safety image round that discovering. The agent can use GitGuardian workspace context to know incident state, severity, project, supply, and remediation standing.
This turns the agent into a greater safety associate. A secret discovering turns into a part of an investigation as a substitute of a standalone CLI outcome. The agent can search for associated incidents, perceive whether or not a discovering is already recognized, and assist the developer keep away from duplicate work. It might probably additionally assist join the native proof to the staff workflow already occurring inside GitGuardian.
Expertise present the sequence. ggshield gives the scan. MCP gives the context.
This division of labor means the agent doesn’t must invent a response from scratch. The developer will get a extra full reply with out leaving the AI-assisted workflow.
Cross-Agent Assist Matches How Builders Work
GitGuardian Agent Expertise are packaged for the truth that each dev has their most popular taste of agent. We’re proud to assist any assistant that may leverage abilities. Claude Code customers can add the repository as a plugin market. Codex customers can set up the GitGuardian plugin from the plugin browser. VS Code customers can set up the plugin from supply. Cursor and plenty of different brokers can use the abilities.sh CLI.
That broad packaging helps safety comply with the developer workflow. The identical core steering can present up throughout a number of agent environments. Builders can use the assistant they like whereas nonetheless getting a constant GitGuardian workflow.
We’re additionally proud to launch this ability as open supply software program. The repository is public and MIT-licensed. Groups can examine the directions, overview the habits, and contribute enhancements. That transparency is vital when brokers start taking extra motion inside improvement environments, particularly for safety groups that demand workflows they’ll examine and audit.
With Expertise, Safety Turns into Half Of The Dialog
Safety instruments usually lose adoption after they require builders to depart the circulation of labor. AI coding assistants give safety groups a brand new interface. The developer can keep within the dialog and ask for the specified end result.
The developer doesn’t must memorize instructions earlier than asking for assist. They’ll describe the safety concern in plain language. The agent handles the mechanics with steering from the ability.
That is how developer-first safety ought to evolve within the AI period. The management ought to transfer nearer to the second of danger. The steering ought to seem whereas the developer nonetheless has context. Any prevention steps ought to be straightforward or automated to implement earlier than the following commit.
AI Coding Assistants Want Safety Expertise
Hardcoded secrets and techniques stay persistent as a result of they stay within the regular locations builders work. They seem in code, config, and historical past. AI coding assistants now function in those self same areas. The pace beneficial properties that builders expertise must be balanced with safety steering constructed into the workflow.
GitGuardian Agent Expertise brings the most effective of what GitGuardian can supply into the AI coding session. They provide brokers a sensible method to make use of ggshield and GitGuardian workflows with out making the developer translate a safety concern right into a command sequence.
AI coding assistants are a part of how software program will get constructed. Now, GitGuardian Agent Expertise assist guarantee in addition they turn into a part of how software program is constructed securely. GitGuardian Agent Expertise can be found now, without spending a dime, for all customers on all plan ranges. Some particular options, like Honeytokens and Developer Endpoint Safety, are topic to plan-level necessities.
Secret scanning with ggshield, by the ability or manually, will at all times be accessible to all. We’re dedicated to serving to everybody keep secure and struggle secret sprawl.









