<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: F E</title>
    <description>The latest articles on DEV Community by F E (@f_e_464ba455208052ac3119a).</description>
    <link>https://dev.to/f_e_464ba455208052ac3119a</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4281677%2F5c34d140-00a4-4df7-b365-ce0baf5acab1.png</url>
      <title>DEV Community: F E</title>
      <link>https://dev.to/f_e_464ba455208052ac3119a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/f_e_464ba455208052ac3119a"/>
    <language>en</language>
    <item>
      <title>From Interactive AI to Autonomous Security: Building SupplAIGuard with Kiro Headless Mode</title>
      <dc:creator>F E</dc:creator>
      <pubDate>Fri, 04 Dec 2026 03:09:21 +0000</pubDate>
      <link>https://dev.to/f_e_464ba455208052ac3119a/from-interactive-ai-to-autonomous-security-building-supplaiguard-with-kiro-headless-mode-c4f</link>
      <guid>https://dev.to/f_e_464ba455208052ac3119a/from-interactive-ai-to-autonomous-security-building-supplaiguard-with-kiro-headless-mode-c4f</guid>
      <description>&lt;p&gt;This how I used Kiro CLI, custom agents, spec-driven development and GitHub Actions to build an AI-native software supply-chain security platform: &lt;a href="https://fabr1ce.github.io/supplaiguard/" rel="noopener noreferrer"&gt;SupplAIGuard&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;AI agents are becoming increasingly capable of writing code, analyzing repositories and automating engineering tasks.&lt;/p&gt;

&lt;p&gt;But there is a fundamental difference between asking an AI agent to perform a task in an interactive terminal and having that agent participate in an automated engineering workflow.&lt;/p&gt;

&lt;p&gt;The first requires a developer to initiate and supervise the interaction.&lt;/p&gt;

&lt;p&gt;The second opens up an entirely different possibility: AI agents that can participate in CI/CD pipelines, analyze security findings, propose remediations and continuously improve security tooling.&lt;/p&gt;

&lt;p&gt;This is what makes Headless Mode interesting.&lt;/p&gt;

&lt;p&gt;For my latest project, SupplAIGuard, I've been exploring this concept using Kiro CLI, custom agents and GitHub Actions.&lt;/p&gt;

&lt;p&gt;The project is also my contribution to the Kiroween 2026 hackathon, where I'm exploring how Kiro can help move AI-assisted development beyond interactive coding sessions and into real engineering workflows.&lt;/p&gt;

&lt;p&gt;Let's look at what I built, why headless execution matters and how Kiro fits into the architecture.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What is Headless Mode?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Headless mode is the ability to execute an application or development tool without its interactive user interface.&lt;/p&gt;

&lt;p&gt;In the context of AI coding agents, it means running an agent programmatically rather than opening a chat session and manually interacting with it.&lt;/p&gt;

&lt;p&gt;Instead of:&lt;/p&gt;

&lt;p&gt;Opening an IDE or terminal.&lt;br&gt;
Starting an AI session.&lt;br&gt;
Explaining the task.&lt;br&gt;
Reviewing the response.&lt;br&gt;
Manually continuing the workflow.&lt;/p&gt;

&lt;p&gt;You can integrate the agent into an automated process.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;A GitHub Actions workflow starts after a pull request.&lt;br&gt;
A security scanner identifies potential vulnerabilities.&lt;br&gt;
Kiro CLI starts in headless mode.&lt;br&gt;
An AI agent analyzes the findings.&lt;br&gt;
The workflow publishes a report or proposes a remediation.&lt;br&gt;
Deterministic checks and human approval control what happens next.&lt;/p&gt;

&lt;p&gt;The AI agent becomes another component in your engineering infrastructure.&lt;/p&gt;

&lt;p&gt;This is particularly interesting because it changes how we think about AI-assisted development.&lt;/p&gt;

&lt;p&gt;We are no longer limited to using AI as a conversational assistant. We can use it as an orchestrated component of automated workflows.&lt;/p&gt;

&lt;p&gt;Headless mode doesn't mean removing human oversight. It means removing the need for a human to manually initiate every interaction.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The problem: AI applications have a new attack surface&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Traditional software supply-chain security tools are very good at identifying known vulnerable dependencies.&lt;/p&gt;

