cd /news/ai-agents/from-interactive-ai-to-autonomous-se… · home › topics › ai-agents › article
[ARTICLE · art-181551] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

From Interactive AI to Autonomous Security: Building SupplAIGuard with Kiro Headless Mode

A developer built SupplAIGuard, an AI-native software supply-chain security platform, using Kiro CLI's headless mode, custom agents, spec-driven development and GitHub Actions. The project pairs deterministic dependency scanning with AI-agent analysis of AI-specific components such as agent definitions, MCP server configurations and tool permissions, aiming to surface attack paths that traditional scanners miss. It was submitted as a contribution to the Kiroween 2026 hackathon.

recommendation

Scan AI-native apps for combined risks—unrestricted tool permissions, auto-approving MCP servers and weakened instructions—since each config alone can look safe while the combination forms an attack path.

more in playbook: Securing agents and AI tools
by read21 min views1 publishedDec 4, 2026

This how I used Kiro CLI, custom agents, spec-driven development and GitHub Actions to build an AI-native software supply-chain security platform: SupplAIGuard.

AI agents are becoming increasingly capable of writing code, analyzing repositories and automating engineering tasks.

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.

The first requires a developer to initiate and supervise the interaction.

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.

This is what makes Headless Mode interesting.

For my latest project, SupplAIGuard, I've been exploring this concept using Kiro CLI, custom agents and GitHub Actions. 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.

Let's look at what I built, why headless execution matters and how Kiro fits into the architecture.

  1. What is Headless Mode?

Headless mode is the ability to execute an application or development tool without its interactive user interface.

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

Instead of:

Opening an IDE or terminal.

Starting an AI session.

Explaining the task.

Reviewing the response.

Manually continuing the workflow.

You can integrate the agent into an automated process.

For example: A GitHub Actions workflow starts after a pull request.

A security scanner identifies potential vulnerabilities.

Kiro CLI starts in headless mode.

An AI agent analyzes the findings.

The workflow publishes a report or proposes a remediation.

Deterministic checks and human approval control what happens next.

The AI agent becomes another component in your engineering infrastructure.

This is particularly interesting because it changes how we think about AI-assisted development.

We are no longer limited to using AI as a conversational assistant. We can use it as an orchestrated component of automated workflows.

Headless mode doesn't mean removing human oversight. It means removing the need for a human to manually initiate every interaction.

  1. The problem: AI applications have a new attack surface

Traditional software supply-chain security tools are very good at identifying known vulnerable dependencies.

Tools such as Dependabot, npm audit and other dependency scanners can identify packages associated with known security advisories.

But AI-native applications introduce additional components that traditional dependency scanning does not fully understand.

Consider an application containing:

AI agent definitions.

MCP server configurations.

Tool permissions.

Agent skills and instructions.

Dependencies used by agents and their tools.

The security risk isn't necessarily in one individual component.

It can emerge from the combination of several components.

For example: 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.

Looking at each configuration independently may not reveal the complete picture.

This is the problem I wanted to address with SupplAIGuard.

  1. Introducing SupplAIGuard

SupplAIGuard is an AI application supply-chain security project.

Its objective is to go beyond traditional dependency scanners by analyzing the security posture of AI-native applications.

The architecture combines two complementary approaches:

Deterministic security scanning

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

AI-powered analysis and remediation

Kiro agents provide contextual reasoning, connect findings across different files, explain security issues and propose remediation.

The distinction is important.

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.

I want deterministic code to establish facts and AI agents to help interpret those facts.

The architecture follows five stages:

Discover: Identify dependencies, agent definitions and relevant configurations.

Analyze: Evaluate findings and connect risks across components.

Remediate: Propose fixes, subject to explicit approval.

Verify: Re-run deterministic checks to establish whether the issue was actually resolved.

Learn: Use sanitized reports from merged fixes to propose improvements to security rules and test fixtures.

The objective is to close the loop between detection and verified remediation.

  1. Where Kiro Headless Mode comes in

This is where the project gets particularly interesting.

I use Kiro in two different ways.

First, as a development environment with structured specifications, steering documents, custom agents, skills and hooks.

Second, as an execution environment through Kiro CLI headless mode.

The second use is what allows AI reasoning to participate in automated GitHub Actions workflows.

Example 1: Automated security triage

Imagine a repository containing an insecure MCP configuration.

A traditional scanner can identify a matching security rule.

