Agents
The engine ships 46 agents in two fleets. The company fleet (19) runs the business: strategy, revenue, quality, product references. The stack fleet (27) writes the code: one agent per framework, layer, or tool.
Each fleet is a plugin, which is how it reaches other machines — see Onboarding.
| Fleet | Plugin | Agents | Lives in |
|---|---|---|---|
| Company | kun-company | 19 | .claude/agents/ |
| Stack | kun-stack | 27 | installed to ~/.claude/agents/ |
Company fleet (19)
The captain sits above everything and never writes code — it allocates, decides, and delegates.
| Agent | Scope |
|---|---|
| captain | CEO brain — weekly allocation, revenue strategy, coordination across products and the 7 humans |
Business (4)
| Agent | Scope |
|---|---|
| revenue | Pricing, proposals, contracts, cost analysis, revenue tracking |
| growth | Content strategy, SEO, social, developer relations, community |
| support | Customer onboarding, issue triage, knowledge base, SLA tracking |
| analyst | Market intelligence per vertical, competitors, usage analytics, churn |
Product & delivery (4)
| Agent | Scope |
|---|---|
| product | Roadmap across the 5 products — stories, scope, prioritization, releases |
| tech-lead | Architecture across the repos — shared patterns, breaking changes, tech debt |
| ops | CI/CD, API spend, monitoring, infrastructure, uptime |
| guardian | OWASP Top 10, performance budgets, dependency health, SSPL compliance |
Engine maintenance (6)
| Agent | Scope |
|---|---|
| quality | Routes the 17 niche quality keywords; owns /handover and /release |
| report | Auto-fixes user-reported issues — read, verify, fix, close |
| analyze | Generates a tailored Claude Code config for any repo |
| learn | Extracts patterns, conventions, and team dynamics into memory |
| package | Cross-repo dependency audit and upgrade coordination |
| clone | Translates a captured live-URL section into house-stack JSX |
Product references (4)
Read-only pattern sources — ask them how an existing product solved something.
| Agent | Product |
|---|---|
| hogwarts | Education SaaS — multi-tenant, LMS, SIS, billing |
| souq | E-commerce — multi-vendor marketplace, cart, vendor dashboards |
| mkan | Rentals — property listings, booking, search |
| shifa | Medical — appointments, patient records, healthcare workflows |
Stack fleet (27)
| Group | Agents |
|---|---|
| Framework | nextjs · react · typescript · tailwind · prisma · authjs · shadcn |
| Design | architecture · orchestration · pattern · structure |
| UI | atom · template · block · icon · semantic |
| DevOps | build · deploy · test · git · github |
| Platform | middleware · internationalization · sse · optimize · performance · comment |
How an agent is defined
An agent is a markdown file with YAML frontmatter:
---
name: prisma
description: Prisma 6 expert — PostgreSQL ORM, migrations, query optimization
model: sonnet
effort: medium
---
Instructions, context, and domain knowledge...model is always an alias (opus / sonnet / haiku), never a pinned version — the alias resolves through model_tiers in .claude/engine.json, so upgrading the fleet is a one-line change. effort sets the reasoning budget per delegation.efforts.
| Tier | Used for |
|---|---|
| opus | Architecture, orchestration, review, strategy, leadership |
| sonnet | Standard build agents with known patterns |
| haiku | Mechanical work — comment, git, icon, github, semantic, sse, structure |
The main loop itself runs Fable 5; agents stay on the aliases above.
Routing
You don't name agents. You say a keyword and the engine routes:
"saas billing"
→ orchestration → prisma (schema) + block (UI) + stripe MCP
"ship hogwarts admission"
→ captain → product (stories) → tech-lead (architecture)
→ orchestration → stack specialists
See Keywords for the full registry.
Installation
cd ~/kun && bash .claude/scripts/setup.sh engineerEvery machine gets both fleets. Role is a label and a secrets-trust tier, not a capability gate.