&lt;p&gt;Tools such as Dependabot, npm audit and other dependency scanners can identify packages associated with known security advisories.&lt;/p&gt;

&lt;p&gt;But AI-native applications introduce additional components that traditional dependency scanning does not fully understand.&lt;/p&gt;

&lt;p&gt;Consider an application containing:&lt;/p&gt;

&lt;p&gt;AI agent definitions.&lt;br&gt;
MCP server configurations.&lt;br&gt;
Tool permissions.&lt;br&gt;
Agent skills and instructions.&lt;br&gt;
Dependencies used by agents and their tools.&lt;/p&gt;

&lt;p&gt;The security risk isn't necessarily in one individual component.&lt;/p&gt;

&lt;p&gt;It can emerge from the combination of several components.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;An agent with unrestricted tool permissions, an MCP server configured to automatically approve tools and an instruction that weakens safety constraints can create a dangerous attack path.&lt;/p&gt;

&lt;p&gt;Looking at each configuration independently may not reveal the complete picture.&lt;/p&gt;

&lt;p&gt;This is the problem I wanted to address with SupplAIGuard.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Introducing SupplAIGuard&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;SupplAIGuard is an AI application supply-chain security project.&lt;/p&gt;

&lt;p&gt;Its objective is to go beyond traditional dependency scanners by analyzing the security posture of AI-native applications.&lt;/p&gt;

&lt;p&gt;The architecture combines two complementary approaches:&lt;/p&gt;

&lt;p&gt;Deterministic security scanning&lt;/p&gt;

&lt;p&gt;The scanner performs reproducible checks, including dependency vulnerability lookups and security rules covering MCP configurations, agent definitions and other AI-specific components.&lt;/p&gt;

&lt;p&gt;AI-powered analysis and remediation&lt;/p&gt;

&lt;p&gt;Kiro agents provide contextual reasoning, connect findings across different files, explain security issues and propose remediation.&lt;/p&gt;

&lt;p&gt;The distinction is important.&lt;/p&gt;

&lt;p&gt;I don't want an LLM deciding whether a known security rule matched or whether a vulnerability exists when that can be determined through code.&lt;/p&gt;

&lt;p&gt;I want deterministic code to establish facts and AI agents to help interpret those facts.&lt;/p&gt;

&lt;p&gt;The architecture follows five stages:&lt;/p&gt;

&lt;p&gt;Discover: Identify dependencies, agent definitions and relevant configurations.&lt;br&gt;
Analyze: Evaluate findings and connect risks across components.&lt;br&gt;
Remediate: Propose fixes, subject to explicit approval.&lt;br&gt;
Verify: Re-run deterministic checks to establish whether the issue was actually resolved.&lt;br&gt;
Learn: Use sanitized reports from merged fixes to propose improvements to security rules and test fixtures.&lt;/p&gt;

&lt;p&gt;The objective is to close the loop between detection and verified remediation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Where Kiro Headless Mode comes in&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is where the project gets particularly interesting.&lt;/p&gt;

&lt;p&gt;I use Kiro in two different ways.&lt;/p&gt;

&lt;p&gt;First, as a development environment with structured specifications, steering documents, custom agents, skills and hooks.&lt;/p&gt;

&lt;p&gt;Second, as an execution environment through Kiro CLI headless mode.&lt;/p&gt;

&lt;p&gt;The second use is what allows AI reasoning to participate in automated GitHub Actions workflows.&lt;/p&gt;

&lt;p&gt;Example 1: Automated security triage&lt;/p&gt;

&lt;p&gt;Imagine a repository containing an insecure MCP configuration.&lt;/p&gt;

&lt;p&gt;A traditional scanner can identify a matching security rule.&lt;/p&gt;

&lt;p&gt;But understanding the implications of that finding may require additional context.&lt;/p&gt;

&lt;p&gt;The automated workflow can invoke Kiro CLI headlessly and ask the threat-analysis agent to examine the findings.&lt;/p&gt;

&lt;p&gt;The agent can then provide contextual explanations and recommendations.&lt;/p&gt;

&lt;p&gt;Importantly, this workflow runs with restricted permissions. The headless triage process uses an isolated working directory and read-only tools.&lt;/p&gt;

