AWS Builder Center
Kiro Agent Harness Architecture - Built-In Capabilities and the Layers Beyond

Kiro Agent Harness Architecture - Built-In Capabilities and the Layers Beyond

Kiro brings agentic development workflows to the IDE, CLI, and web, helping builders move from an idea to structured specifications, implementation, and verification.

Kiro's built-in agent harness surrounds the underlying model with specifications, steering, context, tools, permissions, hooks, custom agents, subagents, and feedback loops that guide how work is planned, executed, observed, and checked. Harness engineering itself is model-provider agnostic: the model supplies intelligence, while the harness determines the context it receives, the actions it may take, the controls it must respect, and the evidence required for completion. This architecture begins with Kiro's built-in harness capabilities, then shows the enterprise controls and runtime services teams can add around them.
Agent = Model + Harness
Kiro IDE, Kiro CLI, and Kiro Web form the developer-facing orchestration layer. They translate intent into specifications, provide controlled access to tools, coordinate specialized agents, and apply feedback during implementation. Around those built-in capabilities, teams can add enterprise delivery controls, production isolation, evaluation, durable memory, and operational telemetry.
Scope: This is a reference architecture, not a claim that every component is native to every Kiro surface. The document distinguishes native Kiro capabilities, team-configured architectural patterns, and external enterprise extensions.
The result is best understood as two concentric layers:
🟣 Built into Kiro: Specifications, steering, skills, Powers, custom agents, subagents, hooks, permissions, tools, MCP integration, ACP interoperability, model selection, parallel task execution, and session context.
🟢 Built beyond Kiro: CI/CD gates, production policy, isolated runtime, durable cross-session memory, independent evaluation, audit trails, enterprise observability, and human approval checkpoints.
Capability by Kiro Surface
Capability
Kiro IDE
Kiro CLI
Kiro Web
Specs and structured tasks
Full interactive workflow
Goal/spec workflows
Autonomous planning; behavior differs
Steering, Skills, and Powers
Workspace-supported
Workspace and user scope
Surface-dependent
Custom agents and subagents
Supported
Supported
Managed autonomous delegation
Hooks and permissions
Local lifecycle controls
CLI lifecycle controls
Not equivalent to local hooks
MCP and tool integration
Supported
Supported
Surface-dependent
Capability caveat: This matrix is intentionally directional rather than a feature-parity contract. Availability can vary by plan, version, region, and product surface; consult the current Kiro documentation before implementation.

The Continuous Execution Loop

🟣 REASON  ━━▶  🔵 ACT  ━━▶  🟠 OBSERVE  ━━▶  🟢 VERIFY  ↻
Kiro uses an iterative agentic workflow:
•       Reason: Interpret the specification, repository context, steering guidance, and current task.
•       Act: Edit files, run commands, invoke tools, or delegate work to a subagent.
•       Observe: Read tool responses, compiler output, test results, logs, and changed files.
•       Verify: Compare the result with requirements, task completion criteria, and quality gates.
Verification feeds the next reasoning cycle. Kiro can iterate within configured product and user limits until acceptance criteria are met, or return unresolved evidence for human review.

Architectural Note: REASON → ACT → OBSERVE → VERIFY is our architectural interpretation of Kiro's iterative workflow, not a formal product-state model. The IDE, CLI, and Web surfaces expose different autonomy, delegation, and lifecycle controls. Runs remain bounded by product configuration and user controls; unresolved results should return for human review.

1. Kiro Specifications: Intent as a Durable Control

Kiro's spec-driven workflow turns an idea into structured artifacts:
•       requirements.md defines user stories and acceptance criteria.
•       design.md records architecture, interfaces, data flows, and technical decisions.
•       tasks.md decomposes the design into sequenced, testable implementation work.
These files create a durable contract between developers and agents. The specification remains the source of truth, while code becomes an implementation artifact derived from it.
Kiro supports parallel task execution: independent tasks run concurrently in waves, with each wave starting after its dependencies complete. This is a first-class IDE capability that can reduce elapsed implementation time for multi-task specs.

2. Steering, Skills, and Powers: Supplying the Right Context

Specifications describe what to build. Kiro's context mechanisms help the agent understand how a particular organization or repository expects it to be built.
•       Steering files capture architecture conventions, technology choices, security expectations, coding standards, and repository-specific guidance. Supports four inclusion modes: always, auto (description-matched), fileMatch (pattern-triggered), and manual (on-demand via slash commands).
•       AGENTS.md support provides portable instructions that can be shared with other compatible coding tools.
•       Skills package reusable procedures and domain knowledge following the open Agent Skills standard. They load on-demand via progressive disclosure instead of permanently occupying the context window.
•       Kiro Powers combine a POWER.md steering file, MCP server configuration, and optional hooks into a unified bundle for a particular technology. Powers activate dynamically based on keywords—when you mention "payment" or "checkout," the Stripe power loads; when you switch topics, it deactivates.
This progressive context loading helps reduce context overload. The objective is not to provide the agent with every available document, but to provide the most relevant knowledge at the moment it is needed.

3. Custom Agents and Subagents: Specialization with Boundaries