But understanding the implications of that finding may require additional context.

The automated workflow can invoke Kiro CLI headlessly and ask the threat-analysis agent to examine the findings.

The agent can then provide contextual explanations and recommendations.

Importantly, this workflow runs with restricted permissions. The headless triage process uses an isolated working directory and read-only tools.

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.

Example 2: Automated remediation proposals

Finding vulnerabilities is only part of the problem.

Developers also need help fixing them.

SupplAIGuard includes a remediation workflow that allows an agent to propose changes in a separate branch and prepare a draft pull request.

The important distinction is that the agent proposes changes rather than independently merging them.

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.

This provides a much more controlled approach than giving an AI agent unrestricted access to a repository.

Example 3: Learning from verified fixes

One of the more interesting aspects of SupplAIGuard is its learning workflow.

After an approved fix is merged, an opt-in workflow can produce a sanitized report.

The report contains information such as rule identifiers, severities, counts and outcomes rather than repository source code or secrets.

A separate read-only Learner agent reviews the accumulated reports.

It can propose improvements to security rules or suggest regression fixtures through GitHub issues.

A maintainer then decides whether those proposals should become part of the project.

This creates a feedback loop:

Detect → Analyze → Fix → Verify → Learn

The objective isn't to let an AI rewrite its own security engine without supervision.

It's to use AI to identify opportunities for improvement while preserving deterministic validation and human control.

  1. Kiro features I used to build the project

Headless mode is only one part of the story.

A major reason I chose Kiro was the ability to structure the development process around multiple specialized capabilities.

Here are the main Kiro features used in SupplAIGuard.

Spec-driven development

I structured the project using Kiro specifications:

requirements.md

design.md

tasks.md

These live under .kiro/specs/supplaiguard/.

Rather than relying exclusively on conversational prompts, I used specifications to establish requirements, architecture and implementation tasks.

This provides traceability between what the application should do and what needs to be implemented.

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

Steering documents

Security tooling needs consistent rules.

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

This gives the agents a common foundation.

Instead of repeatedly explaining the same constraints, steering documents provide persistent project context.

Custom agents

I created specialized agents with distinct responsibilities:

Coordinator

Discovery

Threat Analysis

Remediation

Verification

Independent Reviewer

The idea is to avoid creating one unrestricted agent responsible for everything.

Each agent has a defined role and permission scope.

For example, only the Remediation agent has write capabilities, and its changes are restricted. The independent reviewer also provides an additional review using a different model.

Agent skills

Skills provide reusable procedures for specific tasks.

In SupplAIGuard, these include:

Dependency inventory.

OSV vulnerability lookups.

AI component security analysis.

Remediation procedures.

Verification.

Shared findings schemas.

This separates reusable operational knowledge from the agent's general instructions.

Agent hooks

Hooks automate parts of the development and analysis lifecycle.

I configured workflows to:

Trigger analysis when manifests or agent configurations change.

Trigger verification after a write.

Request an independent review after a task finishes.

The benefit is consistency.

Important checks are no longer dependent on remembering to ask an agent to perform them manually.

MCP integration

MCP is relevant in two ways.

SupplAIGuard includes a demo MCP server, and it also analyzes MCP configurations as part of its security scanning functionality.

This makes MCP both an integration mechanism and an important part of the security surface being evaluated.

  1. Why automation needs guardrails

There is something I consider more important than making an AI agent autonomous:

Making sure its actions remain controlled.

An AI agent running in CI/CD has access to a potentially sensitive environment.

It may encounter untrusted repository content, malicious instructions or configurations that attempt to influence its behavior.

Simply giving an agent access to GitHub Actions and asking it to be careful isn't a security strategy.

SupplAIGuard uses several layers of protection.

Least privilege

Agents receive different permissions depending on their responsibilities. Five of the six specialized agents are not granted write access.

Human approval

File modifications require approval. High-impact changes, including major dependency updates and permission changes, require explicit approval.

Deterministic fix gates

A separate gate decides which changes are allowed. The LLM doesn't decide its own boundaries.

Independent verification

A successful file edit doesn't mean a vulnerability is resolved. The scanner must run again and verify the result.

No automatic merging

Remediation workflows create draft pull requests. A human remains responsible for merging.

Untrusted input handling

Repository content is treated as data, not as instructions that should override the agent's security policies.

The project also includes 189 policy tests covering its agent permission rules.

