Agentic Development
Modern software engineering is rapidly shifting toward collaboration between human developers and autonomous AI coding agents. However, unguided AI agents frequently hallucinate architectures, break conventions, or introduce dependency bloat.
Krewire solves this through Krewire Boost (templates/boost in github.com/krewire/krewire)βan embedded agentic framework and configuration standard that equips AI agents with deep, intrinsic knowledge of the Krewire ecosystem, its 8 workloads, the kiw CLI, and strict automated quality gates.
1. What is Krewire Boost?
Krewire Boost is distributed as a Go module embedded directly inside the kiw CLI. With a single command, you can bootstrap a complete agent system into any Krewire repository:
krew boost install
Core Capabilities:
- Unified Constitution (
AGENTS.md): Encodes the 8-workload detection table, the fullkiwcommand matrix, architectural boundaries (SRP, SoC), and immutable project rules. - Specialized Subagent Roster: 15+ dedicated agent personas (
scout,plan,build,reviewer,tester,debugger,refactor,docs,security,deploy). - Structured Slash Commands: 16 standard commands (
/kickoff,/spec,/plan,/review,/test,/fix,/commit,/deploy). - Context-Aware Skills: 20+ reusable procedural skills (
context-awareness,quality-gate,wasm-runtime,infra-provision,worker-queue). - Zero Vendor Lock-In: Plug-and-play with OpenCode natively, and easily adapted for Claude Code, Cursor, Windsurf, Copilot, and Codex.
2. Installation & Scaffolding
To install Boost into your current Krewire project, run:
krew boost install .
Terminal output:
2026/09/29 21:00:00 INFO installing Krewire Boost into .
created AGENTS.md
created opencode.json
created .agents/agents/build.md
created .agents/agents/scout.md
created .agents/agents/reviewer.md
created .agents/agents/tester.md
created .agents/commands/kickoff.md
created .agents/commands/spec.md
created .agents/skills/quality-gate/SKILL.md
2026/09/29 21:00:00 INFO Boost installation complete: 42 files written
CLI Flags:
| Flag | Description |
|---|---|
krew boost install [path] |
Install template files into the target directory (defaults to current dir). |
--force |
Overwrite existing managed agent files without interactive confirmation. |
--dry-run |
Preview files that would be created without writing to disk. |
3. Directory Layout of the Agent System
Once installed, your repository contains a standardized .agents/ structure:
my-project/
βββ AGENTS.md # Unified Krewire constitution & rules
βββ opencode.json # OpenCode agent & plugin configuration
βββ .agents/
βββ agents/ # Role-specific autonomous agents
β βββ build.md # Primary implementation orchestrator
β βββ scout.md # Codebase exploration & mapping
β βββ plan.md # Architecture & system design
β βββ reviewer.md # Quality, security & style review
β βββ tester.md # Per-workload test automation
β βββ debugger.md # Root-cause analysis & incident triage
β βββ deploy.md # CI/CD and production deployment
β
βββ commands/ # Slash commands for developers
β βββ kickoff.md # /kickoff β maps stack and structure
β βββ spec.md # /spec β creates verifiable design docs
β βββ test.md # /test β runs workload test suite
β βββ review.md # /review β triggers pre-commit audit
β βββ commit.md # /commit β creates conventional commits
β
βββ skills/ # Procedural skill packages
βββ context-awareness/ # 4-layer situational intelligence
βββ quality-gate/ # Lint, test, and SAST verification
βββ agent-workflow/ # Agent handoffs & lifecycle contracts
4. The 6-Step Agentic Workflow
When an AI agent operates within a Krewire Boost project, it executes a rigorous, deterministic six-step workflow:
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
β 1. Understandβ ββ> β 2. Map β ββ> β 3. Plan β
β (Read & Ask)β β (/kickoff) β β (/spec /plan)β
ββββββββββββββββ ββββββββββββββββ ββββββββ¬ββββββββ
β
ββββββββββββββββ ββββββββββββββββ ββββββββΌββββββββ
β 6. Summarize β <ββ β 5. Verify β <ββ β 4. Implement β
β (Report Gate)β β (krew test) β β (build agent)β
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
1. Understand
The agent reads user instructions thoroughly. If any ambiguity or missing constraints are detected, the agent pauses and asks targeted questions rather than guessing or making unverified assumptions.
2. Map (/kickoff)
On the first session in a project, the developer or agent triggers /kickoff. The scout subagent inventories the project kind (app, site, cli, worker, etc.), maps krewire.yaml configurations, locates entry points, and records this context for future sessions.
3. Plan & Spec (/spec, /plan)
Non-trivial features or refactorings are never implemented blind. The agent drafts a lightweight engineering specification in docs/specs/ defining:
- Goals and non-goals
- API contracts or schema changes
- Measurable acceptance criteria
- Test plan and roll-back strategy
4. Implement (build agent)
The build agent executes the minimal, convention-respecting code change. For specialized domain tasks, it delegates to domain subagents:
| Specialized Need | Subagent Invoked |
|---|---|
| Database migrations or ORM queries | service |
Scoped .kiw component UI |
build |
| Gateway route tables and middleware | gateway |
| Cloud infrastructure definitions | infra |
| Background queues and cron schedules | worker |
5. Verify (Automated Quality Gate)
The agent executes the verification command suite:
krew test && krew vet
An agent is forbidden from reporting a task complete if tests fail or unformatted code exists.
6. Summarize
The agent delivers a concise, verifiable summary of changes, file citations (file:///...), and gate verification results.
5. Using Boost in Practice
Kicking Off a Project
Open your project in OpenCode or your preferred AI-enabled environment and issue:
/kickoff
The agent scans krewire.yaml, checks Go dependencies, detects that the workload is site, and responds:
β Identified Krewire project: "my-first-app" (workload: site)
β Build command: krew build
β Dev command: krew dev (port 8080)
β Ready for tasks. Use /plan to design or /test to verify.
Requirements-Driven Feature Development
To design a new user registration feature:
/plan user-registration
The agent generates a structured requirements and implementation plan outlining request schema, constraints, error handling, and test cases before touching production code.
6. Supported AI Assistants
| Assistant | Integration Tier | How It Works |
|---|---|---|
| OpenCode | Tier 1 (Native Plug-and-Play) | Automatically reads opencode.json, loads .agents/skills, and provides native / commands. |
| Claude Code | Tier 2 (Supported via Reference) | Reads AGENTS.md and executes CLI commands via terminal bash sessions. |
| Cursor / Windsurf | Tier 2 (Rule Import) | Reference AGENTS.md from .cursorrules or .windsurfrules. |
| GitHub Copilot | Tier 2 (Workspace Instructions) | Reads AGENTS.md from the workspace root automatically. |
Next Steps
Now that you know how to supercharge development with AI agents, explore the component templating language:
Proceed to 2.7 DSL (.kiw) β to learn the component architecture of Krewire.