Kiro supports custom agents with their own instructions, tools, model configuration, and permission rules. Each agent is defined as a Markdown file with YAML frontmatter, stored in .kiro/agents/ (workspace scope) or ~/.kiro/agents/ (global). Subagents allow work to be delegated to specialized agent sessions that run in isolated context windows.
Our diagram uses Planner, Generator, and Evaluator as an architectural pattern implemented with these capabilities:
🟣 Planner: Decomposes the objective and defines what "done" means.
🔵 Generator: Implements the approved tasks.
🟢 Evaluator: Independently checks the result against the specification.
These are not fixed Kiro role names. They are architectural roles teams can configure using custom agents and subagent delegation. Built-in agent types and availability can vary by product surface and release.
Separating implementation from evaluation is valuable because an agent reviewing its own work may be overly optimistic. An independent evaluator can challenge assumptions, identify missing requirements, and request another execution cycle.

4. Tools and Integration: Giving the Agent an Action Surface

Kiro provides controlled access to capabilities such as:
•       Filesystem operations (read, write, search)
•       Shell and code execution
•       Web content retrieval
•       Repository and codebase context
•       MCP-connected tools and services
MCP (Model Context Protocol) extends the agent's tool surface outward by connecting it to external systems through a standard tool interface. ACP (Agent Client Protocol) serves a different purpose: it implements an open standard that enables Kiro's agent to work inside any ACP-compatible editor—including JetBrains IDEs, Zed, and others—through standardized JSON-RPC communication over stdin/stdout. Where MCP extends what the agent can do, ACP extends where the agent can run.
Tool availability should follow least privilege. A planning agent may only need read access, while an implementation agent may require file writes and controlled command execution. Access can be scoped with per-agent permission rules using allow, deny, or ask behavior.

5. Hooks and Permissions: The Enforcement Layer

Instructions describe preferred behavior. Hooks and permissions make important parts of that behavior enforceable.
🟠 PostFileSave / PostFileCreate hooks: Run formatting, linting, or targeted tests when files are saved or created.
🟠 PreToolUse hooks: Inspect or block risky actions before execution (exit code 2 = block).
🟠 PreTaskExec / PostTaskExec hooks: Validate prerequisites before spec tasks begin; check completion criteria after.
🟠 UserPromptSubmit hooks: Validate or enrich user prompts before the agent processes them.
🟠 Pre-commit enforcement patterns: Combine PostFileSave and PostTaskExec hooks to scan for security leaks, enforce coding standards, and validate changes before they reach version control. For broader gates (full test suites, deployment policies), integrate with external CI/CD pipelines.
A useful principle is:
Success is silent. Failures are verbose.
Passing checks do not need to add noise to the context. Failed checks should return clear evidence that allows the agent to diagnose and correct the problem. Permissions resolve by restrictiveness: deny > ask > allow.
Security boundary: Kiro hooks and permissions provide developer-workflow controls. They are not substitutes for production authorization, sandboxing, secrets isolation, or deterministic enterprise policy.

6. The Ratchet: Turning Failures into Improvements

Harness engineering treats agent mistakes as system signals. The Ratchet is the meta-control that makes the enforcement layer self-improving:
•       When a failure reveals a missing convention, we update steering.
•       When it exposes missing knowledge, we add or refine a skill.
•       When an unsafe command is attempted, we tighten permissions or add a hook.
•       When incorrect code passes review, we add a test or independent evaluation step.
Observed failure → New control → Stronger harness → Fewer failures
Every recurring failure should make the next run safer and more reliable. Hooks catch failures; the Ratchet turns them into new hooks, steering rules, and skills. This feedback loop is what makes the harness a living system rather than a static configuration.

Built Beyond Kiro

Kiro provides a strong developer harness, but a complete enterprise architecture may extend it with:
•       CI/CD: Automated build, test, security, and deployment gates.
•       Deterministic policy: Enterprise authorization independent of model judgment.
•       Isolated execution: Sandboxed or session-isolated production runtimes.
•       Durable memory: Semantic or episodic knowledge persisted across sessions and projects.
•       Independent evaluation: Continuous scoring of correctness and agent behavior.
•       Auditability: Durable records of tool calls, changes, approvals, and outcomes.
•       Observability: Cost, latency, token use, system health, and failure analytics.
•       Human approval: Explicit checkpoints for destructive or high-impact operations.

Amazon Bedrock AgentCore and other AWS services can provide several of these production capabilities. They complement Kiro but should not be presented as native Kiro IDE or CLI features.

Model Layer

Kiro provides a supported model catalog and Auto routing, with availability varying by plan, region, and product surface. Because model names and credit multipliers change faster than the harness architecture, this document treats model selection as a replaceable capability and defers to the current Kiro model documentation.
As of July 2026, Kiro documents multiple model families and automatic model selection. Readers should consult the current catalog rather than rely on a static list in this architecture.
Model boundary: In this reference architecture, Kiro's built-in model access and selection remain within the Kiro layer. Connections to additional Amazon Bedrock models through customer-managed routing or orchestration are shown as an extended runtime pattern unless the specific Kiro surface supports that integration natively.

Our Perspective

Kiro makes agent harness engineering a first-class developer capability, combining specification-driven control, contextual guidance, agent specialization, tool access, permissions, and event-driven hooks into a unified development experience.
The broader enterprise harness then adds production governance around that developer workflow.
•       The model supplies intelligence.
•       Kiro organizes that intelligence into an engineering process.
•       The surrounding enterprise harness makes the process governable, observable, and repeatable at scale.
Credit - This article was co-authored with  Yong Ji , who also designed the Kiro Agent Harness architecture diagram featured here.
References:
•       Agent Harness Engineering by  Addy Osmani 
•        Agent Client Protocol 
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article