&lt;p&gt;This is a good example of where headless mode becomes useful: the agent can participate in CI without requiring someone to open an interactive session.&lt;/p&gt;

&lt;p&gt;Example 2: Automated remediation proposals&lt;/p&gt;

&lt;p&gt;Finding vulnerabilities is only part of the problem.&lt;/p&gt;

&lt;p&gt;Developers also need help fixing them.&lt;/p&gt;

&lt;p&gt;SupplAIGuard includes a remediation workflow that allows an agent to propose changes in a separate branch and prepare a draft pull request.&lt;/p&gt;

&lt;p&gt;The important distinction is that the agent proposes changes rather than independently merging them.&lt;/p&gt;

&lt;p&gt;A deterministic fix gate controls which files can be changed, the scanner checks the result again, and a human remains responsible for approving and merging the pull request.&lt;/p&gt;

&lt;p&gt;This provides a much more controlled approach than giving an AI agent unrestricted access to a repository.&lt;/p&gt;

&lt;p&gt;Example 3: Learning from verified fixes&lt;/p&gt;

&lt;p&gt;One of the more interesting aspects of SupplAIGuard is its learning workflow.&lt;/p&gt;

&lt;p&gt;After an approved fix is merged, an opt-in workflow can produce a sanitized report.&lt;/p&gt;

&lt;p&gt;The report contains information such as rule identifiers, severities, counts and outcomes rather than repository source code or secrets.&lt;/p&gt;

&lt;p&gt;A separate read-only Learner agent reviews the accumulated reports.&lt;/p&gt;

&lt;p&gt;It can propose improvements to security rules or suggest regression fixtures through GitHub issues.&lt;/p&gt;

&lt;p&gt;A maintainer then decides whether those proposals should become part of the project.&lt;/p&gt;

&lt;p&gt;This creates a feedback loop:&lt;/p&gt;

&lt;p&gt;Detect → Analyze → Fix → Verify → Learn&lt;/p&gt;

&lt;p&gt;The objective isn't to let an AI rewrite its own security engine without supervision.&lt;/p&gt;

&lt;p&gt;It's to use AI to identify opportunities for improvement while preserving deterministic validation and human control.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Kiro features I used to build the project&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Headless mode is only one part of the story.&lt;/p&gt;

&lt;p&gt;A major reason I chose Kiro was the ability to structure the development process around multiple specialized capabilities.&lt;/p&gt;

&lt;p&gt;Here are the main Kiro features used in SupplAIGuard.&lt;/p&gt;

&lt;p&gt;Spec-driven development&lt;/p&gt;

&lt;p&gt;I structured the project using Kiro specifications:&lt;/p&gt;

&lt;p&gt;requirements.md&lt;br&gt;
design.md&lt;br&gt;
tasks.md&lt;/p&gt;

&lt;p&gt;These live under .kiro/specs/supplaiguard/.&lt;/p&gt;

&lt;p&gt;Rather than relying exclusively on conversational prompts, I used specifications to establish requirements, architecture and implementation tasks.&lt;/p&gt;

&lt;p&gt;This provides traceability between what the application should do and what needs to be implemented.&lt;/p&gt;

&lt;p&gt;It also makes a difference when working on security-sensitive functionality: requirements and acceptance criteria should be explicit rather than inferred from a conversation.&lt;/p&gt;

&lt;p&gt;Steering documents&lt;/p&gt;

&lt;p&gt;Security tooling needs consistent rules.&lt;/p&gt;

&lt;p&gt;The .kiro/steering/ directory contains shared project guidance covering security policies, scoring rules and the security rule catalog.&lt;/p&gt;

&lt;p&gt;This gives the agents a common foundation.&lt;/p&gt;

&lt;p&gt;Instead of repeatedly explaining the same constraints, steering documents provide persistent project context.&lt;/p&gt;

&lt;p&gt;Custom agents&lt;/p&gt;

&lt;p&gt;I created specialized agents with distinct responsibilities:&lt;/p&gt;

&lt;p&gt;Coordinator&lt;br&gt;
Discovery&lt;br&gt;
Threat Analysis&lt;br&gt;
Remediation&lt;br&gt;
Verification&lt;br&gt;
Independent Reviewer&lt;/p&gt;