My philosophy is straightforward:

Agents propose. Deterministic code validates. Humans approve.

That's the foundation I want for AI-driven security automation.

  1. What I learned from using Kiro

One of my biggest takeaways is that building with AI agents requires more engineering discipline, not less.

It is tempting to focus on how quickly an agent can implement a feature.

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

Kiro's different capabilities helped me approach this as an engineering problem rather than simply a prompting exercise.

A few lessons stand out:

  1. Specifications matter.

The more complex the project becomes, the more important it is to establish explicit requirements and implementation boundaries.

  1. Specialized agents are easier to control.

A discovery agent, a threat-analysis agent and a remediation agent shouldn't necessarily have the same permissions.

  1. Headless execution changes the possibilities.

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

  1. Deterministic verification is essential.

AI-generated explanations and proposed fixes need independent validation.

  1. Automation should be incremental.

Start with read-only analysis, establish trust in the workflow, and introduce controlled write operations only where necessary.

  1. What's next?

SupplAIGuard is an evolving project, and there are still areas to improve.

Some of the next steps include:

Expanding AI-specific security rules.

Improving agent triage and verification coverage.

Extending the learning workflow.

Improving the developer experience around security reports.

Exploring additional ways to orchestrate specialized agents.

I am also exploring a companion project, SupplAIGuard Steward, built around Kiro Crew.

The larger goal is to demonstrate how deterministic security tooling, specialized AI agents and automated workflows can work together.

Conclusion: AI agents beyond the chat window

Headless mode represents an interesting evolution in how we use AI development tools.

Instead of limiting AI agents to interactive coding sessions, we can integrate them into real engineering workflows.

With SupplAIGuard, I'm exploring what that means for software supply-chain security.

Kiro provides the building blocks: specifications, steering, custom agents, skills, hooks and CLI headless execution.

GitHub Actions provides the automation environment.

Deterministic scanning and explicit permissions provide the guardrails.

And human approval remains part of the decision-making process.

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

This article is being written as part of the Kiroween 2026 hackathon.

If you're interested in the implementation, the project is open source:

GitHub: [https://github.com/Fabr1ce/supplaiguard](https://github.com/Fabr1ce/supplaiguard)

Project website: [https://fabr1ce.github.io/supplaiguard/](https://fabr1ce.github.io/supplaiguard/)

I'd be interested to hear how others are using Kiro CLI headless mode and AI agents in their engineering workflows.

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

Let's discuss.

#

Kiro #KiroweenHackathon26 #AIAgents #HeadlessMode #DevSecOps #AISecurity #SoftwareSupplyChain #GitHubActionsFrom Interactive AI to Autonomous Security: Building SupplAIGuard with Kiro Headless Mode

How I used Kiro CLI, custom agents, spec-driven development and GitHub Actions to build an AI-native software supply-chain security platform.

AI agents are becoming increasingly capable of writing code, analyzing repositories and automating engineering tasks.

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.

The first requires a developer to initiate and supervise the interaction.

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.

This is what makes Headless Mode interesting.

For my latest project, SupplAIGuard, I've been exploring this concept using Kiro CLI, custom agents and GitHub Actions. 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.

Let's look at what I built, why headless execution matters and how Kiro fits into the architecture.

  1. What is Headless Mode?

Headless mode is the ability to execute an application or development tool without its interactive user interface.

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

Instead of:

Opening an IDE or terminal.

Starting an AI session.

Explaining the task.

Reviewing the response.

Manually continuing the workflow.

You can integrate the agent into an automated process.

For example: A GitHub Actions workflow starts after a pull request.

A security scanner identifies potential vulnerabilities.

Kiro CLI starts in headless mode.

An AI agent analyzes the findings.

The workflow publishes a report or proposes a remediation.

Deterministic checks and human approval control what happens next.

The AI agent becomes another component in your engineering infrastructure.

This is particularly interesting because it changes how we think about AI-assisted development.

We are no longer limited to using AI as a conversational assistant. We can use it as an orchestrated component of automated workflows.

Headless mode doesn't mean removing human oversight. It means removing the need for a human to manually initiate every interaction.

  1. The problem: AI applications have a new attack surface

Traditional software supply-chain security tools are very good at identifying known vulnerable dependencies.

Tools such as Dependabot, npm audit and other dependency scanners can identify packages associated with known security advisories.

But AI-native applications introduce additional components that traditional dependency scanning does not fully understand.

Consider an application containing:

AI agent definitions.

MCP server configurations.

Tool permissions.

Agent skills and instructions.

Dependencies used by agents and their tools.

The security risk isn't necessarily in one individual component.

It can emerge from the combination of several components.

For example: 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.

Looking at each configuration independently may not reveal the complete picture.

This is the problem I wanted to address with SupplAIGuard.

  1. Introducing SupplAIGuard

SupplAIGuard is an AI application supply-chain security project.

Its objective is to go beyond traditional dependency scanners by analyzing the security posture of AI-native applications.

The architecture combines two complementary approaches:

Deterministic security scanning

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

AI-powered analysis and remediation

Kiro agents provide contextual reasoning, connect findings across different files, explain security issues and propose remediation.

The distinction is important.

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.

I want deterministic code to establish facts and AI agents to help interpret those facts.

The architecture follows five stages:

Discover: Identify dependencies, agent definitions and relevant configurations.

Analyze: Evaluate findings and connect risks across components.

Remediate: Propose fixes, subject to explicit approval.

Verify: Re-run deterministic checks to establish whether the issue was actually resolved.

Learn: Use sanitized reports from merged fixes to propose improvements to security rules and test fixtures.

The objective is to close the loop between detection and verified remediation.

  1. Where Kiro Headless Mode comes in

This is where the project gets particularly interesting.

I use Kiro in two different ways.

First, as a development environment with structured specifications, steering documents, custom agents, skills and hooks.

Second, as an execution environment through Kiro CLI headless mode.

The second use is what allows AI reasoning to participate in automated GitHub Actions workflows.

Example 1: Automated security triage

Imagine a repository containing an insecure MCP configuration.

A traditional scanner can identify a matching security rule.

But understanding the implications of that finding may require additional context.

The automated workflow can invoke Kiro CLI headlessly and ask the threat-analysis agent to examine the findings.

The agent can then provide contextual explanations and recommendations.

Importantly, this workflow runs with restricted permissions. The headless triage process uses an isolated working directory and read-only tools.

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.

Example 2: Automated remediation proposals

Finding vulnerabilities is only part of the problem.

Developers also need help fixing them.

SupplAIGuard includes a remediation workflow that allows an agent to propose changes in a separate branch and prepare a draft pull request.

The important distinction is that the agent proposes changes rather than independently merging them.

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.

This provides a much more controlled approach than giving an AI agent unrestricted access to a repository.

Example 3: Learning from verified fixes

One of the more interesting aspects of SupplAIGuard is its learning workflow.

After an approved fix is merged, an opt-in workflow can produce a sanitized report.

The report contains information such as rule identifiers, severities, counts and outcomes rather than repository source code or secrets.

A separate read-only Learner agent reviews the accumulated reports.

It can propose improvements to security rules or suggest regression fixtures through GitHub issues.

A maintainer then decides whether those proposals should become part of the project.

This creates a feedback loop:

Detect → Analyze → Fix → Verify → Learn

The objective isn't to let an AI rewrite its own security engine without supervision.

It's to use AI to identify opportunities for improvement while preserving deterministic validation and human control.

  1. Kiro features I used to build the project

Headless mode is only one part of the story.

A major reason I chose Kiro was the ability to structure the development process around multiple specialized capabilities.

Here are the main Kiro features used in SupplAIGuard.

Spec-driven development

I structured the project using Kiro specifications:

requirements.md

design.md

tasks.md

These live under .kiro/specs/supplaiguard/.

Rather than relying exclusively on conversational prompts, I used specifications to establish requirements, architecture and implementation tasks.

This provides traceability between what the application should do and what needs to be implemented.

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

Steering documents

Security tooling needs consistent rules.

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

This gives the agents a common foundation.

Instead of repeatedly explaining the same constraints, steering documents provide persistent project context.

Custom agents

I created specialized agents with distinct responsibilities:

Coordinator

Discovery

Threat Analysis

Remediation

Verification

Independent Reviewer

The idea is to avoid creating one unrestricted agent responsible for everything.

Each agent has a defined role and permission scope.

For example, only the Remediation agent has write capabilities, and its changes are restricted. The independent reviewer also provides an additional review using a different model.

Agent skills

Skills provide reusable procedures for specific tasks.

In SupplAIGuard, these include:

Dependency inventory.

OSV vulnerability lookups.

AI component security analysis.

Remediation procedures.

Verification.

Shared findings schemas.

This separates reusable operational knowledge from the agent's general instructions.

Agent hooks

Hooks automate parts of the development and analysis lifecycle.

I configured workflows to:

Trigger analysis when manifests or agent configurations change.

Trigger verification after a write.

Request an independent review after a task finishes.

The benefit is consistency.

Important checks are no longer dependent on remembering to ask an agent to perform them manually.

MCP integration

MCP is relevant in two ways.

SupplAIGuard includes a demo MCP server, and it also analyzes MCP configurations as part of its security scanning functionality.

This makes MCP both an integration mechanism and an important part of the security surface being evaluated.

  1. Why automation needs guardrails

There is something I consider more important than making an AI agent autonomous:

Making sure its actions remain controlled.

An AI agent running in CI/CD has access to a potentially sensitive environment.

It may encounter untrusted repository content, malicious instructions or configurations that attempt to influence its behavior.

Simply giving an agent access to GitHub Actions and asking it to be careful isn't a security strategy.

SupplAIGuard uses several layers of protection.

Least privilege

Agents receive different permissions depending on their responsibilities. Five of the six specialized agents are not granted write access.

Human approval

File modifications require approval. High-impact changes, including major dependency updates and permission changes, require explicit approval.

Deterministic fix gates

A separate gate decides which changes are allowed. The LLM doesn't decide its own boundaries.

Independent verification

A successful file edit doesn't mean a vulnerability is resolved. The scanner must run again and verify the result.

No automatic merging

Remediation workflows create draft pull requests. A human remains responsible for merging.

Untrusted input handling

Repository content is treated as data, not as instructions that should override the agent's security policies.

The project also includes 189 policy tests covering its agent permission rules.

My philosophy is straightforward:

Agents propose. Deterministic code validates. Humans approve.

That's the foundation I want for AI-driven security automation.

  1. What I learned from using Kiro

One of my biggest takeaways is that building with AI agents requires more engineering discipline, not less.

It is tempting to focus on how quickly an agent can implement a feature.

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

Kiro's different capabilities helped me approach this as an engineering problem rather than simply a prompting exercise.

A few lessons stand out:

  1. Specifications matter.

The more complex the project becomes, the more important it is to establish explicit requirements and implementation boundaries.

  1. Specialized agents are easier to control.

A discovery agent, a threat-analysis agent and a remediation agent shouldn't necessarily have the same permissions.

  1. Headless execution changes the possibilities.

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

  1. Deterministic verification is essential.

AI-generated explanations and proposed fixes need independent validation.

  1. Automation should be incremental.

Start with read-only analysis, establish trust in the workflow, and introduce controlled write operations only where necessary.

  1. What's next?

SupplAIGuard is an evolving project, and there are still areas to improve.

Some of the next steps include:

Expanding AI-specific security rules.

Improving agent triage and verification coverage.

Extending the learning workflow.

Improving the developer experience around security reports.

Exploring additional ways to orchestrate specialized agents.

I am also exploring a companion project, SupplAIGuard Steward, built around Kiro Crew.

The larger goal is to demonstrate how deterministic security tooling, specialized AI agents and automated workflows can work together.

Conclusion: AI agents beyond the chat window

Headless mode represents an interesting evolution in how we use AI development tools.

Instead of limiting AI agents to interactive coding sessions, we can integrate them into real engineering workflows.

With SupplAIGuard, I'm exploring what that means for software supply-chain security.

Kiro provides the building blocks: specifications, steering, custom agents, skills, hooks and CLI headless execution.

GitHub Actions provides the automation environment.

Deterministic scanning and explicit permissions provide the guardrails.

And human approval remains part of the decision-making process.

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

This article is being written as part of the Kiroween 2026 hackathon.

If you're interested in the implementation, the project is open source:

GitHub: [https://github.com/Fabr1ce/supplaiguard](https://github.com/Fabr1ce/supplaiguard)

Project website: [https://fabr1ce.github.io/supplaiguard/](https://fabr1ce.github.io/supplaiguard/)

I'd be interested to hear how others are using Kiro CLI headless mode and AI agents in their engineering workflows.

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

Let's discuss.

── more in #ai-agents 4 stories · sorted by recency
── more on @supplaiguard 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/from-interactive-ai-…] indexed:0 read:21min 2026-12-04 · —