&lt;p&gt;The idea is to avoid creating one unrestricted agent responsible for everything.&lt;/p&gt;

&lt;p&gt;Each agent has a defined role and permission scope.&lt;/p&gt;

&lt;p&gt;For example, only the Remediation agent has write capabilities, and its changes are restricted.&lt;/p&gt;

&lt;p&gt;The independent reviewer also provides an additional review using a different model.&lt;/p&gt;

&lt;p&gt;Agent skills&lt;/p&gt;

&lt;p&gt;Skills provide reusable procedures for specific tasks.&lt;/p&gt;

&lt;p&gt;In SupplAIGuard, these include:&lt;/p&gt;

&lt;p&gt;Dependency inventory.&lt;br&gt;
OSV vulnerability lookups.&lt;br&gt;
AI component security analysis.&lt;br&gt;
Remediation procedures.&lt;br&gt;
Verification.&lt;br&gt;
Shared findings schemas.&lt;/p&gt;

&lt;p&gt;This separates reusable operational knowledge from the agent's general instructions.&lt;/p&gt;

&lt;p&gt;Agent hooks&lt;/p&gt;

&lt;p&gt;Hooks automate parts of the development and analysis lifecycle.&lt;/p&gt;

&lt;p&gt;I configured workflows to:&lt;/p&gt;

&lt;p&gt;Trigger analysis when manifests or agent configurations change.&lt;br&gt;
Trigger verification after a write.&lt;br&gt;
Request an independent review after a task finishes.&lt;/p&gt;

&lt;p&gt;The benefit is consistency.&lt;/p&gt;

&lt;p&gt;Important checks are no longer dependent on remembering to ask an agent to perform them manually.&lt;/p&gt;

&lt;p&gt;MCP integration&lt;/p&gt;

&lt;p&gt;MCP is relevant in two ways.&lt;/p&gt;

&lt;p&gt;SupplAIGuard includes a demo MCP server, and it also analyzes MCP configurations as part of its security scanning functionality.&lt;/p&gt;

&lt;p&gt;This makes MCP both an integration mechanism and an important part of the security surface being evaluated.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Why automation needs guardrails&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is something I consider more important than making an AI agent autonomous:&lt;/p&gt;

&lt;p&gt;Making sure its actions remain controlled.&lt;/p&gt;

&lt;p&gt;An AI agent running in CI/CD has access to a potentially sensitive environment.&lt;/p&gt;

&lt;p&gt;It may encounter untrusted repository content, malicious instructions or configurations that attempt to influence its behavior.&lt;/p&gt;

&lt;p&gt;Simply giving an agent access to GitHub Actions and asking it to be careful isn't a security strategy.&lt;/p&gt;

&lt;p&gt;SupplAIGuard uses several layers of protection.&lt;/p&gt;

&lt;p&gt;Least privilege&lt;/p&gt;

&lt;p&gt;Agents receive different permissions depending on their responsibilities. Five of the six specialized agents are not granted write access.&lt;/p&gt;

&lt;p&gt;Human approval&lt;/p&gt;

&lt;p&gt;File modifications require approval. High-impact changes, including major dependency updates and permission changes, require explicit approval.&lt;/p&gt;

&lt;p&gt;Deterministic fix gates&lt;/p&gt;

&lt;p&gt;A separate gate decides which changes are allowed. The LLM doesn't decide its own boundaries.&lt;/p&gt;

&lt;p&gt;Independent verification&lt;/p&gt;

&lt;p&gt;A successful file edit doesn't mean a vulnerability is resolved. The scanner must run again and verify the result.&lt;/p&gt;

&lt;p&gt;No automatic merging&lt;/p&gt;

&lt;p&gt;Remediation workflows create draft pull requests. A human remains responsible for merging.&lt;/p&gt;

&lt;p&gt;Untrusted input handling&lt;/p&gt;

&lt;p&gt;Repository content is treated as data, not as instructions that should override the agent's security policies.&lt;/p&gt;

&lt;p&gt;The project also includes 189 policy tests covering its agent permission rules.&lt;/p&gt;

&lt;p&gt;My philosophy is straightforward:&lt;/p&gt;

&lt;p&gt;Agents propose. Deterministic code validates. Humans approve.&lt;/p&gt;

&lt;p&gt;That's the foundation I want for AI-driven security automation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What I learned from using Kiro&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One of my biggest takeaways is that building with AI agents requires more engineering discipline, not less.&lt;/p&gt;

&lt;p&gt;It is tempting to focus on how quickly an agent can implement a feature.&lt;/p&gt;

&lt;p&gt;But the real challenge is building a system where multiple agents can operate consistently, understand their responsibilities and work within enforceable boundaries.&lt;/p&gt;

&lt;p&gt;Kiro's different capabilities helped me approach this as an engineering problem rather than simply a prompting exercise.&lt;/p&gt;

&lt;p&gt;A few lessons stand out:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Specifications matter.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The more complex the project becomes, the more important it is to establish explicit requirements and implementation boundaries.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Specialized agents are easier to control.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A discovery agent, a threat-analysis agent and a remediation agent shouldn't necessarily have the same permissions.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Headless execution changes the possibilities.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It allows AI workflows to become part of CI/CD rather than requiring an interactive developer session for every task.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Deterministic verification is essential.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;AI-generated explanations and proposed fixes need independent validation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Automation should be incremental.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Start with read-only analysis, establish trust in the workflow, and introduce controlled write operations only where necessary.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What's next?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;SupplAIGuard is an evolving project, and there are still areas to improve.&lt;/p&gt;

&lt;p&gt;Some of the next steps include:&lt;/p&gt;

&lt;p&gt;Expanding AI-specific security rules.&lt;br&gt;
Improving agent triage and verification coverage.&lt;br&gt;
Extending the learning workflow.&lt;br&gt;
Improving the developer experience around security reports.&lt;br&gt;
Exploring additional ways to orchestrate specialized agents.&lt;/p&gt;

&lt;p&gt;I am also exploring a companion project, SupplAIGuard Steward, built around Kiro Crew.&lt;/p&gt;

&lt;p&gt;The larger goal is to demonstrate how deterministic security tooling, specialized AI agents and automated workflows can work together.&lt;/p&gt;

&lt;p&gt;Conclusion: AI agents beyond the chat window&lt;/p&gt;

&lt;p&gt;Headless mode represents an interesting evolution in how we use AI development tools.&lt;/p&gt;

&lt;p&gt;Instead of limiting AI agents to interactive coding sessions, we can integrate them into real engineering workflows.&lt;/p&gt;

&lt;p&gt;With SupplAIGuard, I'm exploring what that means for software supply-chain security.&lt;/p&gt;

&lt;p&gt;Kiro provides the building blocks: specifications, steering, custom agents, skills, hooks and CLI headless execution.&lt;/p&gt;

&lt;p&gt;GitHub Actions provides the automation environment.&lt;/p&gt;

&lt;p&gt;Deterministic scanning and explicit permissions provide the guardrails.&lt;/p&gt;

&lt;p&gt;And human approval remains part of the decision-making process.&lt;/p&gt;

&lt;p&gt;The result is an approach where AI doesn't just identify problems. It can help investigate them, propose fixes and support continuous improvement.&lt;/p&gt;

&lt;p&gt;This article is being written as part of the Kiroween 2026 hackathon.&lt;/p&gt;

&lt;p&gt;If you're interested in the implementation, the project is open source:&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/Fabr1ce/supplaiguard" rel="noopener noreferrer"&gt;https://github.com/Fabr1ce/supplaiguard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Project website: &lt;a href="https://fabr1ce.github.io/supplaiguard/" rel="noopener noreferrer"&gt;https://fabr1ce.github.io/supplaiguard/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd be interested to hear how others are using Kiro CLI headless mode and AI agents in their engineering workflows.&lt;/p&gt;

&lt;p&gt;Are you already integrating AI agents into CI/CD, or are you still primarily using them through interactive development environments?&lt;/p&gt;

&lt;p&gt;Let's discuss.&lt;/p&gt;

</description>
      <category>kiroweenhackathon26</category>
      <category>cybersecurity</category>
      <category>ai</category>
      <category>kiro</category>
    </item>
  </channel>
</rss>
